mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Improving element blueprint create and properties validation UI.
This commit is contained in:
@@ -3,24 +3,22 @@
|
||||
Layout.Title = T("Create Blueprint based on {0}", Model.BaseElement.DisplayText);
|
||||
}
|
||||
@using (Html.BeginFormAntiForgeryPost()) {
|
||||
@Html.ValidationSummary()
|
||||
<fieldset>
|
||||
<div>
|
||||
@Html.LabelFor(m => m.ElementDisplayName, T("Element Display Name"))
|
||||
@Html.TextBoxFor(m => m.ElementDisplayName, new { @class = "text large" })
|
||||
@Html.Hint(T("The friendly name of the specialized element. Example: Special {0}", Model.BaseElement.Descriptor.DisplayText))
|
||||
@Html.ValidationMessageFor(m => m.ElementDisplayName)
|
||||
</div>
|
||||
<div>
|
||||
@Html.LabelFor(m => m.ElementTypeName, T("Element Type Name"))
|
||||
@Html.TextBoxFor(m => m.ElementTypeName, new { @class = "text large" })
|
||||
@Html.Hint(T("The technical type name of the specialized element. Example: Acme.Elements.Special{0}", Model.BaseElement.Descriptor.DisplayText))
|
||||
@Html.ValidationMessageFor(m => m.ElementTypeName)
|
||||
</div>
|
||||
<div>
|
||||
@Html.LabelFor(m => m.ElementCategory, T("Element Category"))
|
||||
@Html.TextBoxFor(m => m.ElementCategory, new { @class = "text large" })
|
||||
@Html.Hint(T("Optionally specify a category for this element."))
|
||||
@Html.ValidationMessageFor(m => m.ElementCategory)
|
||||
</div>
|
||||
</fieldset>
|
||||
<button type="submit">@T("Create")</button>
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
Layout.Title = T("Edit Blueprint Properties based on {0}", Model.BaseElement.DisplayText);
|
||||
}
|
||||
@using (Html.BeginFormAntiForgeryPost()) {
|
||||
@Html.ValidationSummary()
|
||||
<fieldset>
|
||||
<div>
|
||||
@Html.LabelFor(m => m.ElementDisplayName, T("Element Display Name"))
|
||||
@Html.TextBoxFor(m => m.ElementDisplayName, new {@class = "text large"})
|
||||
@Html.TextBoxFor(m => m.ElementDisplayName, new { @class = "text large" })
|
||||
@Html.Hint(T("The friendly name of the specialized element. Example: Special {0}", Model.BaseElement.Descriptor.DisplayText))
|
||||
@Html.ValidationMessageFor(m => m.ElementDisplayName)
|
||||
</div>
|
||||
<div>
|
||||
@Html.LabelFor(m => m.ElementTypeName, T("Element Type Name"))
|
||||
@@ -19,7 +19,6 @@
|
||||
@Html.LabelFor(m => m.ElementCategory, T("Element Category"))
|
||||
@Html.TextBoxFor(m => m.ElementCategory, new { @class = "text large" })
|
||||
@Html.Hint(T("Optionally specify a category for this element."))
|
||||
@Html.ValidationMessageFor(m => m.ElementCategory)
|
||||
</div>
|
||||
</fieldset>
|
||||
<button type="submit">@T("Save")</button>
|
||||
|
||||
Reference in New Issue
Block a user