| 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="groupEntityRefParams" > |
| 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 | <hr /> |
| 7 | <label>{{:: ts('Description:') }}</label> |
| 8 | <textarea class="form-control" ng-model="model.description"></textarea> |
| 9 | <label>{{:: ts('Group Type:') }}</label> |
| 10 | <div class="form-inline"> |
| 11 | <div class="checkbox" ng-repeat="(key, label) in options.group_type"> |
| 12 | <label> |
| 13 | <input type="checkbox" checklist-model="model.group_type" checklist-value="key"> |
| 14 | {{ label }} |
| 15 | </label> |
| 16 | </div> |
| 17 | </div> |
| 18 | <label>{{:: ts('Visibility:') }}</label> |
| 19 | <select class="form-control" ng-model="model.visibility" ng-options="name as value for (name, value) in options.visibility"></select> |
| 20 | <hr /> |
| 21 | <div class="buttons pull-right"> |
| 22 | <button type="button" ng-click="cancel()" class="btn btn-danger">{{:: ts('Cancel') }}</button> |
| 23 | <button ng-click="save()" class="btn btn-primary" ng-disabled="!model.title && !model.id">{{:: ts('Save') }}</button> |
| 24 | </div> |
| 25 | </div> |
| 26 | </form> |