Added icons and groups on all core editors
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Umbraco.Core.PropertyEditors
|
||||
{
|
||||
//defaults
|
||||
Icon = Constants.Icons.PropertyEditor;
|
||||
Group = string.Empty;
|
||||
Group = "common";
|
||||
|
||||
//assign properties based on the attribute if it is found
|
||||
_attribute = GetType().GetCustomAttribute<PropertyEditorAttribute>(false);
|
||||
|
||||
@@ -20,6 +20,8 @@ namespace Umbraco.Core.PropertyEditors
|
||||
|
||||
//defaults
|
||||
ValueType = "string";
|
||||
Icon = Constants.Icons.PropertyEditor;
|
||||
Group = "common";
|
||||
}
|
||||
|
||||
public PropertyEditorAttribute(string alias, string name)
|
||||
@@ -33,6 +35,7 @@ namespace Umbraco.Core.PropertyEditors
|
||||
//defaults
|
||||
ValueType = "string";
|
||||
Icon = Constants.Icons.PropertyEditor;
|
||||
Group = "common";
|
||||
}
|
||||
|
||||
public PropertyEditorAttribute(string alias, string name, string valueType, string editorView)
|
||||
@@ -46,6 +49,9 @@ namespace Umbraco.Core.PropertyEditors
|
||||
Name = name;
|
||||
ValueType = valueType;
|
||||
EditorView = editorView;
|
||||
|
||||
Icon = Constants.Icons.PropertyEditor;
|
||||
Group = "common";
|
||||
}
|
||||
|
||||
public string Alias { get; private set; }
|
||||
|
||||
@@ -135,6 +135,15 @@ function dataTypeResource($q, $http, umbDataFormatter, umbRequestHelper) {
|
||||
'Failed to retrieve data');
|
||||
},
|
||||
|
||||
getAllTypesAndEditors : function(){
|
||||
return umbRequestHelper.resourcePromise(
|
||||
$http.get(
|
||||
umbRequestHelper.getApiUrl(
|
||||
"dataTypeApiBaseUrl",
|
||||
"GetAllDataTypesAndEditors")),
|
||||
'Failed to retrieve data');
|
||||
},
|
||||
|
||||
getAllPropertyEditors: function () {
|
||||
|
||||
return umbRequestHelper.resourcePromise(
|
||||
|
||||
@@ -21,10 +21,14 @@ function DocumentTypePropertyController($scope, dataTypeResource) {
|
||||
|
||||
function getAllDatatypes() {
|
||||
|
||||
dataTypeResource.getAll().then(function(data){
|
||||
dataTypeResource.getAllTypesAndEditors().then(function(data){
|
||||
$scope.dataTypes.system = data;
|
||||
});
|
||||
|
||||
// dataTypeResource.getAll().then(function(data){
|
||||
// $scope.dataTypes.system = data;
|
||||
// });
|
||||
|
||||
}
|
||||
|
||||
function getAllUserConfiguredDataTypes() {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
placeholder="Filter...">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div ng-if="(dataTypes.userConfigured | filter:searchTerm).length > 0">
|
||||
<h5>Your configurations</h5>
|
||||
<ul class="umb-card-grid">
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
<div ng-if="(dataTypes.userPropertyEditors | filter:searchTerm).length > 0">
|
||||
<h5>Custom property editors</h5>
|
||||
|
||||
<ul class="umb-card-grid">
|
||||
<li ng-repeat="customEditor in dataTypes.userPropertyEditors | orderBy:'name' | filter: searchTerm">
|
||||
<a href="" ng-click="model.selectDataType(customEditor)">
|
||||
@@ -35,16 +36,20 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div ng-if="(dataTypes.system | filter:searchTerm).length > 0">
|
||||
<h5>Standard</h5>
|
||||
|
||||
<div ng-repeat="(key,value) in dataTypes.system">
|
||||
<h5>{{key}}</h5>
|
||||
|
||||
<ul class="umb-card-grid">
|
||||
<li ng-repeat="systemDataType in dataTypes.system | compareArrays:dataTypes.userConfigured:'id' | orderBy:'name' | filter: searchTerm">
|
||||
<li ng-repeat="systemDataType in value | orderBy:'name' | filter: searchTerm">
|
||||
<a href="" ng-click="model.selectDataType(systemDataType)">
|
||||
<i class="{{ systemDataType.icon }}" ng-class="{'icon-autofill': systemDataType.icon == null}"></i>
|
||||
<i class="{{ systemDataType.icon }}"
|
||||
ng-class="{'icon-autofill': systemDataType.icon == null}"></i>
|
||||
{{ systemDataType.name }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -115,6 +115,26 @@ namespace Umbraco.Web.Editors
|
||||
}
|
||||
|
||||
|
||||
[UmbracoTreeAuthorize(Constants.Trees.DataTypes, Constants.Trees.Content, Constants.Trees.Media)]
|
||||
public IDictionary<string, List<DataTypeBasic>> GetAllDataTypesAndEditors()
|
||||
{
|
||||
var datadefs = Services.DataTypeService
|
||||
.GetAllDataTypeDefinitions();
|
||||
var editors = PropertyEditorResolver.Current.PropertyEditors.Where(x => datadefs.Any(y => y.PropertyEditorAlias == x.Alias) == false);
|
||||
|
||||
var datatypes = new List<DataTypeBasic>();
|
||||
|
||||
foreach (var datadef in datadefs)
|
||||
datatypes.Add(Mapper.Map<DataTypeBasic>(datadef));
|
||||
|
||||
foreach (var unusedEditor in editors)
|
||||
datatypes.Add(Mapper.Map<DataTypeBasic>(unusedEditor));
|
||||
|
||||
var grouped = datatypes.GroupBy(x => x.Group.ToLower()).ToDictionary(group => group.Key, group => group.ToList());
|
||||
return grouped;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets the content json for all property editors
|
||||
/// </summary>
|
||||
|
||||
@@ -15,5 +15,9 @@ namespace Umbraco.Web.Models.ContentEditing
|
||||
[DataMember(Name = "isSystem")]
|
||||
[ReadOnly(true)]
|
||||
public bool IsSystemDataType { get; set; }
|
||||
|
||||
[DataMember(Name = "group")]
|
||||
[ReadOnly(true)]
|
||||
public string Group { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -34,10 +34,21 @@ namespace Umbraco.Web.Models.Mapping
|
||||
Constants.System.DefaultMembersListViewDataTypeId
|
||||
};
|
||||
|
||||
config.CreateMap<IDataTypeDefinition, DataTypeBasic>()
|
||||
config.CreateMap<PropertyEditor, DataTypeBasic>();
|
||||
|
||||
config.CreateMap<IDataTypeDefinition, DataTypeBasic>()
|
||||
.ForMember(x => x.Icon, expression => expression.Ignore())
|
||||
.ForMember(x => x.Alias, expression => expression.Ignore())
|
||||
.ForMember(x => x.IsSystemDataType, expression => expression.MapFrom(definition => systemIds.Contains(definition.Id)));
|
||||
.ForMember(x => x.IsSystemDataType, expression => expression.MapFrom(definition => systemIds.Contains(definition.Id)))
|
||||
.AfterMap( (def,basic) =>
|
||||
{
|
||||
var editor = PropertyEditorResolver.Current.GetByAlias(def.PropertyEditorAlias);
|
||||
if(editor != null){
|
||||
basic.Group = editor.Group;
|
||||
basic.Icon = editor.Icon;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
config.CreateMap<IDataTypeDefinition, DataTypeDisplay>()
|
||||
.ForMember(display => display.AvailableEditors, expression => expression.ResolveUsing<AvailablePropertyEditorsResolver>())
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Umbraco.Web.PropertyEditors
|
||||
/// as INT and we have logic in here to ensure it is formatted correctly including ensuring that the string value is published
|
||||
/// in cache and not the int ID.
|
||||
/// </remarks>
|
||||
[PropertyEditor(Constants.PropertyEditors.CheckBoxListAlias, "Checkbox list", "checkboxlist")]
|
||||
[PropertyEditor(Constants.PropertyEditors.CheckBoxListAlias, "Checkbox list", "checkboxlist", Icon="icon-bulleted-list", Group="lists")]
|
||||
public class CheckBoxListPropertyEditor : PropertyEditor
|
||||
{
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.ColorPickerAlias, "Color Picker", "colorpicker")]
|
||||
[PropertyEditor(Constants.PropertyEditors.ColorPickerAlias, "Color Picker", "colorpicker", Icon="icon-colorpicker", Group="Pickers")]
|
||||
public class ColorPickerPropertyEditor : PropertyEditor
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -4,7 +4,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.ContentPickerAlias, "Content Picker", "INT", "contentpicker", IsParameterEditor = true)]
|
||||
[PropertyEditor(Constants.PropertyEditors.ContentPickerAlias, "Content Picker", "INT", "contentpicker", IsParameterEditor = true, Group = "Pickers")]
|
||||
public class ContentPickerPropertyEditor : PropertyEditor
|
||||
{
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ using Umbraco.Core.Services;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.DateAlias, "Date", "DATE", "datepicker")]
|
||||
[PropertyEditor(Constants.PropertyEditors.DateAlias, "Date", "DATE", "datepicker", Icon="icon-calendar")]
|
||||
public class DatePropertyEditor : PropertyEditor
|
||||
{
|
||||
public DatePropertyEditor()
|
||||
|
||||
@@ -5,7 +5,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.DateTimeAlias, "Date/Time", "datepicker", ValueType = "DATETIME")]
|
||||
[PropertyEditor(Constants.PropertyEditors.DateTimeAlias, "Date/Time", "datepicker", ValueType = "DATETIME", Icon="icon-time")]
|
||||
public class DateTimePropertyEditor : PropertyEditor
|
||||
{
|
||||
public DateTimePropertyEditor()
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Umbraco.Web.PropertyEditors
|
||||
[ParameterEditor("propertyTypePickerMultiple", "Name", "textbox")]
|
||||
[ParameterEditor("contentTypeMultiple", "Name", "textbox")]
|
||||
[ParameterEditor("tabPickerMultiple", "Name", "textbox")]
|
||||
[PropertyEditor(Constants.PropertyEditors.DropDownListMultipleAlias, "Dropdown list multiple", "dropdown")]
|
||||
[PropertyEditor(Constants.PropertyEditors.DropDownListMultipleAlias, "Dropdown list multiple", "dropdown", Group = "lists", Icon="icon-bulleted-list")]
|
||||
public class DropDownMultiplePropertyEditor : DropDownMultipleWithKeysPropertyEditor
|
||||
{
|
||||
protected override PropertyValueEditor CreateValueEditor()
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Umbraco.Web.PropertyEditors
|
||||
/// Due to maintaining backwards compatibility this data type stores the value as a string which is a comma separated value of the
|
||||
/// ids of the individual items so we have logic in here to deal with that.
|
||||
/// </remarks>
|
||||
[PropertyEditor(Constants.PropertyEditors.DropdownlistMultiplePublishKeysAlias, "Dropdown list multiple, publish keys", "dropdown")]
|
||||
[PropertyEditor(Constants.PropertyEditors.DropdownlistMultiplePublishKeysAlias, "Dropdown list multiple, publish keys", "dropdown", Group = "lists", Icon = "icon-bulleted-list")]
|
||||
public class DropDownMultipleWithKeysPropertyEditor : DropDownPropertyEditor
|
||||
{
|
||||
protected override PropertyValueEditor CreateValueEditor()
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Umbraco.Web.PropertyEditors
|
||||
/// as INT and we have logic in here to ensure it is formatted correctly including ensuring that the string value is published
|
||||
/// in cache and not the int ID.
|
||||
/// </remarks>
|
||||
[PropertyEditor(Constants.PropertyEditors.DropDownListAlias, "Dropdown list", "dropdown", ValueType = "STRING")]
|
||||
[PropertyEditor(Constants.PropertyEditors.DropDownListAlias, "Dropdown list", "dropdown", ValueType = "STRING", Group = "lists", Icon = "icon-indent")]
|
||||
public class DropDownPropertyEditor : DropDownWithKeysPropertyEditor
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Umbraco.Web.PropertyEditors
|
||||
/// as INT and we have logic in here to ensure it is formatted correctly including ensuring that the INT ID value is published
|
||||
/// in cache and not the string value.
|
||||
/// </remarks>
|
||||
[PropertyEditor(Constants.PropertyEditors.DropdownlistPublishingKeysAlias, "Dropdown list, publishing keys", "dropdown", ValueType = "INT")]
|
||||
[PropertyEditor(Constants.PropertyEditors.DropdownlistPublishingKeysAlias, "Dropdown list, publishing keys", "dropdown", ValueType = "INT", Group = "lists", Icon = "icon-indent")]
|
||||
public class DropDownWithKeysPropertyEditor : PropertyEditor
|
||||
{
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.EmailAddressAlias, "Email address", "email")]
|
||||
[PropertyEditor(Constants.PropertyEditors.EmailAddressAlias, "Email address", "email", Icon="icon-message")]
|
||||
public class EmailAddressPropertyEditor : PropertyEditor
|
||||
{
|
||||
protected override PropertyValueEditor CreateValueEditor()
|
||||
|
||||
@@ -20,7 +20,7 @@ using Umbraco.Core.Services;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.UploadFieldAlias, "File upload", "fileupload")]
|
||||
[PropertyEditor(Constants.PropertyEditors.UploadFieldAlias, "File upload", "fileupload", Icon = "icon-download-alt", Group = "media")]
|
||||
public class FileUploadPropertyEditor : PropertyEditor
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -5,7 +5,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.FolderBrowserAlias, "Folder Browser", "folderbrowser", HideLabel=true)]
|
||||
[PropertyEditor(Constants.PropertyEditors.FolderBrowserAlias, "Folder Browser", "folderbrowser", HideLabel=true, Icon="icon-folder", Group="media")]
|
||||
public class FolderBrowserPropertyEditor : PropertyEditor
|
||||
{
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ using Umbraco.Core.Services;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Core.Constants.PropertyEditors.GridAlias, "Grid layout", "grid", HideLabel = true, IsParameterEditor = false, ValueType = "JSON")]
|
||||
[PropertyEditor(Core.Constants.PropertyEditors.GridAlias, "Grid layout", "grid", HideLabel = true, IsParameterEditor = false, ValueType = "JSON", Group="rich content", Icon="icon-layout")]
|
||||
public class GridPropertyEditor : PropertyEditor
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -15,7 +15,7 @@ using Umbraco.Core.Services;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.ImageCropperAlias, "Image Cropper", "imagecropper", ValueType = "JSON", HideLabel = false)]
|
||||
[PropertyEditor(Constants.PropertyEditors.ImageCropperAlias, "Image Cropper", "imagecropper", ValueType = "JSON", HideLabel = false, Group="media", Icon="icon-crop")]
|
||||
public class ImageCropperPropertyEditor : PropertyEditor
|
||||
{
|
||||
|
||||
|
||||
@@ -16,14 +16,14 @@ namespace Umbraco.Web.PropertyEditors
|
||||
editor.Validators.Add(new IntegerValidator());
|
||||
return editor;
|
||||
}
|
||||
|
||||
protected override PreValueEditor CreatePreValueEditor()
|
||||
|
||||
protected override PreValueEditor CreatePreValueEditor()
|
||||
{
|
||||
return new IntegerPreValueEditor();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A custom pre-value editor class to deal with the legacy way that the pre-value data is stored.
|
||||
return new IntegerPreValueEditor();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A custom pre-value editor class to deal with the legacy way that the pre-value data is stored.
|
||||
/// </summary>
|
||||
internal class IntegerPreValueEditor : PreValueEditor
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.NoEditAlias, "Label", "readonlyvalue")]
|
||||
[PropertyEditor(Constants.PropertyEditors.NoEditAlias, "Label", "readonlyvalue", Icon="icon-readonly")]
|
||||
public class LabelPropertyEditor : PropertyEditor
|
||||
{
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.ListViewAlias, "List view", "listview", HideLabel = true)]
|
||||
[PropertyEditor(Constants.PropertyEditors.ListViewAlias, "List view", "listview", HideLabel = true, Group = "lists", Icon = "icon-item-arrangement")]
|
||||
public class ListViewPropertyEditor : PropertyEditor
|
||||
{
|
||||
protected override PreValueEditor CreatePreValueEditor()
|
||||
|
||||
@@ -9,7 +9,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.MacroContainerAlias, "Macro container", "macrocontainer", ValueType = "TEXT")]
|
||||
[PropertyEditor(Constants.PropertyEditors.MacroContainerAlias, "Macro container", "macrocontainer", ValueType = "TEXT", Group="rich content", Icon="icon-settings-alt")]
|
||||
public class MacroContainerPropertyEditor : PropertyEditor
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -3,7 +3,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.MarkdownEditorAlias, "Markdown editor", "markdowneditor", ValueType = "TEXT")]
|
||||
[PropertyEditor(Constants.PropertyEditors.MarkdownEditorAlias, "Markdown editor", "markdowneditor", ValueType = "TEXT", Icon="icon-code", Group="rich content")]
|
||||
public class MarkdownPropertyEditor : PropertyEditor
|
||||
{
|
||||
protected override PreValueEditor CreatePreValueEditor()
|
||||
|
||||
@@ -9,7 +9,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.MediaPickerAlias, "Legacy Media Picker", "INT", "mediapicker")]
|
||||
[PropertyEditor(Constants.PropertyEditors.MediaPickerAlias, "Legacy Media Picker", "INT", "mediapicker", Group="media", Icon="icon-picture")]
|
||||
public class MediaPickerPropertyEditor : PropertyEditor
|
||||
{
|
||||
public MediaPickerPropertyEditor()
|
||||
|
||||
@@ -8,7 +8,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.MemberGroupPickerAlias, "Member Group Picker", "membergrouppicker")]
|
||||
[PropertyEditor(Constants.PropertyEditors.MemberGroupPickerAlias, "Member Group Picker", "membergrouppicker", Group="People", Icon="icon-users")]
|
||||
public class MemberGroupPickerPropertyEditor : PropertyEditor
|
||||
{
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.MemberPickerAlias, "Member Picker", "INT", "memberpicker")]
|
||||
[PropertyEditor(Constants.PropertyEditors.MemberPickerAlias, "Member Picker", "INT", "memberpicker", Group = "People", Icon = "icon-user")]
|
||||
public class MemberPickerPropertyEditor : PropertyEditor
|
||||
{
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.MultiNodeTreePickerAlias, "Multinode Treepicker", "contentpicker")]
|
||||
[PropertyEditor(Constants.PropertyEditors.MultiNodeTreePickerAlias, "Multinode Treepicker", "contentpicker", Group="pickers", Icon="icon-page-add")]
|
||||
public class MultiNodeTreePickerPropertyEditor : PropertyEditor
|
||||
{
|
||||
public MultiNodeTreePickerPropertyEditor()
|
||||
|
||||
@@ -3,7 +3,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.MultipleMediaPickerAlias, "Media Picker", "mediapicker")]
|
||||
[PropertyEditor(Constants.PropertyEditors.MultipleMediaPickerAlias, "Media Picker", "mediapicker", Group = "media", Icon = "icon-pictures-alt-2")]
|
||||
public class MultipleMediaPickerPropertyEditor : MediaPickerPropertyEditor
|
||||
{
|
||||
public MultipleMediaPickerPropertyEditor()
|
||||
|
||||
@@ -14,7 +14,7 @@ using Umbraco.Core.Services;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.MultipleTextstringAlias, "Multiple Textbox", "multipletextbox", ValueType = "TEXT")]
|
||||
[PropertyEditor(Constants.PropertyEditors.MultipleTextstringAlias, "Repeatable textstrings", "multipletextbox", ValueType = "TEXT", Icon="icon-ordered-list", Group="lists")]
|
||||
public class MultipleTextStringPropertyEditor : PropertyEditor
|
||||
{
|
||||
protected override PropertyValueEditor CreateValueEditor()
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Umbraco.Web.PropertyEditors
|
||||
/// as INT and we have logic in here to ensure it is formatted correctly including ensuring that the INT ID value is published
|
||||
/// in cache and not the string value.
|
||||
/// </remarks>
|
||||
[PropertyEditor(Constants.PropertyEditors.RadioButtonListAlias, "Radio button list", "radiobuttons", ValueType = "INT")]
|
||||
[PropertyEditor(Constants.PropertyEditors.RadioButtonListAlias, "Radio button list", "radiobuttons", ValueType = "INT", Group="lists", Icon="icon-target")]
|
||||
public class RadioButtonsPropertyEditor : DropDownWithKeysPropertyEditor
|
||||
{
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.RelatedLinksAlias, "Related links", "relatedlinks", ValueType ="JSON")]
|
||||
[PropertyEditor(Constants.PropertyEditors.RelatedLinksAlias, "Related links", "relatedlinks", ValueType ="JSON", Icon="icon-thumbnail-list", Group="pickers")]
|
||||
public class RelatedLinksPropertyEditor : PropertyEditor
|
||||
{
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ using Umbraco.Core.Services;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.TinyMCEAlias, "Rich Text Editor", "rte", ValueType = "TEXT", HideLabel = false)]
|
||||
[PropertyEditor(Constants.PropertyEditors.TinyMCEAlias, "Rich Text Editor", "rte", ValueType = "TEXT", HideLabel = false, Group="Rich Content", Icon="icon-browser-window")]
|
||||
public class RichTextPropertyEditor : PropertyEditor
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -3,7 +3,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.SliderAlias, "Slider", "slider")]
|
||||
[PropertyEditor(Constants.PropertyEditors.SliderAlias, "Slider", "slider", Icon="icon-navigation-horizontal")]
|
||||
public class SliderPropertyEditor : PropertyEditor
|
||||
{
|
||||
protected override PreValueEditor CreatePreValueEditor()
|
||||
|
||||
@@ -11,7 +11,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[SupportTags(typeof(TagPropertyEditorTagDefinition), ValueType = TagValueType.CustomTagList)]
|
||||
[PropertyEditor(Constants.PropertyEditors.TagsAlias, "Tags", "tags")]
|
||||
[PropertyEditor(Constants.PropertyEditors.TagsAlias, "Tags", "tags", Icon="icon-tags")]
|
||||
public class TagsPropertyEditor : PropertyEditor
|
||||
{
|
||||
public TagsPropertyEditor()
|
||||
|
||||
@@ -3,7 +3,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.TextboxMultipleAlias, "Textarea", "textarea", IsParameterEditor = true, ValueType = "TEXT")]
|
||||
[PropertyEditor(Constants.PropertyEditors.TextboxMultipleAlias, "Textarea", "textarea", IsParameterEditor = true, ValueType = "TEXT", Icon="icon-application-window-alt")]
|
||||
public class TextAreaPropertyEditor : PropertyEditor
|
||||
{
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ using Umbraco.Core.Services;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.TextboxAlias, "Textbox", "textbox", IsParameterEditor = true)]
|
||||
[PropertyEditor(Constants.PropertyEditors.TextboxAlias, "Textbox", "textbox", IsParameterEditor = true, Group = "Common")]
|
||||
public class TextboxPropertyEditor : PropertyEditor
|
||||
{
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.TrueFalseAlias, "True/False", "INT", "boolean", IsParameterEditor = true)]
|
||||
[PropertyEditor(Constants.PropertyEditors.TrueFalseAlias, "True/False", "INT", "boolean", IsParameterEditor = true, Group = "Common", Icon="icon-checkbox")]
|
||||
public class TrueFalsePropertyEditor : PropertyEditor
|
||||
{
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ using Umbraco.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors
|
||||
{
|
||||
[PropertyEditor(Constants.PropertyEditors.UserPickerAlias, "User picker", "INT", "entitypicker")]
|
||||
[PropertyEditor(Constants.PropertyEditors.UserPickerAlias, "User picker", "INT", "entitypicker", Group="People", Icon="icon-user")]
|
||||
public class UserPickerPropertyEditor : PropertyEditor
|
||||
{
|
||||
private IDictionary<string, object> _defaultPreValues;
|
||||
|
||||
Reference in New Issue
Block a user