Linux multi-monitor fullscreen support
[ryzomcore.git] / web / public_php / ams / templates / plugins.tpl
blob8e29eb36e7403ddb084bbcff7d96123880a78990
1 {block name=content}
2 <div class="row-fluid">
3                                 <div class="box col-md-12">
4                                 <div class="panel panel-default">
5                                         <div class="panel-heading" data-original-title>
6                                                 <span class="icon-user"></span> {$plugin_title}
7                                         </div>
8                                         {if isset($smarty.get.result) and $smarty.get.result eq "1"}<div class="alert alert-error"><p>{$ip_success}</p></div>{/if}
9                                         {if isset($smarty.get.result) and $smarty.get.result eq "0"}<div class="alert alert-error"><p>{$dp_error}</p></div>{/if}
10                                         {if isset($smarty.get.result) and $smarty.get.result eq "2"}<div class="alert alert-error"><p>{$dp_success}</p></div>{/if}
11                                         {if isset($smarty.get.result) and $smarty.get.result eq "3"}<div class="alert alert-error"><p>{$ac_success}</p></div>{/if}
12                                         {if isset($smarty.get.result) and $smarty.get.result eq "4"}<div class="alert alert-error"><p>{$ac_error}</p></div>{/if}
13                                         {if isset($smarty.get.result) and $smarty.get.result eq "5"}<div class="alert alert-error"><p>{$dc_success}</p></div>{/if}
14                                         {if isset($smarty.get.result) and $smarty.get.result eq "6"}<div class="alert alert-error"><p>{$dc_error}</p></div>{/if}
15                                         {if isset($smarty.get.result) and $smarty.get.result eq "7"}<div class="alert alert-error"><p>{$up_success}</p></div>{/if}
16                                         {if isset($smarty.get.result) and $smarty.get.result eq "8"}<div class="alert alert-error"><p>{$up_install_success}</p></div>{/if}
17                                         <div class="panel-body">
18                                                 <center><p>{$plugin_info}</p></center>
19                                                 <center>
20                                                 <a href="index.php?page=install_plugin"><button class="btn btn-primary btn-large dropdown-toggle">Install New Plugin</button></a>
21                                                 <a href="index.php?page=plugins_update"><button class="btn btn-primary btn-large dropdown-toggle">Check for updates</button></a>
22                                                 </center>
23                                                 <table class="table table-striped table-bordered">
24                                                   <thead>
25                                                           <tr>
26                                                                   <th>{$plugin_status}</th>
27                                                                   <th width="100">{$plugin_name}</th>
28                                                                   <th>{$plugin_version}</th>
29                                                                   <th width="350">{$plugin_description}</th>
30                                                                   <th width="80">{$plugin_type}</th>
31                                                                   <th>{$plugin_permission}</th>
32                                                                   <th>{$plugin_actions}</th>
33                                                           </tr>
34                                                   </thead>
35                                                   <tbody>
36                                                         {foreach from=$plug item=element}
37                                                         <tr>
38                                                                 <td>{if ($element.plugin_status) eq "1"}<span class="glyphicon glyphicon-ok green"></span>{else}<span class="glyphicon glyphicon-remove red"></span>{/if}</td>
39                                                                 <td class="center">{$element.plugin_name}</td>
40                                                                 <td class="center">{$element.plugin_info->Version}</td>
41                                                                 <td class="center">{$element.plugin_info->Description}</td>
42                                                                 <td class="center">{$element.plugin_type}</td>
43                                                                 <td class="center">{$element.plugin_permission}</td>
44                                                                 <td>
45                 {if ($element.plugin_status) eq "0"}
46                 <a href="index.php?page=plugins&action=delete_plugin&id={$element.id}"><button class="btn btn-primary btn-large">Delete</button></a>
47                 <a href="index.php?page=plugins&action=activate_plugin&id={$element.id}"><button class="btn btn-primary btn-large dropdown-toggle">Activate</button></a>{/if}
48                 {if ($element.plugin_status) eq "1"}<a href="index.php?page=plugins&action=deactivate_plugin&id={$element.id}"><button class="btn btn-primary btn-large dropdown-toggle">Deactivate</button></a>{/if}</td>
49                                                         </tr>
50                                                         {/foreach}
52                                                   </tbody>
53                                           </table>
54                                           <div style="width: 300px; margin:0px auto;">
55                                                 <ul class="pagination">
56                                                         <li><a href="index.php?page=plugins&pagenum=1">&laquo;</a></li>
57                                                         {foreach from=$links item=link}
58                                                         <li {if $link == $currentPage}class="active"{/if}><a href="index.php?page=plugins&pagenum={$link}">{$link}</a></li>
59                                                         {/foreach}
60                                                         <li><a href="index.php?page=plugins&pagenum={$lastPage}">&raquo;</a></li>
61                                                 </ul>
62                                           </div>
63                                         </div>
64                                         </div>
66                                 </div><!--/span-->
67                         </div><!--/row-->
68 {/block}