mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Added hints to show technical names in list of content types and content field definition edit (#8640)
* Added hint in EditField view * Added hint to EditTypeViewModel.cshtml to show technical name in list of content types * fixed typo * Clarified hint displaying technical name. Co-authored-by: Andrea Piovanelli <andrea.piovanelli@laser-group.com>
This commit is contained in:
committed by
GitHub
parent
f76f7bd428
commit
2a1b0b3af3
@@ -16,6 +16,7 @@
|
||||
<label for="DisplayName" class="required">@T("Display Name")</label>
|
||||
@Html.TextBoxFor(m => m.DisplayName, new { @class = "text medium", autofocus = "autofocus" })
|
||||
<span class="hint">@T("Name of the field as it will be displayed in screens.")</span>
|
||||
<span class="hint">@T("Content Field Id: {0}", Model.Name)</span>
|
||||
|
||||
@Html.HiddenFor(m => m.Name)
|
||||
</fieldset>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<div class="properties">
|
||||
<h3>@Model.DisplayName</h3>
|
||||
@if (!string.IsNullOrWhiteSpace(stereotype)) { <text><span class="stereotype" title="Stereotype">- @stereotype</span></text> }
|
||||
@if (!Model.DisplayName.Equals(Model.Name, StringComparison.OrdinalIgnoreCase)) { <text><span class="hint" title="@T("Technical name")">@T("Content Type name: {0}", Model.Name)</span></text> }
|
||||
|
||||
@if (settings.Creatable) {
|
||||
<p class="pageStatus">@Html.ActionLink(T("Create New {0}", Html.Raw(Model.DisplayName)).Text, "Create", new {area = "Contents", id = Model.Name})</p>
|
||||
|
||||
Reference in New Issue
Block a user