Commit | Line | Data |
---|---|---|
9c572641 CW |
1 | <li> |
2 | <div href ng-click="$event.stopPropagation()" class="af-gui-field-select-in-dropdown"> | |
3 | <label>{{ ts('Type:') }}</label> | |
4 | <select class="form-control" ng-model="getSet('input_type')" ng-model-options="{getterSetter: true}" title="{{ ts('Field type') }}"> | |
5 | <option ng-repeat="(type, label) in editor.meta.inputType" value="{{ type }}" ng-if="inputTypeCanBe(type)">{{ label }}</option> | |
6 | </select> | |
7 | </div> | |
8 | </li> | |
9 | <li> | |
10 | <a href ng-click="toggleRequired(); $event.stopPropagation();" title="{{ ts('Require this field') }}"> | |
11 | <i class="crm-i" ng-class="{'fa-square-o': !getProp('required'), 'fa-check-square-o': getProp('required')}"></i> | |
12 | {{ ts('Required') }} | |
13 | </a> | |
14 | </li> | |
0d97b137 CW |
15 | <li> |
16 | <a href ng-click="toggleLabel(); $event.stopPropagation();" title="{{ ts('Show field label') }}"> | |
17 | <i class="crm-i" ng-class="{'fa-square-o': node.defn.title === false, 'fa-check-square-o': node.defn.title !== false}"></i> | |
18 | {{ ts('Label') }} | |
19 | </a> | |
20 | </li> | |
9c572641 CW |
21 | <li> |
22 | <a href ng-click="toggleHelp('pre'); $event.stopPropagation();" title="{{ ts('Show help text above this field') }}"> | |
23 | <i class="crm-i" ng-class="{'fa-square-o': !propIsset('help_pre'), 'fa-check-square-o': propIsset('help_pre')}"></i> | |
24 | {{ ts('Pre help text') }} | |
25 | </a> | |
26 | </li> | |
27 | <li> | |
28 | <a href ng-click="toggleHelp('post'); $event.stopPropagation();" title="{{ ts('Show help text below this field') }}"> | |
29 | <i class="crm-i" ng-class="{'fa-square-o': !propIsset('help_post'), 'fa-check-square-o': propIsset('help_post')}"></i> | |
30 | {{ ts('Post help text') }} | |
31 | </a> | |
32 | </li> | |
33 | <li role="separator" class="divider" ng-if="hasOptions()"></li> | |
34 | <li ng-if="hasOptions()" ng-click="$event.stopPropagation()"> | |
35 | <a href ng-click="resetOptions()" title="{{ ts('Reset the option list for this field') }}"> | |
36 | <i class="crm-i fa-{{ node.defn.options ? '' : 'check-' }}circle-o"></i> | |
e1aca853 | 37 | {{ ts('Default option list') }} |
9c572641 CW |
38 | </a> |
39 | </li> | |
40 | <li ng-if="hasOptions()"> | |
41 | <a href ng-click="editOptions()" title="{{ ts('Customize the option list for this field') }}"> | |
42 | <i class="crm-i fa-{{ !node.defn.options ? '' : 'check-' }}circle-o"></i> | |
e1aca853 | 43 | {{ ts('Customize options') }} |
9c572641 CW |
44 | </a> |
45 | </li> | |
46 | <li role="separator" class="divider"></li> | |
47 | <li> | |
6fb9e8d2 | 48 | <a href ng-click="container.removeElement(node)" title="{{ ts('Remove field from form') }}"> |
9c572641 CW |
49 | <span class="text-danger">{{ ts('Delete this field') }}</span> |
50 | </a> | |
51 | </li> |