source: trunk/template/yoga/admin/plugins_list.tpl @ 2334

Last change on this file since 2334 was 2334, checked in by rvelices, 16 years ago

2 template features:

  • added a {html_head} smarty block - allow any template file to add content just before </head> tag (handy for plugins and allows to move more presentation logic to tpls); the content is usually <style> or <link> which must appear inside html <head> tag
  • by config allow some language strings to be replaced during template compilation -> better performance. drawback: changes in the language file will not be propagated until template is recompiled.
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1<div class="titrePage">
2  <h2>{'Plugins'|@translate}</h2>
3{$TABSHEET}
4</div>
5
6{'Sort order'|@translate} :
7  <select onchange="document.location = this.options[this.selectedIndex].value;" style="width:100px">
8        {html_options options=$order_options selected=$order_selected}
9  </select>
10
11{if isset($plugins)}
12<table class="table2">
13<thead>
14  <tr class="throw">
15    <td>{'Name'|@translate}</td>
16    <td>{'Version'|@translate}</td>
17    <td>{'Description'|@translate}</td>
18    <td>{'Actions'|@translate}</td>
19  </tr>
20</thead>
21{html_head} {*add the style to html head for strict standard compliance*}
22<style type="text/css">
23TABLE.table2 TR TD.pluginState {ldelim}
24  padding-left:16px;
25}
26TABLE.table2 TR TD.active {ldelim}
27  background: url({$ROOT_URL}{$themeconf.admin_icon_dir}/plugin_active.gif) no-repeat center left
28}
29TABLE.table2 TR TD.inactive {ldelim}
30  background: url({$ROOT_URL}{$themeconf.admin_icon_dir}/plugin_inactive.gif) no-repeat center left
31}
32</style>
33{/html_head}
34{foreach from=$plugins item=plugin name=plugins_loop}
35        <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">
36        <td class="pluginState{if not empty($plugin.STATE)} {$plugin.STATE}{/if}">
37                {$plugin.NAME}
38        </td>
39        <td>{$plugin.VERSION}</td>
40        <td>{$plugin.DESCRIPTION}</td>
41        <td>
42        {foreach from=$plugin.actions item=action}
43                <a href="{$action.U_ACTION}"
44                {if isset($action.CONFIRM)} onclick="return confirm('{$action.CONFIRM|@escape:'javascript'}');"{/if}
45                {$TAG_INPUT_ENABLED}>{$action.L_ACTION}</a>
46        {/foreach}
47        </td>
48  </tr>
49{/foreach}
50</table>
51{/if}
Note: See TracBrowser for help on using the repository browser.