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"
44 <option value=
"">-- Case Start --
</option>
49 class=
"number crm-form-text"
51 ng-pattern=
"/^-?[0-9]*$/"
52 ng-model=
"activity.reference_offset"
58 ui-options=
"{dropdownAutoWidth : true}"
59 ng-model=
"activity.reference_select"
60 ng-options=
"key as value for (key,value) in {newest: ts('Newest'), oldest: ts('Oldest')}"
65 <a class=
"crm-hover-button"
67 ng-show=
"isActivityRemovable(activitySet, activity)"
68 ng-click=
"removeItem(activitySet.activityTypes, activity)"
69 title=
"{{ts('Remove')}}">
79 crm-options=
"activityTypeOptions"
81 crm-on-add=
"addActivity(activitySet, newActivity)"
82 placeholder=
"{{ts('Add activity')}}"