2018-03-27 00:54:20 -04:00
|
|
|
@model WebfrontCore.ViewModels.ActionInfo
|
|
|
|
@{
|
|
|
|
Layout = null;
|
|
|
|
}
|
|
|
|
<form class="action-form" action="/Action/@Model.Action">
|
2018-04-04 15:38:34 -04:00
|
|
|
@foreach (var input in Model.Inputs)
|
|
|
|
{
|
|
|
|
<div class="input-group mb-3">
|
2018-03-27 00:54:20 -04:00
|
|
|
|
|
|
|
<div class="input-group-prepend">
|
|
|
|
<span class="input-group-text" id="basic-addon-@input.Name">@input.Name</span>
|
|
|
|
</div>
|
2018-04-04 15:38:34 -04:00
|
|
|
@{
|
2018-03-27 00:54:20 -04:00
|
|
|
string inputType = input.Type ?? "text";
|
|
|
|
string value = input.Value ?? "";
|
|
|
|
|
|
|
|
<input type="@inputType" name="@input.Name" value="@value" class="form-control" placeholder="@input.Placeholder" aria-label="@input.Name" aria-describedby="basic-addon-@input.Name">
|
|
|
|
}
|
2018-04-04 15:38:34 -04:00
|
|
|
|
|
|
|
</div>
|
|
|
|
}
|
2018-03-27 00:54:20 -04:00
|
|
|
<button type="submit" class="btn btn-block btn-primary">@Model.ActionButtonLabel</button>
|
|
|
|
</form>
|