From 74017d48089880ba96fdd49aeb5cab1a1cc2b701 Mon Sep 17 00:00:00 2001 From: Kilian Saffran Date: Tue, 25 Sep 2018 08:43:43 +0200 Subject: [PATCH] =?utf8?q?add=20absence=20verifi=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../modules/presences/dailypresences.html | 3 +- .../modules/presences/js/dailypresences.js | 3 +- .../modules/presences/js/weeklypresences.js | 11 ++++ .../modules/presences/weeklypresences.html | 3 +- app_v3/chrome/content/web/css/creorga.css | 58 +++++++++++++++++++ creorga.code-workspace | 3 + 6 files changed, 78 insertions(+), 3 deletions(-) diff --git a/app_v3/chrome/content/modules/presences/dailypresences.html b/app_v3/chrome/content/modules/presences/dailypresences.html index adb4609..30fdcc6 100644 --- a/app_v3/chrome/content/modules/presences/dailypresences.html +++ b/app_v3/chrome/content/modules/presences/dailypresences.html @@ -52,7 +52,8 @@
  • -
  • +
  • +
  • diff --git a/app_v3/chrome/content/modules/presences/js/dailypresences.js b/app_v3/chrome/content/modules/presences/js/dailypresences.js index 1ba3d25..05dc9c6 100644 --- a/app_v3/chrome/content/modules/presences/js/dailypresences.js +++ b/app_v3/chrome/content/modules/presences/js/dailypresences.js @@ -131,11 +131,12 @@ function initdata() { '
    '; rdata += ''+ '
    ' + - '' + diff --git a/app_v3/chrome/content/modules/presences/js/weeklypresences.js b/app_v3/chrome/content/modules/presences/js/weeklypresences.js index 17434a3..050fd99 100644 --- a/app_v3/chrome/content/modules/presences/js/weeklypresences.js +++ b/app_v3/chrome/content/modules/presences/js/weeklypresences.js @@ -27,6 +27,11 @@ var presences = { icon: '', nextdata: 3 }, + "btn-absent2": { + class: "btn-absent2", + icon: '', + nextdata: 31 + }, "btn-danger": { class: "btn-info", icon: '', @@ -60,6 +65,11 @@ var presenceids = { icon: '', nextdata: 3 }, + 31: { + class: "btn-absent2", + icon: '', + nextdata: 31 + }, 4: { class: "btn-primary", icon: '', @@ -119,6 +129,7 @@ function initdata() { if (vacrem.indexOf(w) != -1) { wdsa.push("null as "+wda[w]+"plan,null AS "+wda[w]+"lunchplan"); } else { + wdsa.push(" CASE WHEN pl."+wda[w]+"timebegin != '00:00' AND '" + weekdates[wda[w]] + "' BETWEEN pl.datebegin AND pl.dateend THEN '' ELSE '' END AS "+wda[w]+"plan, " + " CASE WHEN pl."+wda[w]+"timebegin != '00:00' AND '" + weekdates[wda[w]] + "' BETWEEN pl.datebegin AND pl.dateend THEN '' ELSE NULL END AS "+wda[w]+"lunchplan" ); } diff --git a/app_v3/chrome/content/modules/presences/weeklypresences.html b/app_v3/chrome/content/modules/presences/weeklypresences.html index 2b3991b..0ee1f1c 100644 --- a/app_v3/chrome/content/modules/presences/weeklypresences.html +++ b/app_v3/chrome/content/modules/presences/weeklypresences.html @@ -52,7 +52,8 @@
  • non configuré
  • présent
  • malade
  • -
  • absent
  • +
  • absence non verifé
  • +
  • absence verifié
  • vacences
  • essaie
  • diff --git a/app_v3/chrome/content/web/css/creorga.css b/app_v3/chrome/content/web/css/creorga.css index ccea2c2..410c780 100644 --- a/app_v3/chrome/content/web/css/creorga.css +++ b/app_v3/chrome/content/web/css/creorga.css @@ -207,3 +207,61 @@ select { } /*.note-editor .note-dropzone { opacity: 0 !important; }*/ + +.btn-absent2 { + color: #fff; + background-color: #d96f4f; + border-color: #ac2925; +} +.btn-absent2:focus, +.btn-absent2.focus { + color: #fff; + background-color: #d96f4f; + border-color: #761c19; +} +.btn-absent2:hover { + color: #fff; + background-color: #d96f4f; + border-color: #ac2925; +} +.btn-absent2:active, +.btn-absent2.active, +.open > .dropdown-toggle.btn-absent2 { + color: #fff; + background-color: #d96f4f; + border-color: #ac2925; +} +.btn-absent2:active:hover, +.btn-absent2.active:hover, +.open > .dropdown-toggle.btn-absent2:hover, +.btn-absent2:active:focus, +.btn-absent2.active:focus, +.open > .dropdown-toggle.btn-absent2:focus, +.btn-absent2:active.focus, +.btn-absent2.active.focus, +.open > .dropdown-toggle.btn-absent2.focus { + color: #fff; + background-color: #d96f4f; + border-color: #761c19; +} +.btn-absent2:active, +.btn-absent2.active, +.open > .dropdown-toggle.btn-absent2 { + background-image: none; +} +.btn-absent2.disabled:hover, +.btn-absent2[disabled]:hover, +fieldset[disabled] .btn-absent2:hover, +.btn-absent2.disabled:focus, +.btn-absent2[disabled]:focus, +fieldset[disabled] .btn-absent2:focus, +.btn-absent2.disabled.focus, +.btn-absent2[disabled].focus, +fieldset[disabled] .btn-absent2.focus { + background-color: #d96f4f; + border-color: #ac2925; +} +.btn-absent2 .badge { + color: #d96f4f; + background-color: #fff; +} \ No newline at end of file diff --git a/creorga.code-workspace b/creorga.code-workspace index 6081b08..ffa785b 100644 --- a/creorga.code-workspace +++ b/creorga.code-workspace @@ -8,6 +8,9 @@ }, { "path": "dev" + }, + { + "path": "install" } ], "settings": {} -- 2.39.5