Search ext: Improve styling
[civicrm-core.git] / ext / search / ang / searchAdmin / group.html
CommitLineData
4b01551f
CW
1<div ng-if="!$ctrl.groupExists">
2 <div class="alert alert-warning">
44402a2e 3 {{:: ts('Smart group "%1" will be deleted.', {1: $ctrl.savedSearch.groups[0].title}) }}
4b01551f
CW
4 </div>
5</div>
6<div ng-if="$ctrl.groupExists">
7 <div class="alert alert-warning" ng-show="!smartGroupColumns.length">
8 {{:: ts('Unable to create smart group because this search does not include any contacts.') }}
9 </div>
44402a2e 10 <input class="form-control" placeholder="{{:: ts('Group Title') }}" ng-model="$ctrl.savedSearch.groups[0].title" ng-disabled="!smartGroupColumns.length">
4b01551f
CW
11 <hr />
12 <div class="form-inline">
13 <label for="api-save-search-select-column">{{:: ts('Contact Column:') }} <span class="crm-marker">*</span></label>
14 <input id="api-save-search-select-column" ng-model="$ctrl.savedSearch.api_params.select[0]" class="form-control" crm-ui-select="{data: smartGroupColumns}"/>
15 </div>
16 <fieldset ng-show="smartGroupColumns.length">
17 <label>{{:: ts('Description:') }}</label>
44402a2e 18 <textarea class="form-control" ng-model="$ctrl.savedSearch.groups[0].description"></textarea>
4b01551f
CW
19 <div class="form-inline">
20 <label>{{:: ts('Group Type:') }} </label>
21 <div class="checkbox" ng-repeat="option in groupOptions.group_type track by option.id">&nbsp;
22 <label>
44402a2e 23 <input type="checkbox" checklist-model="$ctrl.savedSearch.groups[0].group_type" checklist-value="option.id">
4b01551f
CW
24 {{ option.label }}
25 </label>&nbsp;
26 </div>
27 </div>
28 <div class="form-inline">
29 <label>{{:: ts('Visibility:') }}</label>
44402a2e 30 <select class="form-control" ng-model="$ctrl.savedSearch.groups[0].visibility" ng-options="item.id as item.label for item in groupOptions.visibility track by item.id" crm-ui-select></select>
4b01551f
CW
31 </div>
32 </fieldset>
33</div>