| 1 | <!-- |
| 2 | Controller: CaseTypeCtrl |
| 3 | Required vars: caseType |
| 4 | |
| 5 | The original form used table layout; don't know if we have an alternative, CSS-based layout |
| 6 | --> |
| 7 | <div class="crm-block" ng-form="caseTypeDetailForm" crm-ui-id-scope> |
| 8 | <div class="crm-group"> |
| 9 | <div crm-ui-field="{name: 'caseTypeDetailForm.title', title: ts('Title')}"> |
| 10 | <input |
| 11 | crm-ui-id="caseTypeDetailForm.title" |
| 12 | type="text" |
| 13 | name="title" |
| 14 | ng-model="caseType.title" |
| 15 | class="big crm-form-text" |
| 16 | required |
| 17 | /> |
| 18 | </div> |
| 19 | <div crm-ui-field="{name: 'caseTypeDetailForm.caseTypeName', title: ts('Name')}"> |
| 20 | <input |
| 21 | crm-ui-id="caseTypeDetailForm.caseTypeName" |
| 22 | type="text" |
| 23 | name="caseTypeName" |
| 24 | ng-model="caseType.name" |
| 25 | ng-disabled="locks.caseTypeName" |
| 26 | required |
| 27 | class="big crm-form-text"/> |
| 28 | |
| 29 | <a crm-ui-lock binding="locks.caseTypeName"></a> |
| 30 | |
| 31 | <div ng-show="!isValidName(caseType.name)"> |
| 32 | <em>{{ts('WARNING: The case type name includes deprecated characters.')}}</em> |
| 33 | </div> |
| 34 | <div ng-show="caseType.id && !locks.caseTypeName"> |
| 35 | <em>{{ts('WARNING: If any external files or programs reference the old "Name", then they must be updated manually.')}}</em> |
| 36 | </div> |
| 37 | </div> |
| 38 | <div crm-ui-field="{name: 'caseTypeDetailForm.description', title: ts('Description')}"> |
| 39 | <textarea crm-ui-id="caseTypeDetailForm.description" name="description" ng-model="caseType.description" class="big crm-form-textarea"></textarea> |
| 40 | </div> |
| 41 | <div crm-ui-field="{title: ts('Enabled?')}"> |
| 42 | <input name="is_active" type="checkbox" ng-model="caseType.is_active" ng-true-value="'1'" ng-false-value="'0'"/> |
| 43 | </div> |
| 44 | </div> |
| 45 | </div> |