Skip to content

Commit

Permalink
removing unnecessary example (#2513)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skrypt authored and sebastienros committed Oct 16, 2018
1 parent 9a648a1 commit 2ef89ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
namespace OrchardCore.ContentFields.Settings
{
public class TextFieldTextAreaEditorSettings
{
public string Color { get; set; }
}
public class TextFieldTextAreaEditorSettings { }
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

@{
var settings = Model.PartFieldDefinition.Settings.ToObject<TextFieldSettings>();
var editorSettings = Model.PartFieldDefinition.GetSettings<TextFieldTextAreaEditorSettings>();
}

<fieldset class="form-group">
<label asp-for="Text">@Model.PartFieldDefinition.DisplayName()</label>
<textarea asp-for="Text" class="form-control content-preview-text" style="color:@editorSettings.Color"></textarea>
<textarea asp-for="Text" class="form-control content-preview-text"></textarea>
<span class="hint">@settings.Hint</span>
</fieldset>
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
@model OrchardCore.ContentFields.Settings.TextFieldTextAreaEditorSettings

<div class="field-editor field-editor-textarea">
<fieldset class="form-group">
<div class="row col-sm-6">
<label asp-for="Color">@T["Color"]</label>
<input asp-for="Color" class="form-control" />
<span class="hint">@T["The color of the textarea."]</span>
</div>
</fieldset>
</div>
@model OrchardCore.ContentFields.Settings.TextFieldTextAreaEditorSettings

0 comments on commit 2ef89ba

Please sign in to comment.