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>
14 <th>{{ts('Default assignee')}}
</th>
19 <tbody ui-sortable
ng-model=
"activitySet.activityTypes">
20 <tr ng-repeat=
"activity in activitySet.activityTypes">
22 <i class=
"crm-i fa-arrows grip-n-drag"></i>
25 <i class=
"crm-i {{activityTypes[activity.name].icon}}"></i>
31 ui-options=
"{dropdownAutoWidth: true}"
32 ng-model=
"activity.status"
33 ng-options=
"actStatus.name as actStatus.label for actStatus in activityStatuses|orderBy:'label'"
35 <option value=
""></option>
41 ui-options=
"{dropdownAutoWidth: true}"
42 ng-model=
"activity.reference_activity"
43 ng-options=
"activityType.name as activityType.label for activityType in caseType.definition.timelineActivityTypes"
45 <option value=
"">-- Case Start --
</option>
50 class=
"number crm-form-text"
52 ng-pattern=
"/^-?[0-9]*$/"
53 ng-model=
"activity.reference_offset"
59 ui-options=
"{dropdownAutoWidth: true}"
60 ng-model=
"activity.reference_select"
61 ng-options=
"key as value for (key,value) in {newest: ts('Newest'), oldest: ts('Oldest')}"
68 ui-options=
"{dropdownAutoWidth: true}"
69 ng-model=
"activity.default_assignee_type"
70 ng-options=
"option.value as option.label for option in defaultAssigneeTypes"
71 ng-change=
"clearActivityDefaultAssigneeValues(activity)"
74 <p ng-if=
"activity.default_assignee_type === defaultAssigneeTypeValues.BY_RELATIONSHIP">
77 ui-options=
"{dropdownAutoWidth: true}"
78 ng-model=
"activity.default_assignee_relationship"
79 ng-options=
"option.id as option.text for option in relationshipTypeOptions"
84 <p ng-if=
"activity.default_assignee_type === defaultAssigneeTypeValues.SPECIFIC_CONTACT">
87 ng-model=
"activity.default_assignee_contact"
88 placeholder=
"- Select contact -"
89 crm-entityref=
"{ entity: 'Contact' }"
90 data-create-links=
"true"
95 <a class=
"crm-hover-button"
97 ng-show=
"isActivityRemovable(activitySet, activity)"
98 ng-click=
"removeItem(activitySet.activityTypes, activity)"
99 title=
"{{ts('Remove')}}">
108 <span crm-add-name=
""
109 crm-options=
"activityTypeOptions"
110 crm-var=
"newActivity"
111 crm-on-add=
"addActivity(activitySet, newActivity)"
112 placeholder=
"{{ts('Add activity')}}"