Commit | Line | Data |
---|---|---|
4c58e251 TO |
1 | <!-- |
2 | Controller: CaseTypeCtrl | |
3 | Required vars: caseType | |
4 | --> | |
5 | <table> | |
6 | <thead> | |
7 | <tr> | |
7abbf317 CW |
8 | <th>{{ts('Activity Type')}}</th> |
9 | <th>{{ts('Max Instances')}}</th> | |
4c58e251 TO |
10 | <th></th> |
11 | </tr> | |
12 | </thead> | |
13 | ||
c45daff0 | 14 | <tbody ui-sortable ng-model="caseType.definition.activityTypes"> |
4c58e251 TO |
15 | <tr ng-repeat="activityType in caseType.definition.activityTypes"> |
16 | <td> | |
c45daff0 | 17 | <span class="icon ui-icon-grip-dotted-vertical"></span> |
4c58e251 TO |
18 | {{ activityType.name }} |
19 | </td> | |
20 | <td> | |
a116bb75 | 21 | <input class="number" type="text" ng-pattern="/^[0-9]*$/" ng-model="activityType.max_instances" /> |
4c58e251 TO |
22 | </td> |
23 | <td> | |
7abbf317 | 24 | <a crm-icon="trash" class="crm-hover-button" ng-click="removeItem(caseType.definition.activityTypes, activityType)" title="{{ts('Remove')}}"></a> |
4c58e251 TO |
25 | </td> |
26 | </tr> | |
c45daff0 TO |
27 | </tbody> |
28 | ||
29 | <tfoot> | |
d7c25f6c TO |
30 | <tr class="addRow"> |
31 | <td colspan="3"> | |
8b3f1203 | 32 | <span crm-add-name |
95fd24c0 TO |
33 | crm-options="activityTypeNames" |
34 | crm-var="newActivity" | |
35 | crm-on-add="addActivityType(newActivity)" | |
00eee619 | 36 | placeholder="{{ts('Add activity type')}}" |
95fd24c0 | 37 | /> |
d7c25f6c TO |
38 | </td> |
39 | </tr> | |
c45daff0 | 40 | </tfoot> |
4c58e251 | 41 | </table> |