Merge pull request #5667 from JKingsnorth/CRM-16328
[civicrm-core.git] / ang / crmCaseType / activityTypesTable.html
CommitLineData
4c58e251
TO
1<!--
2Controller: CaseTypeCtrl
3Required 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">
7abbf317 32 {{ts('Add activity type:')}}
8b3f1203 33 <span crm-add-name
95fd24c0
TO
34 crm-options="activityTypeNames"
35 crm-var="newActivity"
36 crm-on-add="addActivityType(newActivity)"
37 />
d7c25f6c
TO
38 </td>
39 </tr>
c45daff0 40 </tfoot>
4c58e251 41</table>