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 | --> | |
599e58a9 | 7 | <table class="form-layout"> |
4c58e251 TO |
8 | <tbody> |
9 | <tr> | |
438f2b52 TO |
10 | <td class="label"> |
11 | <label crm-ui-label crm-for="title"> | |
12 | Title | |
13 | </label> | |
14 | </td> | |
4c58e251 | 15 | <td> |
438f2b52 TO |
16 | <input |
17 | type="text" | |
18 | name="title" | |
19 | ng-model="caseType.title" | |
20 | class="big crm-form-text" | |
21 | required | |
22 | /> | |
4c58e251 TO |
23 | </td> |
24 | </tr> | |
25 | <tr> | |
438f2b52 TO |
26 | <td class="label"> |
27 | <label crm-ui-label crm-for="caseTypeName"> | |
28 | Name | |
29 | </label> | |
30 | </td> | |
4c58e251 | 31 | <td> |
438f2b52 TO |
32 | <input |
33 | type="text" | |
34 | name="caseTypeName" | |
35 | ng-model="caseType.name" | |
36 | ng-disabled="locks.caseTypeName" | |
438f2b52 TO |
37 | required |
38 | class="big crm-form-text"/> | |
39 | ||
1c5e7d22 | 40 | <a crm-ui-lock binding="locks.caseTypeName"></a> |
29f0a31d | 41 | |
f42b448f TO |
42 | <div ng-show="!isValidName(caseType.name)"> |
43 | <em>WARNING: The case type name includes deprecated characters.</em> | |
44 | </div> | |
29f0a31d TO |
45 | <div ng-show="caseType.id && !locks.caseTypeName"> |
46 | <em>WARNING: If any external files or programs reference the old "Name", then they must be updated manually.</em> | |
47 | </div> | |
4c58e251 TO |
48 | </td> |
49 | </tr> | |
50 | <tr> | |
438f2b52 TO |
51 | <td class="label"> |
52 | <label crm-ui-label crm-for="description"> | |
53 | Description | |
54 | </label> | |
55 | </td> | |
4c58e251 | 56 | <td> |
438f2b52 | 57 | <textarea name="description" ng-model="caseType.description" class="big crm-form-textarea"></textarea> |
4c58e251 TO |
58 | </td> |
59 | </tr> | |
60 | <tr> | |
438f2b52 TO |
61 | <td class="label"> |
62 | <label crm-ui-label crm-for="is_active"> | |
63 | Enabled? | |
64 | </label> | |
65 | </td> | |
4c58e251 | 66 | <td> |
438f2b52 | 67 | <input name="is_active" type="checkbox" ng-model="caseType.is_active" ng-true-value="1" ng-false-value="0"/> |
4c58e251 TO |
68 | </td> |
69 | </tr> | |
70 | </tbody> | |
71 | </table> |