From e8b0966a013311280f13f6491238b1d1222f3acd Mon Sep 17 00:00:00 2001 From: Adrien RENARD Date: Sat, 3 Feb 2024 16:08:01 +0100 Subject: [PATCH] Debug last commit --- public_html_admin/css/clients.css | 2 ++ public_html_admin/js/clients.js | 3 ++- .../templates/clients/client_modal_view_absences_tab.tpl | 8 ++++---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/public_html_admin/css/clients.css b/public_html_admin/css/clients.css index 56b7649..2f6bc68 100644 --- a/public_html_admin/css/clients.css +++ b/public_html_admin/css/clients.css @@ -15,7 +15,9 @@ #modalViewClient div.tabAbsences table td.ref { width: 30px; } #modalViewClient div.tabAbsences table td.date { text-align: center; padding: 8px 0; } +#modalViewClient div.tabAbsences table th.debut { width: 130px; } #modalViewClient div.tabAbsences table td.debut { width: 130px; } +#modalViewClient div.tabAbsences table th.fin { width: 122px; } #modalViewClient div.tabAbsences table td.fin { width: 120px; } #modalViewClient div.tabAbsences table tr.editable { background-color: #cce4f9; } diff --git a/public_html_admin/js/clients.js b/public_html_admin/js/clients.js index d4624b4..3301b38 100644 --- a/public_html_admin/js/clients.js +++ b/public_html_admin/js/clients.js @@ -145,8 +145,9 @@ function modalViewClient_initTabAbsences() { // BTN ADD ABSENCES modalViewClient.find("#btnAddAbsence").click(function(e) { e.preventDefault(); $(this).blur(); + if(modalViewClient.find("div.tabAbsences table tbody tr.editable").length>0) return; - var tr = $("").html( modalViewClient.find("tr.absenceNewRowTemplate").html() ); + var tr = $("").html( modalViewClient.find("tr.absenceNewRowTemplate").html() ); modalViewClient.find("div.tabAbsences table tbody").append(tr); nullChild = modalViewClient.find("div.tabAbsences table tbody tr.nullChild"); diff --git a/public_html_admin/templates/clients/client_modal_view_absences_tab.tpl b/public_html_admin/templates/clients/client_modal_view_absences_tab.tpl index 5813144..a9e6048 100644 --- a/public_html_admin/templates/clients/client_modal_view_absences_tab.tpl +++ b/public_html_admin/templates/clients/client_modal_view_absences_tab.tpl @@ -1,8 +1,8 @@ - - + + @@ -24,8 +24,8 @@ - - + +
debutfindebutfin remarque