more plugin fixups
[diogenes.git] / templates / plugin-editor.tpl
index 14155d5..dcccbbe 100644 (file)
 {foreach from=$plugins key=plugtype item=plugarr}
 <table class="light" style="width:80%">
 <tr>
-  <th colspan="{if $show_params}4{else}3{/if}">{$plugtype} {$msg_plugedit_plugins}</th>
+  <th colspan="2">{$plugtype} {$msg_plugedit_plugins}</th>
 </tr>
-{counter start=0 assign=cnt print=0}
 {foreach from=$plugarr item=plug}
-<tr{if $cnt % 2} class="odd"{/if}>
-  <td style="width:30px">
-    <img class="fileicon" src="{$plug.icon}" />
-  </td>
-  <td>    
-    <div class="name">{if !$readonly}<input type="checkbox" name="plugins_active[]" value="{$plug.name}"{if $plug.active} checked="checked"{/if} />&nbsp;{/if}{$plug.name}&nbsp;v{$plug.version}</div>
-{if !$readonly}
+<tr class="odd">
+  <td><img class="fileicon" src="{$plug.icon}"/>&nbsp;{$plug.name}&nbsp;v{$plug.version}</td>
+  <td>
+{if $plug.readonly}
+    status {$plug.status}
+{else}
+    <select name="{$plug.name}_status">{html_options options=$statusvals selected=$plug.status}</select>
     <a class="action"{if $plug.move_up}href="javascript:move_up('{$plug.name}');"{/if}>{$msg_move_up}</a>&nbsp;<a class="action"{if $plug.move_down}href="javascript:move_down('{$plug.name}');"{/if}>{$msg_move_down}</a>
 {/if}
   </td>
+</tr>
+<tr>
+  <td><div class="description">{$plug.description}</div></td>
   <td>
-  <div class="description">{$plug.description}</div>
-  </td>  
-{if !$readonly && $show_params}       
-  <td>
-    <table>
+{if $show_params}
+    <table class="plugparams">
 {foreach from=$plug.params key=key item=val}
     <tr>
       <td>{$key}</td>
     </tr>
 {/foreach}
     </table>
+{/if}
   </td>
-{/if}  
 </tr>
-{counter}
 {/foreach}
 </table>
 <br/>