Changeset 11249 for extensions/set_plugins/admin.tpl
- Timestamp:
- Jun 6, 2011, 2:08:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/set_plugins/admin.tpl
r11100 r11249 1 {footer_script } 1 2 <!-- Show the title of the plugin --> 2 <div class="titlePage"> 3 <h2>{'set_plugins'|@translate} {'Version'|@translate} {$cl_version}</h2> 4 </div> 5 <fieldset> 6 <legend>{'command'|@translate}</legend> 7 <form action="{$action}" method="post" name="form_set_plugins" id="form_set_plugins"> 8 <input name="unset_plugins" type="submit" value="{'Deactivate'|@translate}" /> 9 <input name="set_plugins" type="submit" value="{'Activate'|@translate}" /> 10 <input name="nb" type="text" value="{$nb}" /> 11 </form> 3 {combine_script id="field_set" load="footer" path=$SET_PLUGINS_PATH|@cat:"js/field_set.js" require="jquery"} 12 4 5 {/footer_script} 13 6 14 7 <script type="text/javascript"> 15 8 {if isset($liste_plugins)} 16 9 var no_affiche = true; 10 {else} 11 var no_affiche = false; 12 {/if} 13 </script> 14 <div> 15 {if isset($liste_plugins)} 17 16 {foreach from=$plugin_states item=plugin_state} 18 17 {if $plugin_state==$state} 18 </div> 19 <fieldset > 20 <legend> 21 {if $plugin_state == 'active'} {'Last '|@translate} {'Active Plugins'|@translate} 22 {elseif $plugin_state == 'inactive'} {'Last '|@translate} {'Inactive Plugins'|@translate} 23 {/if} 19 24 20 <fieldset>21 <legend>22 {if $plugin_state == 'active'} {'Last '|@translate} {'Active Plugins'|@translate}23 {elseif $plugin_state == 'inactive'} {'Last '|@translate} {'Inactive Plugins'|@translate}24 {/if}25 25 </legend> 26 <form action="{$action}" method="post" name="form_set_plugins" id="form_set_plugins"> 27 <input name="unset_plugins" type="submit" value="{'Deactivate'|@translate}" /> 28 <input name="set_plugins" type="submit" value="{'Activate'|@translate}" /> 29 <input name="nb" type="text" value="{$nb}" /> 30 </form> 31 <p> 32 </p> 26 33 {foreach from=$liste_plugins item=plugin name=plugins_loop} 27 34 {if $plugin.STATE == $plugin_state} 35 28 36 <div class="pluginBox"> 29 37 <table> 30 38 <tr> 31 <td class="pluginBoxNameCell{if $plugin.INCOMPATIBLE} warning" title="{'WARNING! This plugin does not seem to be compatible with this version of Piwigo.'|@translate|@escape:'html'}{/if}">39 <td name="plugins_name" class="pluginBoxNameCell{if $plugin.INCOMPATIBLE} warning" title="{'WARNING! This plugin does not seem to be compatible with this version of Piwigo.'|@translate|@escape:'html'}{/if}"> 32 40 {$plugin.NAME} 33 41 </td> … … 43 51 | <a href="{$plugin.U_ACTION}&action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a> 44 52 45 {elseif $plugin_state == 'uninstalled'}46 <a href="{$plugin.U_ACTION}&action=install">{'Install'|@translate}</a>47 | <a href="{$plugin.U_ACTION}&action=delete" onclick="return confirm('{'Are you sure you want to delete this plugin?'|@translate|@escape:'javascript'}');">{'Delete'|@translate}</a>48 53 49 {elseif $plugin_state == 'missing'}50 <a href="{$plugin.U_ACTION}&action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a>51 52 {elseif $plugin_state == 'merged'}53 <a href="{$plugin.U_ACTION}&action=delete">{'Delete'|@translate}</a>54 54 {/if} 55 55 </td> … … 72 72 </table> 73 73 </div> 74 74 75 {/if} 75 76 {/foreach} … … 80 81 {/if} 81 82 82 </fieldset>
Note: See TracChangeset
for help on using the changeset viewer.