2 Controller: CaseTypeCtrl
3 Required vars: activitySet
9 <th>{{ts('Activity')}}
</th>
10 <th>{{ts('Status')}}
</th>
11 <th>{{ts('Reference')}}
</th>
12 <th>{{ts('Offset')}}
</th>
13 <th>{{ts('Select')}}
</th>
18 <tbody ui-sortable
ng-model=
"activitySet.activityTypes">
19 <tr ng-repeat=
"activity in activitySet.activityTypes">
21 <i class=
"crm-i fa-arrows grip-n-drag"></i>
24 <i class=
"crm-i {{ activityTypes[activity.name].icon }}"></i>
30 ui-options=
"{dropdownAutoWidth : true}"
31 ng-model=
"activity.status"
32 ng-options=
"actStatus.name as actStatus.label for actStatus in activityStatuses|orderBy:'label'"
34 <option value=
""></option>
40 ui-options=
"{dropdownAutoWidth : true}"
41 ng-model=
"activity.reference_activity"
42 ng-options=
"activityType.name as activityType.label for activityType in activitySet.activityTypes"
43 ng-hide=
"activity.name == 'Open Case'"
44 ng-required=
"activity.name != 'Open Case'"
50 class=
"number crm-form-text"
52 ng-pattern=
"/^-?[0-9]*$/"
53 ng-model=
"activity.reference_offset"
54 ng-hide=
"activity.name == 'Open Case'"
55 ng-required=
"activity.name != 'Open Case'"
61 ui-options=
"{dropdownAutoWidth : true}"
62 ng-model=
"activity.reference_select"
63 ng-options=
"key as value for (key,value) in {newest: ts('Newest'), oldest: ts('Oldest')}"
64 ng-hide=
"activity.name == 'Open Case'"
65 ng-required=
"activity.name != 'Open Case'"
70 <a class=
"crm-hover-button"
72 ng-show=
"isActivityRemovable(activitySet, activity)"
73 ng-click=
"removeItem(activitySet.activityTypes, activity)"
74 title=
"{{ts('Remove')}}">
84 crm-options=
"activityTypeOptions"
86 crm-on-add=
"addActivity(activitySet, newActivity)"
87 placeholder=
"{{ts('Add activity')}}"