Merge pull request #10049 from twomice/CRM-19400_osm_tileserver
[civicrm-core.git] / ang / crmCaseType / edit.html
1 <!--
2 Controller: CaseTypeCtrl
3 Required vars: caseType
4 -->
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">
8 <div class="help">
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>
10 </div>
11 <div class="crm-submit-buttons">
12 <button crm-icon="fa-check" ng-click="editCaseTypeForm.$setPristine(); save()" ng-disabled="editCaseTypeForm.$invalid">
13 {{ts('Save')}}
14 </button>
15 <button crm-icon="fa-times" ng-click="editCaseTypeForm.$setPristine(); goto('caseType')">
16 {{ts('Cancel')}}
17 </button>
18 </div>
19
20 <div ng-include="'~/crmCaseType/caseTypeDetails.html'"></div>
21
22 <div ng-show="isForkable()" class="crmCaseType-acttab" ui-jq="tabs" ui-options="{show: true, hide: true}">
23 <ul>
24 <li><a href="#acttab-roles">{{ts('Case Roles')}}</a></li>
25 <li><a href="#acttab-statuses">{{ts('Case Statuses')}}</a></li>
26 <li><a href="#acttab-actType">{{ts('Activity Types')}}</a></li>
27 <li ng-repeat="activitySet in caseType.definition.activitySets">
28 <a href="#acttab-{{$index}}">{{ activitySet.label }}</a>
29 <span class="crm-i fa-trash" title="{{ts('Remove')}}"
30 ng-hide="activitySet.name == 'standard_timeline'"
31 ng-click="removeItem(caseType.definition.activitySets, activitySet)">{{ts('Remove')}}</span>
32 <!-- Weird spacing:
33 <a class="crm-hover-button" ng-click="removeItem(caseType.definition.activitySets, activitySet)">
34 <span class="crm-i fa-trash" title="Remove">Remove</span>
35 </a>
36 -->
37 </li>
38 <select class="crm-form-select" ng-model="newActivitySetWorkflow" ng-change="addActivitySet(newActivitySetWorkflow); newActivitySetWorkflow='';">
39 <option value="">{{ts('Add...')}}</option>
40 <option value="timeline" ng-show="isNewActivitySetAllowed('timeline')">{{ts('Timeline')}}</option>
41 <option value="sequence" ng-show="isNewActivitySetAllowed('sequence')">{{ts('Sequence')}}</option>
42 </select>
43 </ul>
44
45 <div id="acttab-roles" ng-include="'~/crmCaseType/rolesTable.html'"></div>
46
47 <div id="acttab-actType" ng-include="'~/crmCaseType/activityTypesTable.html'"></div>
48
49 <div id="acttab-statuses" ng-include="'~/crmCaseType/statusTable.html'"></div>
50
51 <div ng-repeat="activitySet in caseType.definition.activitySets" id="acttab-{{$index}}">
52 <div ng-include="activityTableTemplate(activitySet)"></div>
53
54 <div class="crm-accordion-wrapper collapsed">
55 <div class="crm-accordion-header">{{ts('Advanced')}}</div>
56 <div class="crm-accordion-body" ng-include="'~/crmCaseType/activitySetDetails.html'"></div>
57 </div>
58 </div>
59 </div>
60
61 <div class="crm-submit-buttons">
62 <button crm-icon="fa-check" ng-click="editCaseTypeForm.$setPristine(); save()" ng-disabled="editCaseTypeForm.$invalid">
63 {{ts('Save')}}
64 </button>
65 <button crm-icon="fa-times" ng-click="editCaseTypeForm.$setPristine(); goto('caseType')">
66 {{ts('Cancel')}}
67 </button>
68 </div>
69 </div>
70 </form>