displays localized

This commit is contained in:
Paul Schneider 2017-04-09 03:40:35 +02:00
commit 75d5f52e9a
4 changed files with 38 additions and 29 deletions

View file

@ -1,11 +1,27 @@
@model HairPrestation
@{
string[] HairLen = new string[] {SR["HalfLong"],SR["Long"],SR["Short"]};
}
<div style="display:block">
<dl class="dl-horizontal">
<dd>
</dd>
<dt>
@Html.DisplayNameFor(model => model.Cares)
@Html.DisplayNameFor(model => model.Gender)
</dt>
<dd>@SR[Model.Gender.ToString()]</dd>
@if ((int)Model.Gender<1) {
<dt>
@Html.DisplayNameFor(model => model.Length)
</dt>
<dd>
@Html.DisplayFor(model => model.Cares)
@HairLen[(int)Model.Length]
</dd>}
<dt>
@Html.DisplayNameFor(model => model.Shampoo)
</dt>
<dd>
@Html.DisplayFor(model => model.Shampoo)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Cut)
@ -13,6 +29,12 @@
<dd>
@Html.DisplayFor(model => model.Cut)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Tech)
</dt>
<dd>
@SR[Model.Tech.ToString()]
</dd>
<dt>
@Html.DisplayNameFor(model => model.Dressing)
</dt>
@ -20,27 +42,10 @@
@Html.DisplayFor(model => model.Dressing)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Gender)
@Html.DisplayNameFor(model => model.Cares)
</dt>
<dd>
@Html.DisplayFor(model => model.Gender)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Length)
</dt>
<dd>
@Html.DisplayFor(model => model.Length)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Shampoo)
</dt>
<dd>
@Html.DisplayFor(model => model.Shampoo)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Tech)
</dt>
<dd>
@Html.DisplayFor(model => model.Tech)
@Html.DisplayFor(model => model.Cares)
</dd>
</dl>
</div>