mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Converted a view in ContentsLocation
--HG-- branch : dev
This commit is contained in:
@@ -3,9 +3,19 @@
|
||||
<fieldset class="location-setting">
|
||||
<legend>@T("{0}", Model.Definition.DisplayName)</legend>
|
||||
<fieldset>
|
||||
<label for="@Html.FieldIdFor(m => m.Location.Zone)">@T("Zone name (e.g. body, primary)")</label>@if (!string.IsNullOrWhiteSpace(Model.DefaultLocation.Zone)) {<span class="default">@T(" - default: {0}", Model.DefaultLocation.Zone)</span>}@Html.EditorFor(m => m.Location.Zone)@Html.ValidationMessageFor(m => m.Location.Zone)
|
||||
<label for="@Html.FieldIdFor(m => m.Location.Zone)">@T("Zone name (e.g. body, primary)")</label>
|
||||
@if (!string.IsNullOrWhiteSpace(Model.DefaultLocation.Zone)) {
|
||||
<span class="default">@T(" - default: {0}", Model.DefaultLocation.Zone)</span>
|
||||
}
|
||||
@Html.EditorFor(m => m.Location.Zone)
|
||||
@Html.ValidationMessageFor(m => m.Location.Zone)
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<label for="@Html.FieldIdFor(m => m.Location.Position)">@T("Position in zone (e.g. 1, 1.0, 2.5.1)")</label>@if (!string.IsNullOrWhiteSpace(Model.DefaultLocation.Zone)) {<span class="default">@T(" - default: {0}", Model.DefaultLocation.Position)</span>}@Html.EditorFor(m => m.Location.Position)
|
||||
<label for="@Html.FieldIdFor(m => m.Location.Position)">
|
||||
@T("Position in zone (e.g. 1, 1.0, 2.5.1)")</label>
|
||||
@if (!string.IsNullOrWhiteSpace(Model.DefaultLocation.Zone)) {
|
||||
<span class="default">@T(" - default: {0}", Model.DefaultLocation.Position)</span>
|
||||
}
|
||||
@Html.EditorFor(m => m.Location.Position)
|
||||
</fieldset>@Html.ValidationMessageFor(m => m.Location.Position)
|
||||
</fieldset>
|
Reference in New Issue
Block a user