Ignore:
Timestamp:
Jun 6, 2011, 2:08:27 PM (13 years ago)
Author:
cljosse
Message:

[extensions] set_plugins compatiblity with 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/set_plugins/admin.tpl

    r11100 r11249  
     1 {footer_script }
    12<!-- 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"}
    124
     5  {/footer_script}
    136
    14 
     7<script type="text/javascript">
    158{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)}
    1716{foreach from=$plugin_states item=plugin_state}
    1817{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}
    1924
    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}
    2525    </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>
    2633    {foreach from=$liste_plugins item=plugin name=plugins_loop}
    2734      {if $plugin.STATE == $plugin_state}
     35
    2836    <div class="pluginBox">
    2937      <table>
    3038        <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}">
    3240            {$plugin.NAME}
    3341          </td>
     
    4351            | <a href="{$plugin.U_ACTION}&amp;action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a>
    4452
    45       {elseif $plugin_state == 'uninstalled'}
    46             <a href="{$plugin.U_ACTION}&amp;action=install">{'Install'|@translate}</a>
    47             | <a href="{$plugin.U_ACTION}&amp;action=delete" onclick="return confirm('{'Are you sure you want to delete this plugin?'|@translate|@escape:'javascript'}');">{'Delete'|@translate}</a>
    4853
    49       {elseif $plugin_state == 'missing'}
    50             <a href="{$plugin.U_ACTION}&amp;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}&amp;action=delete">{'Delete'|@translate}</a>
    5454      {/if}
    5555          </td>
     
    7272      </table>
    7373    </div>
     74   
    7475      {/if}
    7576    {/foreach}
     
    8081{/if}
    8182
    82 </fieldset>
Note: See TracChangeset for help on using the changeset viewer.