command forms :-)
This commit is contained in:
parent
4faee0d856
commit
d232d4a52e
17 changed files with 214 additions and 48 deletions
|
|
@ -14,14 +14,13 @@
|
|||
<div class="form-group">
|
||||
<label asp-for="ActivityCode" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="ActivityCode" class ="form-control"></select>
|
||||
<select asp-for="ActivityCode" asp-items="@ViewBag.ActivityCode" class ="form-control"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Summary" class="col-md-2 control-label"></label>
|
||||
<label asp-for="ViewName" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Summary" class="form-control" />
|
||||
<span asp-validation-for="Summary" class="text-danger" />
|
||||
<select asp-for="ViewName" asp-items="@ViewBag.ViewName" class ="form-control"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
|
|||
|
|
@ -11,12 +11,6 @@
|
|||
<h4>CommandForm</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Summary)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Summary)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Title)
|
||||
</dt>
|
||||
|
|
|
|||
|
|
@ -10,12 +10,6 @@
|
|||
<h4>CommandForm</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Summary)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Summary)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Title)
|
||||
</dt>
|
||||
|
|
|
|||
|
|
@ -20,10 +20,10 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Summary" class="col-md-2 control-label"></label>
|
||||
<label asp-for="FormId" class="control-label col-md-2">FormId</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Summary" class="form-control" />
|
||||
<span asp-validation-for="Summary" class="text-danger" />
|
||||
<select asp-for="FormId" class="form-control" />
|
||||
<span asp-validation-for="FormId" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@
|
|||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Summary)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Title)
|
||||
</th>
|
||||
|
|
@ -22,9 +19,6 @@
|
|||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Summary)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Title)
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -29,9 +29,11 @@
|
|||
<p><em>@act.Name</em><br/>
|
||||
@act.Description </p>
|
||||
<p>
|
||||
<a class="btn btn-default" asp-controller="FrontOffice" asp-action="Book" asp-route-id="@act.Code">
|
||||
En savoir plus
|
||||
@foreach (var form in act.Forms) {
|
||||
<a class="btn btn-default" asp-controller="FrontOffice" asp-action="@form.ViewName" asp-route-id="@act.Code">
|
||||
@form.Title
|
||||
</a>
|
||||
}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue