]> git.plutz.net Git - serve0/blobdiff - templates/advfilter.html.sh
display improvements for text browsers and mobile browsers
[serve0] / templates / advfilter.html.sh
index ce7d6ce365e4977b431f173cd53fb36ac7b94e80..74860bcad3c876c1677de13aa87ae1da8c3dea5d 100755 (executable)
 category_tabs(){
   for cat in "$@"; do
   cat <<EOF
-    <div class="tab">
+  <div class="tab">
     <input class="tabhandle" type="radio" name="category$n" id="cat${n}_$cat" value="$cat" $([ "$cat" = "$fcat" ] && echo checked)>
     <label class="category tabhandle" for="cat${n}_$cat">$([ "$cat" = none ] && printf %s general || printf %s "$cat")</label>
     <select class="category tabcontent" class="input tagfilter" name="cfilter${n}_" size="12" multiple>
       $(category_selected "$cat" "$filter")
     </select>
-    </div>
+  </div>
 EOF
   done
 }
@@ -59,18 +59,8 @@ filterbox(){
 cat <<EOF
   <form class="panel" id="advfilter"
         action="?action=filter" method="post" accept-charset="UTF-8">
-    <input disabled type="text" name="s" value="$search" placeholder="Search">
-    <label for="o2" class="order">Order by:</label>
-    <select disabled class="order" size="1" name="o" id="o2">
-      <option>Name</option>
-      <option>Date</option>
-      <option>Length</option>
-    </select>
-    <input disabled type="submit" name="submit" value="Find">
 
-    <a class="panel clearsearch" href="?">Clear All</a>
     <a class="panel advanced hide" href="#">Hide</a>
-    <hr>
 
     <p class="help">Up to <strong>10</strong> filter boxes will appear as you start selecting tags. You can select <strong>multiple</strong> tags in each box by holding down the <strong>Ctrl</strong>-key. Click the "<strong>Filter!</strong>" button when you are ready.</p>
     $(filterbox {0..9})