page admin pour le wiki
[platal.git] / templates / admin / wiki.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2006 Polytechnique.org                             *}
4 {*  http://opensource.polytechnique.org/                                  *}
5 {*                                                                        *}
6 {*  This program is free software; you can redistribute it and/or modify  *}
7 {*  it under the terms of the GNU General Public License as published by  *}
8 {*  the Free Software Foundation; either version 2 of the License, or     *}
9 {*  (at your option) any later version.                                   *}
10 {*                                                                        *}
11 {*  This program is distributed in the hope that it will be useful,       *}
12 {*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}
13 {*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}
14 {*  GNU General Public License for more details.                          *}
15 {*                                                                        *}
16 {*  You should have received a copy of the GNU General Public License     *}
17 {*  along with this program; if not, write to the Free Software           *}
18 {*  Foundation, Inc.,                                                     *}
19 {*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}
20 {*                                                                        *}
21 {**************************************************************************}
22
23 <h1>Pages wiki du site</h1>
24
25 <form action="admin/wiki/update" method="post">
26 <table class="bicol">
27   <tr>
28     <th>
29       page
30     </th>
31     <th>
32       lecture
33     </th>
34     <th>
35       écriture
36     </th>
37     <th class="action">
38       action
39     </th>
40   </tr>
41 {foreach from=$wiki_pages item=perm key=page}
42   <tr class="{cycle values="impair,pair"}">
43     <td>
44       <a href="{$page|replace:'.':'/'}">{$page}</a> <a href="{$page|replace:'.':'/'}?action=edit" class="indice">{icon name=date_edit title='éditer'}</a>
45     </td>
46     <td class="center">
47       {$perm.read}
48     </td>
49     <td class="center">
50       {$perm.edit}
51     </td>
52     <td class="action">
53       <input type="checkbox" name="{$page|replace:'.':'/'}"/>
54     </td>
55   </tr>
56 {/foreach}
57   <tr>
58     <td>
59       Attribue les permissions aux pages cochées :
60     </td>
61     <td>
62       <select name="read">
63         <option value=""> - </option>
64         {html_options options=$perms_opts}
65       </select>
66     </td>
67     <td>
68       <select name="edit">
69         <option value=""> - </option>
70         {html_options options=$perms_opts}
71       </select>
72     </td>
73     <td class="option">
74       <input type="submit" value="ok"/>
75     </td>
76   </tr>
77 </table>
78 </form>
79 {* vim:set et sw=2 sts=2 sws=2: *}