src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/NumericFieldSettings.cshtml

(完整代码) 1KB

@model Orchard.Fields.Settings.NumericFieldSettings
@using Orchard.Fields.Settings;

<fieldset>
    <div>
        @Html.CheckBoxFor(m => m.Required) <label for="@Html.FieldIdFor(m => m.Required)" class="forcheckbox">@T("Required")</label>
        <span class="hint">@T("Check if the field is required.")</span>
    </div>
</fieldset>
<fieldset>
	<div class="editor-field">
        <label class="forpicker" for="@Html.FieldIdFor(m => m.Scale)">@T("Scale")</label>
        @Html.TextBoxFor(m => m.Scale, new { @class = "text-small" })
        @Html.ValidationMessageFor(m => m.Scale)
        <span class="hint">@T("The number of digits to the right of the decimal. Put 0 for integers.")</span>
	</div>
</fieldset>
<fieldset>
	<div class="editor-field">
        <label class="forpicker" for="@Html.FieldIdFor(m => m.Minimum)">@T("Minimum")</label>
        @Html.TextBoxFor(m => m.Minimum, new { @class = "text-small" })
        @Html.ValidationMessageFor(m => m.Minimum)
        <span class="hint">@T("The minimum value allowed. (optional)")</span>
	</div>
</fieldset>
<fieldset>
	<div class="editor-field">
        <label class="forpicker" for="@Html.FieldIdFor(m => m.Maximum)">@T("Maximum")</label>
        @Html.TextBoxFor(m => m.Maximum, new { @class = "text-small" })
        @Html.ValidationMessageFor(m => m.Maximum)
        <span class="hint">@T("The maximum value allowed. (optional)")</span>
	</div>
</fieldset>
<fieldset>
    <div>
        <label for="@Html.FieldIdFor(m => m.Hint)">@T("Help text")</label>
        @Html.TextAreaFor(m => m.Hint, new { @class = "textMedium", rows = "5" } )
        <span class="hint">@T("The help text is written under the field when the user is entering a value.")</span>
        @Html.ValidationMessageFor(m => m.Hint)
    </div>
</fieldset>

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。