more work on the plugins system
[diogenes.git] / templates / plugin-editor.tpl
CommitLineData
6855525e 1{if !$readonly}
6855525e
JL
2<form name="plug_form" method="post" action="{$post}">
3<input type="hidden" name="action" value="update" />
4<input type="hidden" name="plug_target" value="" />
5<input type="hidden" name="plug_page" value="{$plug_page}" />
6<input type="hidden" name="plug_barrel" value="{$plug_barrel}" />
7{/if}
8
9<div class="plugins">
10{foreach from=$plugins key=plugtype item=plugarr}
11<table class="light" style="width:80%">
12<tr>
16e8fac2 13 <th colspan="2">{$plugtype} {$msg_plugedit_plugins}</th>
6855525e 14</tr>
6855525e 15{foreach from=$plugarr item=plug}
56aefc1e 16<tr class="odd">
16e8fac2 17 <td><img class="fileicon" src="{$plug.icon}"/>&nbsp;{$plug.name}&nbsp;v{$plug.version}</td>
56aefc1e 18 <td>
7aff44b2
JL
19{if $readonly || $plug.readonly}
20 {$statusvals[$plug.status]}
16e8fac2 21{else}
7aff44b2 22 <select name="{$plug.name}_status">{html_options options=$rwstatusvals selected=$plug.status}</select>
6855525e
JL
23{/if}
24 </td>
56aefc1e
JL
25</tr>
26<tr>
56aefc1e 27 <td><div class="description">{$plug.description}</div></td>
16e8fac2
JL
28 <td>
29{if $show_params}
56aefc1e 30 <table class="plugparams">
6855525e
JL
31{foreach from=$plug.params key=key item=val}
32 <tr>
33 <td>{$key}</td>
7aff44b2 34 <td><input type="text" name="{$plug.name}_{$key}" value="{$val.value|escape}" size="30" /></td>
6855525e
JL
35 </tr>
36{/foreach}
37 </table>
7aff44b2
JL
38{else}
39 &nbsp;
16e8fac2 40{/if}
6855525e 41 </td>
6855525e 42</tr>
6855525e
JL
43{/foreach}
44</table>
45<br/>
46{/foreach}
47</div>
48
49{if !$readonly}
50<p>
51 <input type="submit" value="{$msg_submit}" />
52</p>
53</form>
54{/if}