-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c29b34
commit 8ae921b
Showing
8 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/OrchardCore.Modules/OrchardCore.ContentFields/Views/TextField-Color.Edit.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@model OrchardCore.ContentFields.ViewModels.EditTextFieldViewModel | ||
@using OrchardCore.ContentManagement.Metadata.Models | ||
@using OrchardCore.ContentFields.Settings; | ||
|
||
@{ | ||
var settings = Model.PartFieldDefinition.Settings.ToObject<TextFieldSettings>(); | ||
} | ||
|
||
<fieldset class="form-group"> | ||
<label asp-for="Text">@Model.PartFieldDefinition.DisplayName()</label> | ||
<input asp-for="Text" class="form-control content-preview-text" type="color" /> | ||
@if (!String.IsNullOrEmpty(settings.Hint)) | ||
{ | ||
<span class="hint">@settings.Hint</span> | ||
} | ||
</fieldset> |
4 changes: 4 additions & 0 deletions
4
src/OrchardCore.Modules/OrchardCore.ContentFields/Views/TextField-Color.Option.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@{ | ||
string currentEditor = Model.Editor; | ||
} | ||
<option value="Color" selected="@String.IsNullOrEmpty(currentEditor)">@T["Color"]</option> |
21 changes: 21 additions & 0 deletions
21
src/OrchardCore.Modules/OrchardCore.ContentFields/Views/TextField-Email.Edit.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@model OrchardCore.ContentFields.ViewModels.EditTextFieldViewModel | ||
@using OrchardCore.ContentManagement.Metadata.Models | ||
@using OrchardCore.ContentFields.Settings; | ||
|
||
@{ | ||
var settings = Model.PartFieldDefinition.Settings.ToObject<TextFieldSettings>(); | ||
} | ||
|
||
<fieldset class="form-group"> | ||
<label asp-for="Text">@Model.PartFieldDefinition.DisplayName()</label> | ||
<div class="input-group mb-2"> | ||
<div class="input-group-prepend"> | ||
<div class="input-group-text">@@</div> | ||
</div> | ||
<input asp-for="Text" class="form-control content-preview-text" type="email" /> | ||
</div> | ||
@if (!String.IsNullOrEmpty(settings.Hint)) | ||
{ | ||
<span class="hint">@settings.Hint</span> | ||
} | ||
</fieldset> |
4 changes: 4 additions & 0 deletions
4
src/OrchardCore.Modules/OrchardCore.ContentFields/Views/TextField-Email.Option.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@{ | ||
string currentEditor = Model.Editor; | ||
} | ||
<option value="Email" selected="@(currentEditor == "Email")">@T["Email"]</option> |
16 changes: 16 additions & 0 deletions
16
src/OrchardCore.Modules/OrchardCore.ContentFields/Views/TextField-Tel.Edit.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@model OrchardCore.ContentFields.ViewModels.EditTextFieldViewModel | ||
@using OrchardCore.ContentManagement.Metadata.Models | ||
@using OrchardCore.ContentFields.Settings; | ||
|
||
@{ | ||
var settings = Model.PartFieldDefinition.Settings.ToObject<TextFieldSettings>(); | ||
} | ||
|
||
<fieldset class="form-group"> | ||
<label asp-for="Text">@Model.PartFieldDefinition.DisplayName()</label> | ||
<input asp-for="Text" class="form-control content-preview-text" type="tel" /> | ||
@if (!String.IsNullOrEmpty(settings.Hint)) | ||
{ | ||
<span class="hint">@settings.Hint</span> | ||
} | ||
</fieldset> |
4 changes: 4 additions & 0 deletions
4
src/OrchardCore.Modules/OrchardCore.ContentFields/Views/TextField-Tel.Option.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@{ | ||
string currentEditor = Model.Editor; | ||
} | ||
<option value="Tel" selected="@String.IsNullOrEmpty(currentEditor)">@T["Phone"]</option> |
16 changes: 16 additions & 0 deletions
16
src/OrchardCore.Modules/OrchardCore.ContentFields/Views/TextField-Url.Edit.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@model OrchardCore.ContentFields.ViewModels.EditTextFieldViewModel | ||
@using OrchardCore.ContentManagement.Metadata.Models | ||
@using OrchardCore.ContentFields.Settings; | ||
|
||
@{ | ||
var settings = Model.PartFieldDefinition.Settings.ToObject<TextFieldSettings>(); | ||
} | ||
|
||
<fieldset class="form-group"> | ||
<label asp-for="Text">@Model.PartFieldDefinition.DisplayName()</label> | ||
<input asp-for="Text" class="form-control content-preview-text" type="url" /> | ||
@if (!String.IsNullOrEmpty(settings.Hint)) | ||
{ | ||
<span class="hint">@settings.Hint</span> | ||
} | ||
</fieldset> |
4 changes: 4 additions & 0 deletions
4
src/OrchardCore.Modules/OrchardCore.ContentFields/Views/TextField-Url.Option.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@{ | ||
string currentEditor = Model.Editor; | ||
} | ||
<option value="Url" selected="@String.IsNullOrEmpty(currentEditor)">@T["Url"]</option> |