]> git.plutz.net Git - confetti/blobdiff - templates/frame.html.sh
Lobster: time sheet on therapy note
[confetti] / templates / frame.html.sh
index 90e0e32d76f4b37cebc19ecef93ff95d2d05d001..b8128a34d6d112fb52474e5ce6041c6ec7e8635a 100755 (executable)
@@ -32,20 +32,20 @@ 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##*/}"
           page="${page%.sh}"
-          printf '<a href="?p=%s">%s</a>' "${page}" "$(l10n "p_${page}")"
-        done)
+          printf '<a href="?p=%s">%s</a>\n' "${page}" "$(l10n "p_${page}")"
+        done |grep -E '^<a href="\?p='"${page_filter}" )
         $(if grep -qF "$REQUEST_URI" "$bmfile"; then
           printf '<input type="hidden" name="bm_url" value="%s" />
                   <input type="text" name="bm_name" value="%s" readonly="readonly" /
@@ -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: