crmMailing - Skip token dropdown when tabbing
[civicrm-core.git] / partials / crmCaseType / activityTypesTable.html
1 <!--
2 Controller: CaseTypeCtrl
3 Required vars: caseType
4 -->
5 <table>
6 <thead>
7 <tr>
8 <th>Activity Type</th>
9 <th>Max Instances</th>
10 <th></th>
11 </tr>
12 </thead>
13
14 <tbody ui-sortable ng-model="caseType.definition.activityTypes">
15 <tr ng-repeat="activityType in caseType.definition.activityTypes">
16 <td>
17 <span class="icon ui-icon-grip-dotted-vertical"></span>
18 {{ activityType.name }}
19 </td>
20 <td>
21 <input class="number" type="text" ng-pattern="/^[0-9]*$/" ng-model="activityType.max_instances" />
22 </td>
23 <td>
24 <a class="crm-hover-button" ng-click="removeItem(caseType.definition.activityTypes, activityType)">
25 <span class="icon delete-icon" title="Remove"></span>
26 </a>
27 </td>
28 </tr>
29 </tbody>
30
31 <tfoot>
32 <tr class="addRow">
33 <td colspan="3">
34 Add activity type:
35 <span crm-add-name
36 crm-options="activityTypeNames"
37 crm-var="newActivity"
38 crm-on-add="addActivityType(newActivity)"
39 />
40 </td>
41 </tr>
42 </tfoot>
43 </table>