Commit | Line | Data |
---|---|---|
4e97c268 CW |
1 | <form id="bootstrap-theme"> |
2 | <div ng-controller="SaveSearchCtrl"> | |
3 | <input class="form-control" id="api-save-search-select-group" ng-model="model.id" crm-entityref="{entity: 'Group', api: {extra: ['saved_search_id', 'description'], params: {is_hidden: 0, is_active: 1, 'saved_search_id.api_entity': model.entity}}, select: {allowClear: true, placeholder: ts('Select existing group')}}" > | |
4 | <label ng-show="!model.id">{{ ts('Or') }}</label> | |
5 | <input class="form-control" placeholder="Create new group" ng-model="model.title" ng-show="!model.id"> | |
6 | <label>{{ ts('Description:') }}</label> | |
7 | <textarea ng-model="model.description"></textarea> | |
8 | <hr /> | |
9 | <div class="buttons pull-right"> | |
10 | <button ng-click="cancel()" class="btn btn-danger">{{ ts('Cancel') }}</button> | |
11 | <button ng-click="save()" class="btn btn-primary" ng-disabled="!model.title && !model.id">{{ ts('Save') }}</button> | |
12 | </div> | |
13 | </div> | |
14 | </form> |