mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-21 19:34:40 +08:00
Implementing a consistent usage of 'text', 'text small', 'text medium' and 'text large'.
Yes, it's the little things in life.
This commit is contained in:
@@ -1 +1 @@
|
||||
@Html.TextBox("Text", (string)Model.Text, new { @class = "text text-small" })
|
||||
@Html.TextBox("Text", (string)Model.Text, new { @class = "text small" })
|
@@ -1 +1 @@
|
||||
@Html.TextBox("Text", (string)Model.Text, new { @class = "text textMedium" })
|
||||
@Html.TextBox("Text", (string)Model.Text, new { @class = "text medium" })
|
@@ -22,7 +22,7 @@
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<label for="@Html.FieldIdFor(m => m.Settings.Hint)">@T("Help text")</label>
|
||||
@Html.TextAreaFor(m => m.Settings.Hint, new { @class = "textMedium", rows = "5" })
|
||||
@Html.TextAreaFor(m => m.Settings.Hint, new { @class = "text medium", rows = "5" })
|
||||
<span class="hint">@T("The help text is written under the field when authors are editing the content item.")</span>
|
||||
@Html.ValidationMessageFor(m => m.Settings.Hint)
|
||||
</fieldset>
|
@@ -6,6 +6,6 @@
|
||||
</span>
|
||||
<span>
|
||||
@Html.LabelFor(m => m.Weight, T("Weight"))
|
||||
@Html.TextBoxFor(m => m.Weight, new { @class = "text text-small" })
|
||||
@Html.TextBoxFor(m => m.Weight, new { @class = "text small" })
|
||||
</span>
|
||||
</fieldset>
|
@@ -30,7 +30,7 @@
|
||||
<fieldset class="with-checkbox">
|
||||
<span>
|
||||
@Html.LabelFor(m => m.Part.PageSize, T("Page size"))
|
||||
@Html.TextBoxFor(m => m.Part.PageSize, new { @class = "text text-small" })
|
||||
@Html.TextBoxFor(m => m.Part.PageSize, new { @class = "text small" })
|
||||
</span>
|
||||
<span class="checkbox-and-label">
|
||||
@Html.CheckBoxFor(m => m.Part.Paginated)
|
||||
|
@@ -10,7 +10,7 @@
|
||||
<fieldset>
|
||||
<span>
|
||||
@Html.LabelFor(m => m.Part.Record.PageSize, T("Maximum number of items to display"))
|
||||
@Html.TextBoxFor(m => m.Part.Record.PageSize, new { @class = "text text-small" })
|
||||
@Html.TextBoxFor(m => m.Part.Record.PageSize, new { @class = "text small" })
|
||||
</span>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
|
@@ -107,7 +107,7 @@
|
||||
<div>
|
||||
<h2>@menuPartEntry.Text</h2>
|
||||
<span class="navigation-type">(@menuPartEntry.ContentItem.TypeDefinition.DisplayName)</span>
|
||||
<span class="navigation-position"><input type="text" class="text-box" name="@Html.NameOf(m => m.MenuItemEntries[i].Position)" value="@menuPartEntry.Position" /></span>
|
||||
<span class="navigation-position"><input type="text" class="text" name="@Html.NameOf(m => m.MenuItemEntries[i].Position)" value="@menuPartEntry.Position" /></span>
|
||||
<span class="navigation-actions">
|
||||
<input type="hidden" name="@Html.NameOf(m => m.MenuItemEntries[i].MenuItemId)" value="@menuPartEntry.MenuItemId" />
|
||||
@Html.ItemEditLink(T("Edit").Text, menuPartEntry.ContentItem, new { returnUrl = Request.RawUrl })@T(" | ")
|
||||
|
@@ -3,6 +3,6 @@
|
||||
|
||||
<fieldset>
|
||||
<label for="@Html.FieldIdFor(m => m.Url)">@T("Url")</label>
|
||||
@Html.TextBoxFor(m => m.Url, new { @class = "large text" })
|
||||
@Html.TextBoxFor(m => m.Url, new { @class = "text large" })
|
||||
<span class="hint">@T("A valid url, i.e. ~/my-page, http://orchardproject.net, /content/file.pdf, ...")</span>
|
||||
</fieldset>
|
||||
|
@@ -14,13 +14,13 @@
|
||||
|
||||
<fieldset>
|
||||
<label for="@Html.FieldIdFor(m => m.StartLevel)">@T("Start Level")</label>
|
||||
@Html.TextBoxFor(m => m.StartLevel, new { @class = "text text-small" })
|
||||
@Html.TextBoxFor(m => m.StartLevel, new { @class = "text small" })
|
||||
<span class="hint">@T("The level the menu should start at.")</span>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<label for="@Html.FieldIdFor(m => m.StopLevel)">@T("Levels to display")</label>
|
||||
@Html.TextBoxFor(m => m.StopLevel, new { @class = "text text-small" })
|
||||
@Html.TextBoxFor(m => m.StopLevel, new { @class = "text small" })
|
||||
<span class="hint">@T("The number of levels to display, \"0\" meaning all levels.")</span>
|
||||
</fieldset>
|
||||
|
||||
|
@@ -8,9 +8,9 @@
|
||||
<label for="OnAdminMenu" class="forcheckbox">@T("Show on admin menu")</label>
|
||||
<div data-controllerid="OnAdminMenu" class="">
|
||||
<label for="AdminMenuText">@T("Menu text")</label>
|
||||
@Html.TextBoxFor(m => m.AdminMenuText, new { @class = "text-box single-line" })
|
||||
@Html.TextBoxFor(m => m.AdminMenuText, new { @class = "text single-line" })
|
||||
|
||||
<label for="AdminMenuPosition">@T("Position")</label>
|
||||
@Html.TextBoxFor(m => m.AdminMenuPosition, new { @class = "text-box single-line" })
|
||||
@Html.TextBoxFor(m => m.AdminMenuPosition, new { @class = "text single-line" })
|
||||
</div>
|
||||
</fieldset>
|
||||
|
@@ -17,7 +17,7 @@
|
||||
<span class="hint">@T("Select which menu you want the content item to be displayed on.")</span>
|
||||
|
||||
<label for="MenuText">@T("Menu text")</label>
|
||||
@Html.TextBoxFor(m => m.MenuText, new { @class = "text-box single-line" })
|
||||
@Html.TextBoxFor(m => m.MenuText, new { @class = "text single-line" })
|
||||
<span class="hint">@T("The text that should appear in the menu.")</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
@@ -27,7 +27,7 @@ else {
|
||||
|
||||
<fieldset>
|
||||
<label for="MenuText">@T("Menu text")</label>
|
||||
@Html.TextBoxFor(m => m.MenuText, new { @class = "textMedium", autofocus = "autofocus" })
|
||||
@Html.TextBoxFor(m => m.MenuText, new { @class = "text medium", autofocus = "autofocus" })
|
||||
<span class="hint">@T("The text that should appear in the menu.")</span>
|
||||
@Html.HiddenFor(m => m.OnMenu, true)
|
||||
@Html.HiddenFor(m => m.CurrentMenuId, Request["menuId"])
|
||||
|
@@ -3,6 +3,6 @@
|
||||
<fieldset>
|
||||
<div>
|
||||
@Html.LabelFor(m => m.ShapeType, T("Type of the shape to display"))
|
||||
@Html.TextBoxFor(m => m.ShapeType, new { @class = "text textMedium" })
|
||||
@Html.TextBoxFor(m => m.ShapeType, new { @class = "text medium" })
|
||||
</div>
|
||||
</fieldset>
|
||||
|
@@ -16,7 +16,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<label for="@Html.FieldIdFor(m => m.BaseUrl)">@T("Base url ")</label>
|
||||
@Html.TextBoxFor(m => m.BaseUrl, new { @class = "textMedium" })
|
||||
@Html.TextBoxFor(m => m.BaseUrl, new { @class = "text medium" })
|
||||
<span class="hint">@T("Enter the fully qualified base url of your website.")</span>
|
||||
<span class="hint">@T("e.g., http://localhost:30320/orchardlocal, http://www.yourdomain.com")</span>
|
||||
</div>
|
||||
@@ -50,7 +50,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<label for="DefaultPageSize">@T("Default number of items per page")</label>
|
||||
@Html.TextBoxFor(m => m.PageSize, new { @class = "text-small" })
|
||||
@Html.TextBoxFor(m => m.PageSize, new { @class = "text small" })
|
||||
<span class="hint">@T("Determines the default number of items that are shown per page.")</span>
|
||||
</div>
|
||||
</fieldset>
|
@@ -2,6 +2,6 @@
|
||||
|
||||
<fieldset>
|
||||
@Html.LabelFor(m => m.Title, T("Title"))
|
||||
@Html.TextBoxFor(m => m.Title, new { @class = "large text", autofocus = "autofocus" })
|
||||
@Html.TextBoxFor(m => m.Title, new { @class = "text large", autofocus = "autofocus" })
|
||||
<span class="hint">@T("You must provide a title for this content item")</span>
|
||||
</fieldset>
|
||||
|
Reference in New Issue
Block a user