2 Controller: CaseTypeCtrl
3 Required vars: caseType
5 <h1 crm-page-title
>{{caseType.title || ts('New Case Type')}}
</h1>
8 {{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>
11 <form name=
"editCaseTypeForm" unsaved-warning-form
>
12 <div class=
"crm-block crm-form-block crmCaseType">
14 <div ng-include=
"'~/crmCaseType/caseTypeDetails.html'"></div>
16 <div ng-show=
"isForkable()" class=
"crmCaseType-acttab" ui-jq=
"tabs" ui-options=
"{show: true, hide: true}">
18 <li><a href=
"#acttab-roles">{{ts('Case Roles')}}
</a></li>
19 <li><a href=
"#acttab-statuses">{{ts('Case Statuses')}}
</a></li>
20 <li><a href=
"#acttab-actType">{{ts('Activity Types')}}
</a></li>
21 <li ng-repeat=
"activitySet in caseType.definition.activitySets">
22 <a href=
"#acttab-{{$index}}">{{ activitySet.label }}
</a>
23 <span class=
"crm-i fa-trash" title=
"{{ts('Remove')}}"
24 ng-hide=
"activitySet.name == 'standard_timeline'"
25 ng-click=
"removeItem(caseType.definition.activitySets, activitySet)">{{ts('Remove')}}
</span>
27 <a class="crm-hover-button" ng-click="removeItem(caseType.definition.activitySets, activitySet)">
28 <span class="crm-i fa-trash" title="Remove">Remove</span>
32 <select class=
"crm-form-select" ng-model=
"newActivitySetWorkflow" ng-change=
"addActivitySet(newActivitySetWorkflow); newActivitySetWorkflow='';">
33 <option value=
"">{{ts('Add...')}}
</option>
34 <option value=
"timeline" ng-show=
"isNewActivitySetAllowed('timeline')">{{ts('Timeline')}}
</option>
35 <option value=
"sequence" ng-show=
"isNewActivitySetAllowed('sequence')">{{ts('Sequence')}}
</option>
39 <div id=
"acttab-roles" ng-include=
"'~/crmCaseType/rolesTable.html'"></div>
41 <div id=
"acttab-actType" ng-include=
"'~/crmCaseType/activityTypesTable.html'"></div>
43 <div id=
"acttab-statuses" ng-include=
"'~/crmCaseType/statusTable.html'"></div>
45 <div ng-repeat=
"activitySet in caseType.definition.activitySets" id=
"acttab-{{$index}}">
46 <div ng-include=
"activityTableTemplate(activitySet)"></div>
48 <div class=
"crm-accordion-wrapper collapsed">
49 <div class=
"crm-accordion-header">{{ts('Advanced')}}
</div>
50 <div class=
"crm-accordion-body" ng-include=
"'~/crmCaseType/activitySetDetails.html'"></div>
55 <div class=
"crm-submit-buttons">
56 <button crm-icon=
"fa-check" ng-click=
"editCaseTypeForm.$setPristine(); save()" ng-disabled=
"editCaseTypeForm.$invalid">
59 <button crm-icon=
"fa-times" ng-click=
"editCaseTypeForm.$setPristine(); goto('caseType')">