From f6b108469cbbf3718c5e6f5453b2397e3f185f34 Mon Sep 17 00:00:00 2001 From: ShivCharanSharma Date: Sat, 6 Jul 2019 10:41:57 +0530 Subject: [PATCH] Adding 2 hour Short Leave feature create shortleave function that set value of leave duration for two hour (0.33, 1/3 of full day). it also set End time 2 hours ahead of start time. Also add jquery code to hide or show input field as per type of leave. --- application/views/leaves/create.php | 65 +++++++++++++++++++++++++++- application/views/leaves/index.php | 4 +- application/views/requests/index.php | 4 +- assets/js/lms/leave.edit-0.7.0.js | 25 ++++++++++- 4 files changed, 91 insertions(+), 7 deletions(-) diff --git a/application/views/leaves/create.php b/application/views/leaves/create.php index a2d769e79..b99262269 100644 --- a/application/views/leaves/create.php +++ b/application/views/leaves/create.php @@ -37,13 +37,16 @@
- +
+ + + config->item('disable_edit_leave_duration') == TRUE) { ?> @@ -53,6 +56,10 @@ + +

2 hours

+ +
@@ -108,6 +115,62 @@ $(document).on("click", "#showNoneWorkedDay", function(e) { showListDayOffHTML(); }); + + +