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