2 Controller: CaseTypeCtrl
3 Required vars: caseType
5 <h1 crm-page-title
>{{caseType.title || ts('New Case Type')}}
</h1>
6 <form name=
"editCaseTypeForm" unsaved-warning-form
>
7 <div class=
"crm-block crm-form-block crmCaseType">
9 {{ts('Use this screen to define or update the Case Roles, Activity Types, and Timelines for a case type.')}}
<a href=
"https://docs.civicrm.org/user/en/stable/case-management/set-up/" target=
"_blank">{{ts('Learn more...')}}
</a>
12 <div ng-include=
"'~/crmCaseType/caseTypeDetails.html'"></div>
14 <div ng-show=
"isForkable()" class=
"crmCaseType-acttab" ui-jq=
"tabs" ui-options=
"{show: true, hide: true}">
16 <li><a href=
"#acttab-roles">{{ts('Case Roles')}}
</a></li>
17 <li><a href=
"#acttab-statuses">{{ts('Case Statuses')}}
</a></li>
18 <li><a href=
"#acttab-actType">{{ts('Activity Types')}}
</a></li>
19 <li ng-repeat=
"activitySet in caseType.definition.activitySets">
20 <a href=
"#acttab-{{$index}}">{{ activitySet.label }}
</a>
21 <span class=
"crm-i fa-trash" title=
"{{ts('Remove')}}"
22 ng-hide=
"activitySet.name == 'standard_timeline'"
23 ng-click=
"removeItem(caseType.definition.activitySets, activitySet)">{{ts('Remove')}}
</span>
25 <a class="crm-hover-button" ng-click="removeItem(caseType.definition.activitySets, activitySet)">
26 <span class="crm-i fa-trash" title="Remove">Remove</span>
30 <select class=
"crm-form-select" ng-model=
"newActivitySetWorkflow" ng-change=
"addActivitySet(newActivitySetWorkflow); newActivitySetWorkflow='';">
31 <option value=
"">{{ts('Add...')}}
</option>
32 <option value=
"timeline" ng-show=
"isNewActivitySetAllowed('timeline')">{{ts('Timeline')}}
</option>
33 <option value=
"sequence" ng-show=
"isNewActivitySetAllowed('sequence')">{{ts('Sequence')}}
</option>
37 <div id=
"acttab-roles" ng-include=
"'~/crmCaseType/rolesTable.html'"></div>
39 <div id=
"acttab-actType" ng-include=
"'~/crmCaseType/activityTypesTable.html'"></div>
41 <div id=
"acttab-statuses" ng-include=
"'~/crmCaseType/statusTable.html'"></div>
43 <div ng-repeat=
"activitySet in caseType.definition.activitySets" id=
"acttab-{{$index}}">
44 <div ng-include=
"activityTableTemplate(activitySet)"></div>
46 <div class=
"crm-accordion-wrapper collapsed">
47 <div class=
"crm-accordion-header">{{ts('Advanced')}}
</div>
48 <div class=
"crm-accordion-body" ng-include=
"'~/crmCaseType/activitySetDetails.html'"></div>
53 <div class=
"crm-submit-buttons">
54 <button crm-icon=
"fa-check" ng-click=
"editCaseTypeForm.$setPristine(); save()" ng-disabled=
"editCaseTypeForm.$invalid">
57 <button crm-icon=
"fa-times" ng-click=
"editCaseTypeForm.$setPristine(); goto('caseType')">