baseline
[omp.pkp.sfu.ca.git] / templates / manager / plugins / managePlugins.tpl
blobf8a35807e1c6fa24bd2f87cc74f6928e65e4182f
1 {**
2  * plugins.tpl
3  *
4  * Copyright (c) 2003-2009 John Willinsky
5  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
6  *
7  * List available import/export plugins.
8  *
9  * $Id: managePlugins.tpl,v 1.3 2009/05/26 01:31:18 mcrider Exp $
10  *}
11 {strip}
12 {assign var="pageTitle" value="manager.plugins.$path"}
13 {include file="common/header.tpl"}
14 {/strip}
17 {if $path == 'install'}
18         <div id="install">
19         {if !$uploaded}
20                 <p>{translate key="manager.plugins.installDescription"}</p>
21         {/if}
22         
23         <form method="post" action="{url path="installPlugin"}" enctype="multipart/form-data">  
24                 {if $error}
25                         <span class="formError">{translate key="form.errorsOccurred"}:</span>
26                         <ul class="formErrorList">
27                                 <li>
28                                 {if is_array($message)}
29                                         {translate key=$message[0]} {$message[1]}
30                                 {else}
31                                         {translate key=$message}
32                                 {/if}
33                                 </li>
34                         </ul>
35                 {/if}
36                 {if $uploaded}
37                         <ul class="plain">
38                                 <li>&#187;&nbsp;
39                                 {if is_array($message)}
40                                         {translate key=$message[0]} {$message[1]}
41                                 {else}
42                                         {translate key=$message}
43                                 {/if}
44                                 </li>
45                         </ul>
46                 {/if}
48                 <br />
49                 <table class="data" width="100%">
50                 <tr>
51                         <td width="25%" class="label">
52                                         {translate key="manager.plugins.uploadPluginDir"}
53                         </td>
54                         <td width="75%" class="value">
55                                 <input type="file" class="uploadField" name="newPlugin" id="newPlugin" /> 
56                                 <input name="uploadPlugin" type="submit" value="{translate key="common.continue"}" class="button defaultButton" />
57                         </td>
58                 </tr>
59                 </table>
60                 <p>
61         </form>
62         </div>
63 {elseif $path == 'upgrade'}
64         <div id="upgrade">
65         {if !$uploaded}
66                 <p>{translate key="manager.plugins.upgradeDescription"}</p>
67         {/if}
68         
69         <form method="post" action="{url path="upgradePlugin"|to_array:$plugin}" enctype="multipart/form-data">         
70                 {if $error}
71                         <span class="formError">{translate key="form.errorsOccurred"}:</span>
72                         <ul class="formErrorList">
73                                 {if is_array($message)}
74                                         {translate key=$message[0]} {$message[1]}
75                                 {else}
76                                         {translate key=$message}
77                                 {/if}
78                         </ul>
79                 {/if}
80                 {if $uploaded}
81                         <ul class="plain">
82                                 <li>&#187;&nbsp;
83                                 {if is_array($message)}
84                                         {translate key=$message[0]} {$message[1]}
85                                 {else}
86                                         {translate key=$message}
87                                 {/if}
88                                 </li>
89                         </ul>
90                 {/if}
91                 
92                 <br />
93                 <table class="data" width="100%">
94                 <tr>
95                         <td width="25%" class="label">
96                                         {translate key="manager.plugins.uploadPluginDir"}
97                         </td>
98                         <td width="75%" class="value">
99                                 <input type="file" class="uploadField" name="newPlugin" id="newPlugin" />
100                                 <input name="uploadPlugin" type="submit" value="{translate key="common.continue"}" class="button defaultButton" />
101                         </td>
102                 </tr>
103                 </table>
104                 <p>
105         </form>
106         </div>
107 {elseif $path == 'delete'}
108         <div id="delete">
109         {if !$deleted}
110                 <p>{translate key="manager.plugins.deleteDescription"}</p>
111         {/if}
112         
113         {if !$deleted}
114                 {if !$error}
115                         <ul class="formErrorList">
116                                 <li>{translate key="manager.plugins.deleteConfirm"}</li>
117                         </ul>
118                 {/if}
119         
120                 <br />
121                 <form method="post" action="{url path="deletePlugin"|to_array:$plugin}" enctype="multipart/form-data">          
122                         {if $error}
123                                 <span class="formError">{translate key="form.errorsOccurred"}:</span>
124                                 <ul class="formErrorList">
125                                         <li>
126                                         {if is_array($message)}
127                                                 {translate key=$message[0]} {$message[1]}
128                                         {else}
129                                                 {translate key=$message}
130                                         {/if}
131                                         </li>
132                                 </ul>
133                         {/if}
134                         <input type="submit" name="save" class="button defaultButton" value="{translate key="common.delete"}"/> <input type="button" class="button" value="{translate key="common.cancel"}" onclick="history.go(-1)"/>
135                 </form>
136         {else}
137                 <p>{translate key="manager.plugins.deleteSuccess"}</p>
138         {/if}
139         </div>
140 {/if}
142 {include file="common/footer.tpl"}