]> git.plutz.net Git - confetti/commitdiff
hide menu configuration
authorpaul <paul@plutz.net>
Wed, 18 Apr 2018 14:34:20 +0000 (14:34 +0000)
committerpaul <paul@plutz.net>
Wed, 18 Apr 2018 14:34:20 +0000 (14:34 +0000)
svn path=/trunk/; revision=164

static/common.css
templates/frame.html.sh
templates/text_frame.sh

index bee38cdb1bd961cb314ed832a2c09b57d18405de..e466cb71f9b780af65256da6916e6324595cc4a8 100644 (file)
@@ -10,6 +10,10 @@ body {
   margin: 0;
   padding: 0;
   padding-top: 2.5em;
+  position: absolute;
+  min-height: 100%;
+  width: 100%;
+  padding-bottom: 2em;
 }
 .NAVIGATION {
   position: fixed;
@@ -37,15 +41,18 @@ body {
   background: #F3FFFF;
 }
 
+#CONFIGURE        label[for="navigationconfig"] { display: none; }
+#CONFIGURE:target label[for="navigationconfig"] { display: inline; }
+
 .NAVIGATION input#navigationconfig { display: none; }
-.NAVIGATION label[for=navigationconfig] { }
-.NAVIGATION input + label + form.config {
+.NAVIGATION input + form.config {
   position: static;
   display: none;
 }
+
 .NAVIGATION .config a { display: block; }
 .NAVIGATION .config a:hover { border-width: 1px 2px; }
-.NAVIGATION input:checked + label + form.config { display: block; }
+.NAVIGATION input:checked + form.config { display: block; }
 .NAVIGATION .config input[type=text],
 .NAVIGATION .config button {
   font-size: .875em;
@@ -85,3 +92,10 @@ body {
 .trailbtn:checked + .trailbox + .trailbtn:checked,
 .trailbtn:checked { display: none; }
 
+#footer {
+  width: 100%;
+  background-color: #FFF;
+  border-top: 1px solid #BBF;
+  margin: 0; padding: .5em 2em;
+  position: absolute; bottom: 0;
+}
index a2d8feefe579e5bd95222de7089247fcce26f78a..b8128a34d6d112fb52474e5ce6041c6ec7e8635a 100755 (executable)
@@ -32,14 +32,14 @@ cat <<EOF
     <link rel="stylesheet" href="?static=common.css">
     <link rel="stylesheet" href="?static=${PAGE}.css">
   </head>
-  <body class="$PAGE">
+  <body class="$PAGE" id="CONFIGURE">
     <div class="NAVIGATION">
       $(sed -rn '/^[^ ]+\t[^ ]+$/p' "$bmfile" \
         | while read page name; do
         printf '<a href="%s">%s</a>' "${page}" "${name}"
       done)
-      <input  id="navigationconfig" class="config" type="checkbox" />
       <label for="navigationconfig">$(l10n nc_edit)</label>
+      <input  id="navigationconfig" class="config" type="checkbox" />
       <form class="config" method="POST" action="?action=update_bookmarks">
         $(for page in "${_EXEC}/pages/"*.sh; do
           page="${page##*/}"
@@ -65,6 +65,11 @@ EOF
 
 debug BODY; [ -x "${BODY}" ] && . "${BODY}" || printf %s 'Error'
 
-printf '</body></html>'
+cat <<EOF
+  <div id="footer">
+    <a href="#CONFIGURE">$(l10n configure)</a>
+  </div>
+</body></html>'
+EOF
 
 # vi:set filetype=html:
index 36465eefb33bf157f31a053ccecf4df1cb27c664..75e151130c9bbe2dea310af3210001b26b9c98b5 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright 2014 - 2016 Paul Hänsch
+# Copyright 2014 - 2016, 2018 Paul Hänsch
 #
 # This file is part of Confetti.
 # 
@@ -15,6 +15,7 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
 
+item_name[p_cards]="Personen"
 item_name[p_courses]="Kurse"
 item_name[p_email]="Email"
 item_name[p_error]="Fehler"
@@ -25,12 +26,4 @@ item_name[nc_edit]="&#x2699;"
 #item_name[nc_edit]="&#9776;"
 item_name[bm_add]="+"
 item_name[bm_del]="-"
-
-case $PROFILE in
-medical)
-item_name[p_cards]="Klienten"
-;;
-circus)
-item_name[p_cards]="Teilnehmende"
-;;
-esac
+item_name[configure]="Anpassen"