Bug 7720: add options for controlling display of an item's home and/or holdings location
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / plugins / plugins-home.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Tools &rsaquo; Plugins </title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'calendar.inc' %]
6 </head>
7
8 <body>
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'circ-search.inc' %]
11
12 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
13 &rsaquo; Plugins
14 </div>
15
16 <div id="doc3" class="yui-t1">
17     <div id="bd">
18         <div id="yui-main">
19             <div class="yui-b">
20                 <div class="details">
21                     <h1>Plugins</h1>
22
23                     [% UNLESS ( plugins ) %]
24                         [% UNLESS ( method ) %]
25                             <h3>No plugins installed</h3>
26                         [% ELSE %]
27                             [% IF method == 'tool' %]
28                                 <h3>No plugins that can be used as a tool are installed</h3>
29                             [% ELSIF method == 'report' %]
30                                 <h3>No plugins that can create a report are installed</h3>
31                             [% ELSE %]
32                                 <h3>Unknown plugin type <i>[% method %]</i>
33                             [% END %]
34                         [% END %]
35                     [% ELSE %]
36                         <table>
37                             <tr>
38                                 <th>Name</th>
39                                 <th>&nbsp;</th>
40                                 <th>Description</th>
41                                 <th>Author</th>
42                                 <th>Plugin Version</th>
43                                 <th>Minimum Koha Version</th>
44                                 <th>Maximum Koha Version</th>
45                                 <th>Last Updated</th>
46                                 [% IF ( CAN_user_plugins_configure ) %]<th>Configure</th>[% END %]
47                                 [% IF ( CAN_user_plugins_manage ) %]<th>Uninstall</th>[% END %]
48                             </tr>
49
50                             [% FOREACH plugin IN plugins %]
51                                 <tr>
52                                     <td><strong>[% plugin.metadata.name %]</strong></td>
53                                     <td>
54                                         [% IF ( CAN_user_plugins_report ) %]
55                                             [% IF plugin.can('report') %]
56                                                 <p style="white-space:nowrap"><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=report">Run report</a></p>
57                                             [% END %]
58                                         [% END %]
59
60                                         [% IF ( CAN_user_plugins_tool ) %]
61                                             [% IF plugin.can('tool') %]
62                                                 <p style="white-space:nowrap"><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=tool">Run tool</a></p>
63                                             [% END %]
64                                         [% END %]
65                                     </td>
66                                     <td>
67                                         [% plugin.metadata.description %]
68
69                                         [% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %]
70                                             <div class="error">Warning: This report was written for a newer version of Koha. Run at your own risk.</div>
71                                         [% END %]
72
73                                         [% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %]
74                                             <div class="error">Warning: This report was written for an older version of Koha. Run at your own risk.</div>
75                                         [% END %]
76                                     </td>
77                                     <td>[% plugin.metadata.author %]</td>
78                                     <td>[% plugin.metadata.version %]</td>
79                                     <td>[% plugin.metadata.minimum_version %]</td>
80                                     <td>[% plugin.metadata.maximum_version %]</td>
81                                     <td>[% plugin.metadata.date_updated | $KohaDates %]</td>
82                                     [% IF ( CAN_user_plugins_configure ) %]
83                                         <td>
84                                             [% IF plugin.can('configure') %]
85                                                 <a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=configure">Configure</a>
86                                             [% END %]
87                                         </td>
88                                     [% END %]
89                                     [% IF ( CAN_user_plugins_manage ) %]
90                                         <td>
91                                             [% IF plugin.can('uninstall') %]
92                                                 <a href="/cgi-bin/koha/plugins/plugins-uninstall.pl?class=[% plugin.class %]" onclick="return confirm('Are you sure you want to uninstall the plugin [% plugin.metadata.name %]?')">Uninstall</a>
93                                             [% END %]
94                                         </td>
95                                     [% END %]
96                             [% END %]
97                         </table>
98                     [% END %]
99                 </div>
100             </div>
101         </div>
102
103         <div class="yui-b noprint">
104             <div id="navmenu">
105                 <ul id="navmenulist">
106                     [% IF ( CAN_user_plugins_manage ) %]
107                         <li><a href="plugins-upload.pl">Upload a plugin</a></li>
108                     [% END %]
109                 </ul>
110             </div>
111         </div>
112     </div>
113 </div>
114
115
116 [% INCLUDE 'intranet-bottom.inc' %]