clean white space in property settings dialog

This commit is contained in:
Mads Rasmussen
2015-08-27 10:42:30 +02:00
parent 6e5dda5d4f
commit 0bedc11b36

View File

@@ -1,63 +1,64 @@
<div class="content-type-editor-dialog edit-property-settings" ng-controller="Umbraco.Editors.DocumentType.EditPropertySettingsController">
<div class="umb-control-group clearfix">
<div class="umb-control-group clearfix">
<div class="validation-wrapper">
<input class="editor-label"
name="propertyLabel"
ng-model="model.property.label"
placeholder="Enter a name..."
umb-auto-focus
focus-on-filled="true"
required
/>
<span class="validation-label" val-msg-for="propertyLabel" val-toggle-msg="required"><localize key="required" /></span>
</div>
<div class="validation-wrapper">
<input class="editor-label"
name="propertyLabel"
ng-model="model.property.label"
placeholder="Enter a name..."
umb-auto-focus
focus-on-filled="true"
required/>
<span class="validation-label" val-msg-for="propertyLabel" val-toggle-msg="required"><localize key="required" /></span>
</div>
<umb-generate-alias enable-lock="true" alias-from="model.property.label" alias="model.property.alias"></umb-generate-alias>
<umb-generate-alias enable-lock="true" alias-from="model.property.label" alias="model.property.alias"></umb-generate-alias>
</div>
</div>
<div class="umb-control-group clearfix">
<textarea class="editor-description" ng-model="model.property.description" placeholder="Add your description here..." umb-auto-resize></textarea>
</div>
<div class="umb-control-group clearfix">
<textarea class="editor-description" ng-model="model.property.description" placeholder="Add your description here..." umb-auto-resize></textarea>
</div>
<div class="editor-wrapper umb-control-group clearfix" ng-model="model.property.editor" val-require-component>
<div class="editor-wrapper umb-control-group clearfix" ng-model="model.property.editor" val-require-component>
<a href="" ng-if="!model.property.editor" class="editor-placeholder" hotkey="alt+shift+e" ng-click="model.changePropertyEditor(model.property)">Add Editor</a>
<a href="" ng-if="!model.property.editor" class="editor-placeholder" hotkey="alt+shift+e" ng-click="model.changePropertyEditor(model.property)">Add Editor</a>
<div class="editor clearfix" ng-if="model.property.editor">
<div class="editor clearfix" ng-if="model.property.editor">
<a href="" class="editor-icon-wrapper" ng-click="model.changePropertyEditor(model.property)">
<i class="icon {{ model.property.dataTypeIcon }}" ng-class="{'icon-autofill': model.property.dataType.icon == null}"></i>
</a>
<a href="" class="editor-icon-wrapper" ng-click="model.changePropertyEditor(model.property)">
<i class="icon {{ model.property.dataTypeIcon }}" ng-class="{'icon-autofill': model.property.dataType.icon == null}"></i>
</a>
<div class="editor-details">
<a href="" class="editor-name" ng-click="model.changePropertyEditor(model.property)">{{ model.property.dataTypeName }}</a>
<a href="" class="editor-editor" ng-click="model.changePropertyEditor(model.property)">{{ model.property.editor }}</a>
</div>
<div class="editor-details">
<a href="" class="editor-name" ng-click="model.changePropertyEditor(model.property)">{{ model.property.dataTypeName }}</a>
<a href="" class="editor-editor" ng-click="model.changePropertyEditor(model.property)">{{ model.property.editor }}</a>
</div>
<a href class="pull-right" style="padding-top: 15px"
ng-click="model.editDataType(model.property)" hotkey="alt+shift+d" ng-if="model.property.editor">
<i class="icon icon-settings" style="font-size: 15px; color: #555"></i>
</a>
<a href class="pull-right" style="padding-top: 15px"
ng-click="model.editDataType(model.property)"
hotkey="alt+shift+d"
ng-if="model.property.editor">
<i class="icon icon-settings" style="font-size: 15px; color: #555"></i>
</a>
</div>
</div>
</div>
</div>
<div class="umb-control-group clearfix">
<div class="umb-control-group clearfix">
<label class="checkbox no-indent">
<input type="checkbox" ng-model="model.property.validation.mandatory"> Field is mandatory
</label>
<label class="checkbox no-indent">
<input type="checkbox" ng-model="model.property.validation.mandatory"> Field is mandatory
</label>
<select class="umb-dropdown" ng-options="validationType.name for validationType in validationTypes" ng-model="selectedValidationType" ng-change="changeValidationType(selectedValidationType)">
<option value="">Validation</option>
</select>
<select class="umb-dropdown" ng-options="validationType.name for validationType in validationTypes" ng-model="selectedValidationType" ng-change="changeValidationType(selectedValidationType)">
<option value="">Validation</option>
</select>
<textarea class="editor-validation-pattern" placeholder="Enter a regular expression" ng-model="model.property.validation.pattern" ng-if="propertySettings.showValidationPattern" umb-auto-resize focus-when="{{propertySettings.focusOnPatternField}}"></textarea>
<textarea class="editor-validation-pattern" placeholder="Enter a regular expression" ng-model="model.property.validation.pattern" ng-if="propertySettings.showValidationPattern" umb-auto-resize focus-when="{{propertySettings.focusOnPatternField}}"></textarea>
</div>
</div>
</div>