Commit | Line | Data |
---|---|---|
6855525e JL |
1 | {if !$readonly} |
2 | {literal} | |
3 | <script type="text/javascript"> | |
4 | <!-- | |
5 | function move_up( myplug ) { | |
6 | document.plug_form.action.value = "move_up"; | |
7 | document.plug_form.plug_target.value = myplug; | |
8 | document.plug_form.submit(); | |
9 | return true; | |
10 | } | |
11 | function move_down( myplug ) { | |
12 | document.plug_form.action.value = "move_down"; | |
13 | document.plug_form.plug_target.value = myplug; | |
14 | document.plug_form.submit(); | |
15 | return true; | |
16 | } | |
17 | // --> | |
18 | </script> | |
19 | {/literal} | |
20 | ||
21 | <form name="plug_form" method="post" action="{$post}"> | |
22 | <input type="hidden" name="action" value="update" /> | |
23 | <input type="hidden" name="plug_target" value="" /> | |
24 | <input type="hidden" name="plug_page" value="{$plug_page}" /> | |
25 | <input type="hidden" name="plug_barrel" value="{$plug_barrel}" /> | |
26 | {/if} | |
27 | ||
28 | <div class="plugins"> | |
29 | {foreach from=$plugins key=plugtype item=plugarr} | |
30 | <table class="light" style="width:80%"> | |
31 | <tr> | |
16e8fac2 | 32 | <th colspan="2">{$plugtype} {$msg_plugedit_plugins}</th> |
6855525e | 33 | </tr> |
6855525e | 34 | {foreach from=$plugarr item=plug} |
56aefc1e | 35 | <tr class="odd"> |
16e8fac2 | 36 | <td><img class="fileicon" src="{$plug.icon}"/> {$plug.name} v{$plug.version}</td> |
56aefc1e | 37 | <td> |
16e8fac2 JL |
38 | {if $plug.readonly} |
39 | status {$plug.status} | |
40 | {else} | |
56aefc1e | 41 | <select name="{$plug.name}_status">{html_options options=$statusvals selected=$plug.status}</select> |
6855525e JL |
42 | <a class="action"{if $plug.move_up}href="javascript:move_up('{$plug.name}');"{/if}>{$msg_move_up}</a> <a class="action"{if $plug.move_down}href="javascript:move_down('{$plug.name}');"{/if}>{$msg_move_down}</a> |
43 | {/if} | |
44 | </td> | |
56aefc1e JL |
45 | </tr> |
46 | <tr> | |
56aefc1e | 47 | <td><div class="description">{$plug.description}</div></td> |
16e8fac2 JL |
48 | <td> |
49 | {if $show_params} | |
56aefc1e | 50 | <table class="plugparams"> |
6855525e JL |
51 | {foreach from=$plug.params key=key item=val} |
52 | <tr> | |
53 | <td>{$key}</td> | |
54 | <td><input type="text" name="{$plug.name}_{$key}" value="{$val|escape}" size="30" /></td> | |
55 | </tr> | |
56 | {/foreach} | |
57 | </table> | |
16e8fac2 | 58 | {/if} |
6855525e | 59 | </td> |
6855525e | 60 | </tr> |
6855525e JL |
61 | {/foreach} |
62 | </table> | |
63 | <br/> | |
64 | {/foreach} | |
65 | </div> | |
66 | ||
67 | {if !$readonly} | |
68 | <p> | |
69 | <input type="submit" value="{$msg_submit}" /> | |
70 | </p> | |
71 | </form> | |
72 | {/if} |