Commit | Line | Data |
---|---|---|
4c58e251 TO |
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 | --> | |
f8601d61 | 7 | <div class="crm-block" ng-form="caseTypeDetailForm" crm-ui-id-scope> |
0112f1ae | 8 | <div class="crm-group"> |
f8601d61 | 9 | <div crm-ui-field="caseTypeDetailForm.title" crm-title="ts('Title')"> |
438f2b52 | 10 | <input |
f8601d61 | 11 | crm-ui-id="caseTypeDetailForm.title" |
438f2b52 TO |
12 | type="text" |
13 | name="title" | |
14 | ng-model="caseType.title" | |
15 | class="big crm-form-text" | |
16 | required | |
17 | /> | |
0112f1ae | 18 | </div> |
f8601d61 | 19 | <div crm-ui-field="caseTypeDetailForm.caseTypeName" crm-title="ts('Name')"> |
438f2b52 | 20 | <input |
f8601d61 | 21 | crm-ui-id="caseTypeDetailForm.caseTypeName" |
438f2b52 TO |
22 | type="text" |
23 | name="caseTypeName" | |
24 | ng-model="caseType.name" | |
25 | ng-disabled="locks.caseTypeName" | |
438f2b52 TO |
26 | required |
27 | class="big crm-form-text"/> | |
28 | ||
1c5e7d22 | 29 | <a crm-ui-lock binding="locks.caseTypeName"></a> |
29f0a31d | 30 | |
f42b448f TO |
31 | <div ng-show="!isValidName(caseType.name)"> |
32 | <em>WARNING: The case type name includes deprecated characters.</em> | |
33 | </div> | |
29f0a31d TO |
34 | <div ng-show="caseType.id && !locks.caseTypeName"> |
35 | <em>WARNING: If any external files or programs reference the old "Name", then they must be updated manually.</em> | |
36 | </div> | |
0112f1ae | 37 | </div> |
f8601d61 TO |
38 | <div crm-ui-field="caseTypeDetailForm.description" crm-title="ts('Description')"> |
39 | <textarea crm-ui-id="caseTypeDetailForm.description" name="description" ng-model="caseType.description" class="big crm-form-textarea"></textarea> | |
0112f1ae | 40 | </div> |
f8601d61 | 41 | <div crm-ui-field crm-title="ts('Enabled?')"> |
438f2b52 | 42 | <input name="is_active" type="checkbox" ng-model="caseType.is_active" ng-true-value="1" ng-false-value="0"/> |
0112f1ae TO |
43 | </div> |
44 | </div> | |
45 | </div> |