From df49841728155ed654b9eac6932b465e3e0b0fbf Mon Sep 17 00:00:00 2001 From: Igor Pavlov Date: Thu, 13 Jul 2017 16:22:46 +0100 Subject: [PATCH] PCHR-2395: Amend templates --- .../views/my-leave/components/my-leave-container.html | 4 +++- .../shared/components/leave-request-create-dropdown.html | 3 ++- .../shared/components/staff-leave-calendar-month.html | 1 + .../views/shared/components/staff-leave-report.html | 9 ++++++--- .../leave-request-popup-details-tab.html | 4 ++-- .../leave-request-popup/leave-request-popup-footer.html | 2 +- .../leave-request-popup/leave-request-popup.html | 8 ++++---- 7 files changed, 19 insertions(+), 12 deletions(-) diff --git a/uk.co.compucorp.civicrm.hrleaveandabsences/views/my-leave/components/my-leave-container.html b/uk.co.compucorp.civicrm.hrleaveandabsences/views/my-leave/components/my-leave-container.html index 83b9cea6f09..e4ad985dfcb 100644 --- a/uk.co.compucorp.civicrm.hrleaveandabsences/views/my-leave/components/my-leave-container.html +++ b/uk.co.compucorp.civicrm.hrleaveandabsences/views/my-leave/components/my-leave-container.html @@ -2,7 +2,9 @@
+ contact-id="myleave.contactId" + selected-contact-id="myleave.contactId" + is-self-record="true">
diff --git a/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/components/leave-request-create-dropdown.html b/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/components/leave-request-create-dropdown.html index dd50b72bfe3..89eae21a484 100644 --- a/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/components/leave-request-create-dropdown.html +++ b/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/components/leave-request-create-dropdown.html @@ -8,7 +8,8 @@ href="#" leave-request-popup leave-type="{{option.type}}" contact-id="vm.contactId" - selected-contact-id="vm.selectedContactId"> + selected-contact-id="vm.selectedContactId" + is-self-record="vm.isSelfRecord"> {{option.label}} diff --git a/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/components/staff-leave-calendar-month.html b/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/components/staff-leave-calendar-month.html index cfedc8f7991..c68c7819018 100644 --- a/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/components/staff-leave-calendar-month.html +++ b/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/components/staff-leave-calendar-month.html @@ -33,6 +33,7 @@

{{calendar.monthLabels[month.month] + " " + month.year}} diff --git a/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/components/staff-leave-report.html b/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/components/staff-leave-report.html index cb92985e8cf..a55d0ff6441 100644 --- a/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/components/staff-leave-report.html +++ b/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/components/staff-leave-report.html @@ -223,7 +223,8 @@ ng-switch-when="true" leave-request-popup leave-request="request" - contact-id="report.contactId"> + contact-id="report.contactId" + is-self-record="true"> {{action}} @@ -398,7 +399,8 @@ ng-switch-when="true" leave-request-popup leave-request="request" - contact-id="report.contactId"> + contact-id="report.contactId" + is-self-record="true"> {{action}} @@ -500,7 +502,8 @@ ng-switch-when="true" leave-request-popup leave-request="request" - contact-id="report.contactId"> + contact-id="report.contactId" + is-self-record="true"> {{action}} diff --git a/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/directives/leave-request-popup/leave-request-popup-details-tab.html b/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/directives/leave-request-popup/leave-request-popup-details-tab.html index e472d87920c..972766ecb86 100644 --- a/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/directives/leave-request-popup/leave-request-popup-details-tab.html +++ b/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/directives/leave-request-popup/leave-request-popup-details-tab.html @@ -92,10 +92,10 @@
+ ng-if="!$ctrl.canManage || $ctrl.isSelfRecord"> {{$ctrl.request.toil_expiry_date | date: $ctrl.uiOptions.userDateFormat}} -
+
Delete diff --git a/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/directives/leave-request-popup/leave-request-popup.html b/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/directives/leave-request-popup/leave-request-popup.html index c0a82f64a8a..5fd1d5db473 100644 --- a/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/directives/leave-request-popup/leave-request-popup.html +++ b/uk.co.compucorp.civicrm.hrleaveandabsences/views/shared/directives/leave-request-popup/leave-request-popup.html @@ -4,14 +4,14 @@ -