From 3f691cb9198b7ed13bb9ed29aa815483807f8f14 Mon Sep 17 00:00:00 2001 From: Holger Trampe Date: Sat, 23 May 2020 02:48:49 +0200 Subject: [PATCH] Abwesenheit usw. --- .../dasettings/change_absence_yeardata.html | 34 +++++++++++++++++++ .../dasettings/data_absence_yeardata.html | 24 +++++++++++++ users/static/users/css/colorPick.min.css | 10 ++++++ users/static/users/js/colorPick.min.js | 10 ++++++ 4 files changed, 78 insertions(+) create mode 100644 dasettings/templates/dasettings/change_absence_yeardata.html create mode 100644 dasettings/templates/dasettings/data_absence_yeardata.html create mode 100644 users/static/users/css/colorPick.min.css create mode 100644 users/static/users/js/colorPick.min.js diff --git a/dasettings/templates/dasettings/change_absence_yeardata.html b/dasettings/templates/dasettings/change_absence_yeardata.html new file mode 100644 index 0000000..36e4cfb --- /dev/null +++ b/dasettings/templates/dasettings/change_absence_yeardata.html @@ -0,0 +1,34 @@ + + + + + {% for ab_info in user_years.all %} + + {% endfor %} + + + + + + {% for ab_info in user_years.all %} + + {% endfor %} + + + + {% for ab_info in user_years.all %} + + {% endfor %} + + +
Jahr{{ab_info.year}}
Urlaub + +
+ +
+ +
Resturlaub +
+ +
+
\ No newline at end of file diff --git a/dasettings/templates/dasettings/data_absence_yeardata.html b/dasettings/templates/dasettings/data_absence_yeardata.html new file mode 100644 index 0000000..49ccded --- /dev/null +++ b/dasettings/templates/dasettings/data_absence_yeardata.html @@ -0,0 +1,24 @@ + + + + + {% for ab_info in user_years.all %} + + {% endfor %} + + + + + + {% for ab_info in user_years.all %} + + {% endfor %} + + + + {% for ab_info in user_years.all %} + + {% endfor %} + + +
Jahr{{ab_info.year}}
Urlaub{{ab_info.days}}
Resturlaub{{ab_info.restdays}}
\ No newline at end of file diff --git a/users/static/users/css/colorPick.min.css b/users/static/users/css/colorPick.min.css new file mode 100644 index 0000000..8103d27 --- /dev/null +++ b/users/static/users/css/colorPick.min.css @@ -0,0 +1,10 @@ +/*! +* +* ColorPick jQuery plugin +* https://github.com/philzet/ColorPick.js +* +* Copyright (c) 2017-2019 Phil Zet (a.k.a. Phil Zakharchenko) +* Licensed under the MIT License +* +*/ +@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(http://fonts.gstatic.com/s/opensans/v13/cJZKeOuBrn4kERxqtaUH3bO3LdcAZYWl9Si6vvxL-qU.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzKRDOzjiPcYnFooOUGCOsRk.woff) format('woff')}#colorPick *{-webkit-transition:all linear .2s;-moz-transition:all linear .2s;-ms-transition:all linear .2s;-o-transition:all linear .2s;transition:all linear .2s}#colorPick{background:rgba(255,255,255,.85);-webkit-backdrop-filter:blur(15px);position:absolute;border-radius:5px;box-shadow:0 3px 8px rgba(0,0,0,.2);padding:15px;font-family:"Open Sans",sans-serif;width:140px}#colorPick span{font-size:9pt;text-transform:uppercase;font-weight:700;color:#bbb;margin-bottom:5px;display:block;clear:both}.customColorHash{border-radius:5px;height:23px;width:122px;margin:1px 4px;padding:0 4px;border:1px solid #babbba;outline:0}.customColorHash.error{border-color:#ff424c;color:#ff424c}.colorPickButton{border-radius:5px;width:20px;height:20px;margin:0 3px;cursor:pointer;display:inline-block;border:thin solid #eee}.colorPickButton:hover{transform:scale(1.1)}.colorPickDummy{background:#fff;border:1px dashed #bbb} diff --git a/users/static/users/js/colorPick.min.js b/users/static/users/js/colorPick.min.js new file mode 100644 index 0000000..99bf1be --- /dev/null +++ b/users/static/users/js/colorPick.min.js @@ -0,0 +1,10 @@ +/*! +* +* ColorPick jQuery plugin +* https://github.com/philzet/ColorPick.js +* +* Copyright (c) 2017-2019 Phil Zet (a.k.a. Phil Zakharchenko) +* Licensed under the MIT License +* +*/ +!function(o){o.fn.colorPick=function(e){return this.each(function(){new o.colorPick(this,e||{})})},o.colorPick=function(e,t){t=t||{},this.options=o.extend({},o.fn.colorPick.defaults,t),t.str&&(this.options.str=o.extend({},o.fn.colorPick.defaults.str,t.str)),o.fn.colorPick.defaults=this.options,this.color=this.options.initialColor.toUpperCase(),this.element=o(e);var c=this.element.data("initialcolor");c&&(this.color=c,this.appendToStorage(this.color));var l=[];return o.each(o.fn.colorPick.defaults.palette.map(function(o){return o.toUpperCase()}),function(e,t){-1===o.inArray(t,l)&&l.push(t)}),this.palette=l,this.element.hasClass(this.options.pickrclass)?this:this.init()},o.fn.colorPick.defaults={initialColor:"#3498db",paletteLabel:"Farbauswahl:",allowRecent:!0,recentMax:5,allowCustomColor:!1,palette:["#1abc9c","#16a085","#2ecc71","#27ae60","#3498db","#2980b9","#9b59b6","#8e44ad","#34495e","#2c3e50","#f1c40f","#f39c12","#e67e22","#d35400","#e74c3c","#c0392b","#ecf0f1","#bdc3c7","#95a5a6","#7f8c8d"],onColorSelected:function(){this.element.css({backgroundColor:this.color,color:this.color})}},o.colorPick.prototype={init:function(){var e=this;this.options;return o.proxy(o.fn.colorPick.defaults.onColorSelected,this)(),this.element.click(function(t){return t.preventDefault(),e.show(t.pageX,t.pageY),o(".customColorHash").val(e.color),o(".colorPickButton").click(function(t){return e.color=o(t.target).attr("hexValue"),e.appendToStorage(o(t.target).attr("hexValue")),e.hide(),o.proxy(e.options.onColorSelected,e)(),!1}),o(".customColorHash").click(function(o){return!1}).keyup(function(t){var c=o(this).val();0!==c.indexOf("#")&&(c="#"+c),/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(c)?(e.color=c,e.appendToStorage(c),o.proxy(e.options.onColorSelected,e)(),o(this).removeClass("error")):o(this).addClass("error")}),!1}).blur(function(){return e.element.val(e.color),o.proxy(e.options.onColorSelected,e)(),e.hide(),!1}),o(document).on("click",function(o){return e.hide(),!0}),this},appendToStorage:function(e){if(!0===o.fn.colorPick.defaults.allowRecent){var t=JSON.parse(localStorage.getItem("colorPickRecentItems"));null==t&&(t=[]),-1==o.inArray(e,t)&&(t.unshift(e),t=t.slice(0,o.fn.colorPick.defaults.recentMax),localStorage.setItem("colorPickRecentItems",JSON.stringify(t)))}},show:function(e,t){o("#colorPick").remove(),o("body").append('"),jQuery.each(this.palette,function(e,t){o("#colorPick").append('
')}),!0===o.fn.colorPick.defaults.allowCustomColor&&o("#colorPick").append(''),!0===o.fn.colorPick.defaults.allowRecent&&(o("#colorPick").append('Kürzlich:'),null==JSON.parse(localStorage.getItem("colorPickRecentItems"))||JSON.parse(localStorage.getItem("colorPickRecentItems"))==[]?o("#colorPick").append('
'):jQuery.each(JSON.parse(localStorage.getItem("colorPickRecentItems")),function(e,t){if(o("#colorPick").append('
'),e==o.fn.colorPick.defaults.recentMax-1)return!1})),o("#colorPick").fadeIn(200)},hide:function(){o("#colorPick").fadeOut(200,function(){return o("#colorPick").remove(),this})}}}(jQuery);