files tree made better.
This commit is contained in:
parent
ffbf032480
commit
ccc91bbf19
1630 changed files with 18209 additions and 41860 deletions
40
src/Yavsc/Views/Instrumentation/Create.cshtml
Normal file
40
src/Yavsc/Views/Instrumentation/Create.cshtml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
|
||||
@model Instrumentation
|
||||
|
||||
@{
|
||||
ViewBag.SettingLabel = SR["Yavsc.Models.Musical.Profiles.Instrumentation"];
|
||||
ViewData["Title"] = SR[ViewBag.SettingLabel] + "[" +SR["Set"] + "]" ;
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4></h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
|
||||
<input asp-for="UserId" type="hidden">
|
||||
<div class="form-group">
|
||||
<div class="col-md-10">
|
||||
@System.Globalization.CultureInfo.CurrentUICulture.TextInfo.ToTitleCase(SR["nouvel instrument"])
|
||||
|
||||
<select asp-for="InstrumentId" asp-items=@ViewBag.YetAvailableInstruments>
|
||||
</select>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
<script src="~/lib/jquery-validation/jquery.validate.min.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
|
||||
}
|
||||
24
src/Yavsc/Views/Instrumentation/Delete.cshtml
Normal file
24
src/Yavsc/Views/Instrumentation/Delete.cshtml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
@model Instrumentation
|
||||
|
||||
@{
|
||||
|
||||
ViewBag.SettingLabel = SR["Yavsc.Models.Musical.Profiles.Instrumentation"];
|
||||
ViewData["Title"] = SR[ViewBag.SettingLabel] + "[" +SR["Delete"] + "]" ;
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>MusicianSettings</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-default" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
24
src/Yavsc/Views/Instrumentation/Details.cshtml
Normal file
24
src/Yavsc/Views/Instrumentation/Details.cshtml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
@model Instrumentation
|
||||
|
||||
@{
|
||||
|
||||
ViewBag.SettingLabel = SR["Yavsc.Models.Musical.Profiles.Instrumentation"];
|
||||
ViewData["Title"] = SR[ViewBag.SettingLabel] + "[" +SR["Details"] + "]" ;
|
||||
}
|
||||
@{
|
||||
bool existingInstrument = Model.
|
||||
}
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>MusicianSettings</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>Instruments</dt>
|
||||
<dd>@Html.DisplayFor(m=>m.Instrumentation)</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.UserId">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
30
src/Yavsc/Views/Instrumentation/Edit.cshtml
Normal file
30
src/Yavsc/Views/Instrumentation/Edit.cshtml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
@model Instrumentation
|
||||
@{
|
||||
|
||||
ViewBag.SettingLabel = SR["Yavsc.Models.Musical.Profiles.Instrumentation"];
|
||||
ViewData["Title"] = SR[ViewBag.SettingLabel] + "[" +SR["Edit"] + "]" ;
|
||||
}
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>MusicianSettings</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="UserId" />
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
<script src="~/lib/jquery-validation/jquery.validate.min.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
|
||||
}
|
||||
28
src/Yavsc/Views/Instrumentation/Index.cshtml
Normal file
28
src/Yavsc/Views/Instrumentation/Index.cshtml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
@model IEnumerable<Instrumentation>
|
||||
|
||||
@{
|
||||
|
||||
ViewBag.SettingLabel = SR["Yavsc.Models.Musical.Profiles.Instrumentation"];
|
||||
ViewData["Title"] = SR[ViewBag.SettingLabel] + "[" +SR["Index"] + "]" ;
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">@SR["Vous jouez d'un autre instrument'"]</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.UserId">Edit</a> |
|
||||
<a asp-action="Details" asp-route-id="@item.UserId">Details</a> |
|
||||
<a asp-action="Delete" asp-route-id="@item.UserId">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
Loading…
Add table
Add a link
Reference in a new issue