1 <div class=
"af-gui-columns crm-flex-box" ng-if=
"!$ctrl.entity.loading">
2 <fieldset class=
"af-gui-entity-values">
3 <legend>{{:: ts('Values:') }}
</legend>
4 <div class=
"form-inline" ng-if=
"getMeta().fields[fieldName]" ng-repeat=
"(fieldName, value) in $ctrl.entity.data">
5 <label>{{ getMeta().fields[fieldName].label }}:
</label><br />
6 <input class=
"form-control" af-gui-field-value=
"getField($ctrl.entity.type, fieldName)" ng-model=
"$ctrl.entity.data[fieldName]" />
7 <a href
ng-click=
"removeValue($ctrl.entity, fieldName)">
8 <i class=
"crm-i fa-times"></i>
12 <div class=
"form-inline">
13 <input class=
"form-control" ng-model=
"controls.addValue" crm-ui-select=
"{data: valuesFields}" placeholder=
"Add value" />
17 <fieldset class=
"af-gui-entity-palette">
18 <legend class=
"form-inline">
20 <input ng-model=
"controls.fieldSearch" class=
"form-control" type=
"search" placeholder=
"" title=
"{{:: ts('Search fields') }}" />
22 <div class=
"af-gui-entity-palette-select-list">
23 <div ng-if=
"blockList.length">
24 <label>{{:: ts('Blocks') }}
</label>
25 <div ui-sortable=
"{update: buildPaletteLists, items: '> div:not(.disabled)', connectWith: '[data-entity=' + $ctrl.entity.name + '] > [ui-sortable]', placeholder: 'af-gui-dropzone'}" ui-sortable-update=
"$ctrl.editor.onDrop" ng-model=
"blockList">
26 <div ng-repeat=
"block in blockList" ng-class=
"{disabled: blockInUse(block)}">
27 {{ blockTitles[$index] }}
31 <div ng-if=
"elementList.length">
32 <label>{{:: ts('Elements') }}
</label>
33 <div ui-sortable=
"{update: buildPaletteLists, items: '> div:not(.disabled)', connectWith: '[ui-sortable]', placeholder: 'af-gui-dropzone'}" ui-sortable-update=
"$ctrl.editor.onDrop" ng-model=
"elementList">
34 <div ng-repeat=
"element in elementList" >
35 {{ elementTitles[$index] }}
39 <div ng-repeat=
"fieldGroup in fieldList">
40 <div ng-if=
"fieldGroup.fields.length">
41 <label>{{ fieldGroup.label }}
</label>
42 <div ui-sortable=
"{update: buildPaletteLists, items: '> div:not(.disabled)', connectWith: '[data-entity=' + fieldGroup.entityName + '] > [ui-sortable]', placeholder: 'af-gui-dropzone'}" ui-sortable-update=
"$ctrl.editor.onDrop" ng-model=
"fieldGroup.fields">
43 <div ng-repeat=
"field in fieldGroup.fields" ng-class=
"{disabled: fieldInUse(field.name)}">
44 {{ getField(fieldGroup.entityType, field.name).label }}
53 <a href
ng-click=
"$ctrl.editor.removeEntity($ctrl.entity.name)" class=
"btn btn-sm btn-danger-outline af-gui-remove-entity" title=
"{{ ts('Remove %1', {1: getMeta().label}) }}">
54 <i class=
"crm-i fa-trash"></i>
57 <fieldset ng-if=
"!$ctrl.entity.loading">
58 <legend>{{:: ts('Options') }}
</legend>
59 <div ng-include=
"'~/afGuiEditor/entityConfig/' + $ctrl.entity.type + '.html'"></div>