diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin_shifts.html | 8 | ||||
-rw-r--r-- | templates/admin_shifts_angel_types.html | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/templates/admin_shifts.html b/templates/admin_shifts.html index 3c8da90c..45663956 100644 --- a/templates/admin_shifts.html +++ b/templates/admin_shifts.html @@ -1,5 +1,9 @@ +<noscript> + Diese Seite ist mit aktiviertem JavaScript sehr viel komfortabler. +</noscript> <form action="" method="post"> <fieldset> + %msg% <p> <label> Name/Beschreibung: @@ -15,13 +19,13 @@ <label> Beginn: </label> - <input type="text" value="" /> + <input type="text" name="start" value="%start%" /> </p> <p> <label> Ende: </label> - <input type="text" value="" /> + <input type="text" name="end" value="%end%" /> </p><h2>Modus:</h2> <p> <label> diff --git a/templates/admin_shifts_angel_types.html b/templates/admin_shifts_angel_types.html index 49f60ce1..5ac1f8e6 100644 --- a/templates/admin_shifts_angel_types.html +++ b/templates/admin_shifts_angel_types.html @@ -5,10 +5,10 @@ <span class="spinner"><a id="type_%id%_down" href="#">-</a><input type="text" id="type_%id%" name="type_%id%" value="%value%" /><a id="type_%id%_up" href="#">+</a></span> <script type="text/javascript"> document.getElementById("type_%id%_up").onclick = function(e){ - document.getElementById("type_%id%").value = parseInt(document.getElementById("type_%id%").value) + 1; + document.getElementById("type_%id%").value = (parseInt(document.getElementById("type_%id%").value) + 101) % 100; }; - var down = document.getElementById("type_%id%_down").onclick = function(e){ - document.getElementById("type_%id%").value = parseInt(document.getElementById("type_%id%").value) - 1; + document.getElementById("type_%id%_down").onclick = function(e){ + document.getElementById("type_%id%").value = (parseInt(document.getElementById("type_%id%").value) +99) % 100; }; </script> </p> |