Updated UI for projections (#8380)

Some textboxes were too small for the actual text users would generally write in them.
Those meant to hold HTML have been converted to textareas.
This commit is contained in:
Matteo Piovanelli
2020-05-21 19:08:12 +02:00
committed by GitHub
parent f581d235d2
commit 488e18d11a
3 changed files with 8 additions and 8 deletions

View File

@@ -86,7 +86,7 @@ namespace Orchard.Projections.Providers.Layouts {
Description: T("The class to provide on each cell."),
Classes: new[] { "text medium", "tokenized" }
),
_EmptyCell: Shape.TextBox(
_EmptyCell: Shape.TextArea(
Id: "empty-cell", Name: "EmptyCell",
Title: T("Empty Cell"),
Description: T("The HTML to render as empty cells to fill a row. (e.g., <td>&nbsp;</td>"),

View File

@@ -53,19 +53,19 @@ namespace Orchard.Projections.Providers.Layouts {
Description: T("The class to provide on each item."),
Classes: new[] { "text medium", "tokenized" }
),
_Prepend: Shape.TextBox(
_Prepend: Shape.TextArea(
Id: "prepend", Name: "Prepend",
Title: T("Prepend"),
Description: T("Some HTML to insert before the first element."),
Classes: new[] { "text medium", "tokenized" }
),
_Separator: Shape.TextBox(
_Separator: Shape.TextArea(
Id: "separator", Name: "Separator",
Title: T("Separator"),
Description: T("Some HTML to insert between two items."),
Classes: new[] { "text medium", "tokenized" }
),
_Append: Shape.TextBox(
_Append: Shape.TextArea(
Id: "append", Name: "Append",
Title: T("Append"),
Description: T("Some HTML to insert after the last element."),

View File

@@ -49,8 +49,8 @@
<label class="forcheckbox" for="@Html.FieldIdFor(m => m.CreateLabel)">@T("Create a label")</label>
<div data-controllerid="@Html.FieldIdFor(m => m.CreateLabel)">
<div>
@Html.TextBoxFor(m => m.Label, new { @class = "text medium tokenized" })
<span class="hint">@T("The text to display as a label for this property.")</span>
@Html.TextBoxFor(m => m.Label, new { @class = "text large tokenized" })
<span class="hint">@T("The text to display as a label for this property. It may include HTML.")</span>
</div>
</div>
</div>
@@ -117,7 +117,7 @@
<div>
<div>
<label for="@Html.FieldIdFor(m => m.NoResultText)">@T("No results text")</label>
@Html.TextBoxFor(m => m.NoResultText, new { @class = "text medium tokenized" })
@Html.TextBoxFor(m => m.NoResultText, new { @class = "text large tokenized" })
<span class="hint">@T("Text to display when the property is empty.")</span>
</div>
@@ -149,7 +149,7 @@
<div data-controllerid="@Html.FieldIdFor(m => m.RewriteOutput)">
<div>
<label for="@Html.FieldIdFor(m => m.RewriteText)">@T("Rewrite text")</label>
@Html.TextBoxFor(m => m.RewriteText, new { @class = "text large tokenized" })
@Html.TextAreaFor(m => m.RewriteText, new { @class = "text large tokenized" })
<span class="hint">@T("The text to write for this field. It may include HTML. {Text} can be used to inject the current property text.")</span>
</div>
</div>