SearchKit - Use server-side preprocessing for editable fields
[civicrm-core.git] / ext / search_kit / ang / crmSearchAdmin / displays / colType / field.html
CommitLineData
2fe33e6c 1<div class="form-inline crm-search-admin-flex-row" ng-if=":: $ctrl.parent.canBeLink(col)">
eec20152 2 <label title="{{:: ts('Display as clickable link') }}" >
2dbf2d72 3 <input type="checkbox" ng-checked="col.link" ng-click="$ctrl.parent.toggleLink(col)" >
ccaaa678 4 {{:: ts('Link') }}
2dbf2d72 5 </label>
eec20152 6 <select class="form-control" ng-model="col.link.target" ng-if="col.link">
2dbf2d72
CW
7 <option value>{{:: ts('Open normally') }}</option>
8 <option value="_blank">{{:: ts('New tab') }}</option>
9 <option value="crm-popup">{{:: ts('Popup dialog') }}</option>
10 </select>
d6704532 11 <crm-search-admin-link-select ng-if="col.link" link="col.link" on-change="$ctrl.parent.onChangeLink(col, before, after)" api-entity="$ctrl.apiEntity" api-params="$ctrl.apiParams" links=":: $ctrl.parent.getLinks(col.key)">
2dbf2d72
CW
12 </crm-search-admin-link-select>
13</div>
30a8f784
CW
14<div class="form-inline crm-search-admin-flex-row">
15 <label>
16 <input type="checkbox" ng-checked="col.title" ng-click="col.title = col.title ? null : $ctrl.parent.getFieldLabel(col.key)" >
ccaaa678 17 {{:: ts('Tooltip') }}
30a8f784 18 </label>
2dbf2d72 19 <input class="form-control crm-flex-1" type="text" ng-model="col.title" ng-if="col.title" ng-model-options="{updateOn: 'blur'}" />
c1335819 20 <crm-search-admin-token-select ng-if="col.title" model="col" field="title" suffix=":label"></crm-search-admin-token-select>
d944aabf 21</div>
a58b7052
KJ
22<div class="form-inline">
23 <label>
24 <input type="checkbox" ng-checked="col.image" ng-click="$ctrl.parent.toggleImage(col)" >
25 {{:: ts('Image') }}
26 </label>
27 <div class="crm-search-admin-flex-row" ng-if="col.image">
28 <label>{{:: ts('Width') }}</label>
29 <input type="number" min="1" class="form-control crm-flex-1" placeholder="Auto" ng-model="col.image.width">
30 <label>{{:: ts('Height') }}</label>
31 <input type="number" min="1" class="form-control crm-flex-1" placeholder="Auto" ng-model="col.image.height">
32 <label>{{:: ts('Alt Text') }}</label>
33 <input type="text" class="form-control crm-flex-2" ng-model="col.image.alt">
34 <crm-search-admin-token-select api-entity="$ctrl.apiEntity" api-params="$ctrl.apiParams" model="col.image" field="alt"></crm-search-admin-token-select>
35 </div>
36</div>
69f0bd2b 37<div class="form-inline crm-search-admin-flex-row">
ddfb2aec 38 <label title="{{:: ts('Change the contents of this field, or combine multiple field values.') }}">
b2ee26f0 39 <input type="checkbox" ng-checked="col.rewrite" ng-click="$ctrl.parent.toggleRewrite(col)" >
ccaaa678 40 {{:: ts('Rewrite') }}
69f0bd2b 41 </label>
2dbf2d72 42 <input type="text" class="form-control crm-flex-1" ng-if="col.rewrite" ng-model="col.rewrite" ng-model-options="{updateOn: 'blur'}">
c1335819 43 <crm-search-admin-token-select ng-if="col.rewrite" model="col" field="rewrite" suffix=":label"></crm-search-admin-token-select>
69f0bd2b 44</div>
b2ee26f0 45<div class="form-inline">
c0fcc640 46 <label ng-if="$ctrl.parent.canBeEditable(col)" title="{{:: ts('Users will be able to click to edit this field.') }}">
b2ee26f0 47 <input type="checkbox" ng-checked="col.editable" ng-click="$ctrl.parent.toggleEditable(col)">
ccaaa678 48 {{:: ts('In-Place Edit') }}
b2ee26f0 49 </label>
c0fcc640 50 <label ng-if="!$ctrl.parent.canBeEditable(col)" class="disabled" title="{{:: ts('Read-only or rewritten fields cannot be editable.') }}">
b2ee26f0 51 <input type="checkbox" disabled>
ccaaa678 52 {{:: ts('In-Place Edit') }}
b2ee26f0
CW
53 </label>
54</div>