]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
menu debug remove. theme 98: managetags more old school cool
authorBanana <mail@bananas-playground.net>
Sat, 29 Apr 2023 10:06:46 +0000 (12:06 +0200)
committerBanana <mail@bananas-playground.net>
Sat, 29 Apr 2023 10:06:46 +0000 (12:06 +0200)
webclient/view/98/managetags/managetags.html
webclient/view/98/system/menu.php

index 10ad22de88fbfb6a5ffc623d460cb224052fbfb7..6969871452ccb73d4ddea54799563eec8e86e717 100644 (file)
 
        <?php if(!empty($TemplateData['tags'])) { ?>
                <form method="post">
-                       <?php foreach($TemplateData['tags'] as $k=>$v) { ?>
-                       <div class="field-row">
-                               <h4 class="uk-heading-line"><?php echo $v['displayname']; ?></h4>
-                       </div>
-                       <div class="field-row">
-                               <label for="<?php echo $v['id']; ?>_use">Use</label>
-                               <select name="fdata[<?php echo $v['id']; ?>][use]" id="<?php echo $v['id']; ?>_use">
-                                       <option value="">Please select</option>
-                                       <?php foreach($v['entries'] as $ek=>$ev) { ?>
-                                       <option value="<?php echo $ev; ?>"><?php echo $ev; ?></option>
-                                       <?php } ?>
-                               </select>
-
-                               <label for="<?php echo $v['id']; ?>_move">Move to (rename to existing)</label>
-                               <select name="fdata[<?php echo $v['id']; ?>][move]" id="<?php echo $v['id']; ?>_move">
-                                       <option value="">Please select</option>
-                                       <?php foreach($v['entries'] as $ek=>$ev) { ?>
-                                       <option value="<?php echo $ev; ?>"><?php echo $ev; ?></option>
-                                       <?php } ?>
-                               </select>
-
-                               <label for="<?php echo $v['id']; ?>_rename" >Rename</label>
-                               <input type="text" autocomplete="off"
-                                      name="fdata[<?php echo $v['id']; ?>][rename]" id="<?php echo $v['id']; ?>_rename">
-
-                               <input type="checkbox" name="fdata[<?php echo $v['id']; ?>][doDelete]" value="1"
-                                      id="<?php echo $v['id']; ?>_doDelete">
-                               <label for="<?php echo $v['id']; ?>_doDelete">Delete</label>
-                       </div>
-                       <?php } ?>
+                       <div  class="sunken-panel">
+                               <table width="100%">
+                                       <thead>
+                                               <tr>
+                                                       <th width="100px">Tagfield</th>
+                                                       <th>Use</th>
+                                                       <th>Move to (rename to existig)</th>
+                                                       <th>Rename</th>
+                                                       <th width="100px">Delete</th>
+                                               </tr>
+                                       </thead>
+                                       <tbody>
+                               <?php foreach($TemplateData['tags'] as $k=>$v) { ?>
+                                               <tr>
+                                                       <td><?php echo $v['displayname']; ?></td>
+                                                       <td>
+                                                               <select name="fdata[<?php echo $v['id']; ?>][use]">
+                                                                       <option value="">Please select</option>
+                                                                       <?php foreach($v['entries'] as $ek=>$ev) { ?>
+                                                                       <option value="<?php echo $ev; ?>"><?php echo $ev; ?></option>
+                                                                       <?php } ?>
+                                                               </select>
+                                                       </td>
 
-                       <div class="field-row">
-                               <input type="submit" name="submitForm" value="Save" />
+                                                       <td>
+                                                               <select name="fdata[<?php echo $v['id']; ?>][move]">
+                                                                       <option value="">Please select</option>
+                                                                       <?php foreach($v['entries'] as $ek=>$ev) { ?>
+                                                                       <option value="<?php echo $ev; ?>"><?php echo $ev; ?></option>
+                                                                       <?php } ?>
+                                                               </select>
+                                                       </td>
+                                                       <td>
+                                                               <input type="text" autocomplete="off"
+                                                                      name="fdata[<?php echo $v['id']; ?>][rename]">
+                                                       </td>
+                                                       <td>
+                                                               <input type="checkbox" name="fdata[<?php echo $v['id']; ?>][doDelete]" value="1"
+                                                                       id="<?php echo $v['id']; ?>_doDelete">
+                                                               <label for="<?php echo $v['id']; ?>_doDelete">&nbsp;</label>
+                                                       </td>
+                                               </tr>
+                               <?php } ?>
+                                       </tbody>
+                               </table>
                        </div>
+                       <input type="submit" name="submitForm" value="Do it" />
                </form>
        <?php } ?>
 
index 86f4b6b097e93b6db59c1e857050d96ab05644a7..b432ba040689634dd8227eb077ffd1386fa07193 100644 (file)
@@ -48,7 +48,7 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions);
 <?php if(!empty($_menuManage)) { ?>
        <li role="tab"><a href="">Manage:</a></li>
        <?php foreach($_menuManage as $entry) { ?>
-               <li role="tab" <?php if($_requestMode == $entry['action']) echo 'aria-selected="true"'; ?>>
+               <li role="tab" <?php if(str_contains($entry['action'], $_requestMode)) echo 'aria-selected="true"'; ?>>
                        <a href="index.php?p=<?php echo $entry['action']; ?>"><?php echo $entry['text']; ?></a>
                </li>
        <?php } ?>