source: trunk/template/yoga/admin/user_list.tpl @ 1881

Last change on this file since 1881 was 1827, checked in by rvelices, 18 years ago
  • adviser mode: added check on admin profile page and removed 2 read-only TAG_INPUT_ENABLED
  • simplified tag code in picture.php
  • reduced size of dark/theme.css by combining selectors with identical content
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 11.3 KB
Line 
1<div class="titrePage">
2  <ul class="categoryActions">
3    <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"></a></li>
4  </ul>
5  <h2>{lang:title_liste_users}</h2>
6</div>
7
8<form class="filter" method="post" name="add_user" action="{F_ADD_ACTION}">
9  <fieldset>
10    <legend>{lang:Add a user}</legend>
11    <label>{lang:Username} <input type="text" name="login" maxlength="50" size="20" /></label>
12    <label>{lang:Password} <input type="text" name="password" /></label>
13    <label>{lang:Email address} <input type="text" name="email" /></label>
14    <input class="submit" type="submit" name="submit_add" value="{lang:submit}" {TAG_INPUT_ENABLED} />
15  </fieldset>
16</form>
17
18<form class="filter" method="get" name="filter" action="{F_FILTER_ACTION}">
19<fieldset>
20  <legend>{lang:Filter}</legend>
21  <input type="hidden" name="page" value="user_list" />
22
23  <label>{lang:Username} <input type="text" name="username" value="{F_USERNAME}" /></label>
24
25  <label>
26  {lang:status}
27  <select name="status">
28    <!-- BEGIN status_option -->
29    <option value="{status_option.VALUE}" {status_option.SELECTED} > {status_option.CONTENT}</option>
30    <!-- END status_option -->
31  </select>
32  </label>
33
34  <label>
35  {lang:group}
36  <select name="group">
37    <!-- BEGIN group_option -->
38    <option value="{group_option.VALUE}" {group_option.SELECTED} > {group_option.CONTENT}</option>
39    <!-- END group_option -->
40  </select>
41  </label>
42
43  <label>
44  {lang:Order by}
45  <select name="order_by">
46    <!-- BEGIN order_by -->
47    <option value="{order_by.VALUE}" {order_by.SELECTED} >{order_by.CONTENT}</option>
48    <!-- END order_by -->
49  </select>
50  </label>
51
52  <label>
53  {lang:Sort order}
54  <select name="direction">
55    <!-- BEGIN direction -->
56    <option value="{direction.VALUE}" {direction.SELECTED} >{direction.CONTENT}</option>
57    <!-- END direction -->
58  </select>
59  </label>
60
61  <input class="submit" type="submit" name="submit_filter" value="{lang:submit}" />
62
63</fieldset>
64
65</form>
66
67<form method="post" name="preferences" action="{F_PREF_ACTION}">
68
69<table class="table2">
70  <tr class="throw">
71    <th>&nbsp;</th>
72    <th>{lang:Username}</th>
73    <th>{lang:user_status}</th>
74    <th>{lang:Email address}</th>
75    <th>{lang:Groups}</th>
76    <th>{lang:properties}</th>
77    <th>{lang:actions}</th>
78  </tr>
79  <!-- BEGIN user -->
80  <tr class="{user.CLASS}">
81    <td><input type="checkbox" name="selection[]" value="{user.ID}" {user.CHECKED} id="selection-{user.ID}" /></td>
82    <td><label for="selection-{user.ID}">{user.USERNAME}</label></td>
83    <td>{user.STATUS}</td>
84    <td>{user.EMAIL}</td>
85    <td>{user.GROUPS}</td>
86    <td>{user.PROPERTIES}</td>
87    <td style="text-align:center;">
88      <a href="{user.U_PERM}"><img src="{themeconf:icon_dir}/permissions.png" class="button" style="border:none" alt="{lang:permissions}" title="{lang:permissions}" /></a>
89      <a href="{user.U_PROFILE}"><img src="{themeconf:icon_dir}/edit_s.png" class="button" style="border:none" alt="{lang:Profile}" title="{lang:Profile}" /></a>
90    </td>
91  </tr>
92  <!-- END user -->
93</table>
94
95<div class="navigationBar">{NAVBAR}</div>
96
97<!-- delete the selected users ? -->
98<fieldset>
99  <legend>{lang:Deletions}</legend>
100  <label><input type="checkbox" name="confirm_deletion" value="1" /> {lang:confirm}</label>
101  <input class="submit" type="submit" value="{lang:Delete selected users}" name="delete" {TAG_INPUT_ENABLED}/>
102</fieldset>
103
104<fieldset>
105  <legend>{lang:Status}</legend>
106
107  <table>
108    <tr>
109      <td>{lang:Status}</td>
110      <td>
111        <label><input type="radio" name="status_action" value="leave" checked="checked" /> {lang:leave}</label>
112        <label><input type="radio" name="status_action" value="set" id="status_action_set" /> {lang:set to}</label>
113        <select onmousedown="document.getElementById('status_action_set').checked = true;" name="status" size="1">
114          <!-- BEGIN pref_status_option -->
115          <option {pref_status_option.SELECTED} value="{pref_status_option.VALUE}">{pref_status_option.CONTENT}</option>
116          <!-- END pref_status_option -->
117        </select>
118      </td>
119    </tr>
120
121    <!-- BEGIN adviser -->
122    <tr>
123      <td>{lang:adviser}</td>
124      <td>
125        <label><input type="radio" name="adviser" value="leave" checked="checked" /> {lang:leave}</label>
126        / {lang:set to}
127        <label><input type="radio" name="adviser" value="true"  {ADVISER_YES} />{lang:yes}</label>
128        <label><input type="radio" name="adviser" value="false" {ADVISER_NO}  />{lang:no}</label>
129      </td>
130    </tr>
131    <!-- END adviser -->
132
133  </table>
134</fieldset>
135
136<!-- form to set properties for many users at once -->
137<fieldset>
138  <legend>{lang:Groups}</legend>
139
140<table>
141
142  <tr>
143    <td>{lang:associate to group}</td>
144    <td>
145      <select name="associate" size="1">
146        <!-- BEGIN associate_option -->
147        <option {associate_option.SELECTED} value="{associate_option.VALUE}">{associate_option.CONTENT}</option>
148        <!-- END associate_option -->
149      </select>
150    </td>
151  </tr>
152
153  <tr>
154    <td>{lang:dissociate from group}</td>
155    <td>
156      <select name="dissociate" size="1">
157        <!-- BEGIN dissociate_option -->
158        <option {dissociate_option.SELECTED} value="{dissociate_option.VALUE}">{dissociate_option.CONTENT}</option>
159        <!-- END dissociate_option -->
160      </select>
161    </td>
162  </tr>
163
164</table>
165
166</fieldset>
167
168<!-- Properties -->
169<fieldset>
170  <legend>{lang:properties}</legend>
171
172  <table>
173
174    <tr>
175      <td>{lang:enabled_high}</td>
176      <td>
177        <label><input type="radio" name="enabled_high" value="leave" checked="checked" /> {lang:leave}</label>
178        / {lang:set to}
179        <label><input type="radio" name="enabled_high" value="true"  {ENABLED_HIGH_YES} />{lang:yes}</label>
180        <label><input type="radio" name="enabled_high" value="false" {ENABLED_HIGH_NO}  />{lang:no}</label>
181      </td>
182    </tr>
183
184  </table>
185
186</fieldset>
187
188<!-- preference -->
189<fieldset>
190  <legend>{lang:Preferences}</legend>
191
192<table>
193
194  <tr>
195    <td>{lang:nb_image_per_row}</td>
196    <td>
197      <label><input type="radio" name="nb_image_line_action" value="leave" checked="checked" /> {lang:leave}</label>
198      <label><input type="radio" name="nb_image_line_action" value="set" id="nb_image_line_action_set" /> {lang:set to}</label>
199      <input onmousedown="document.getElementById('nb_image_line_action_set').checked = true;"
200             size="3" maxlength="2" type="text" name="nb_image_line" value="{NB_IMAGE_LINE}" />
201    </td>
202  </tr>
203
204  <tr>
205    <td>{lang:nb_row_per_page}</td>
206    <td>
207      <label><input type="radio" name="nb_line_page_action" value="leave" checked="checked" /> {lang:leave}</label>
208      <label><input type="radio" name="nb_line_page_action" value="set" id="nb_line_page_action_set" /> {lang:set to}</label>
209      <input onmousedown="document.getElementById('nb_line_page_action_set').checked = true;"
210             size="3" maxlength="2" type="text" name="nb_line_page" value="{NB_LINE_PAGE}" />
211    <td>
212  </tr>
213
214  <tr>
215    <td>{lang:theme}</td>
216    <td>
217      <label><input type="radio" name="template_action" value="leave" checked="checked" /> {lang:leave}</label>
218      <label><input type="radio" name="template_action" value="set" id="template_action_set" /> {lang:set to}</label>
219      <select onmousedown="document.getElementById('template_action_set').checked = true;" name="template" size="1">
220        <!-- BEGIN template_option -->
221        <option {template_option.SELECTED} value="{template_option.VALUE}">{template_option.CONTENT}</option>
222        <!-- END template_option -->
223      </select>
224    </td>
225  </tr>
226
227  <tr>
228    <td>{lang:language}</td>
229    <td>
230      <label><input type="radio" name="language_action" value="leave" checked="checked" /> {lang:leave}</label>
231      <label><input type="radio" name="language_action" value="set" id="language_action_set" /> {lang:set to}</label>
232      <select onmousedown="document.getElementById('language_action_set').checked = true;" name="language" size="1">
233        <!-- BEGIN language_option -->
234        <option {language_option.SELECTED} value="{language_option.VALUE}">{language_option.CONTENT}</option>
235        <!-- END language_option -->
236      </select>
237    </td>
238  </tr>
239
240  <tr>
241    <td>{lang:recent_period}</td>
242    <td>
243      <label><input type="radio" name="recent_period_action" value="leave" checked="checked" /> {lang:leave}</label>
244      <label><input type="radio" name="recent_period_action" value="set" id="recent_period_action_set" /> {lang:set to}</label>
245      <input onmousedown="document.getElementById('recent_period_action_set').checked = true;"
246             type="text" size="3" maxlength="2" name="recent_period" value="{RECENT_PERIOD}" />
247    </td>
248  </tr>
249
250  <tr>
251    <td>{lang:auto_expand}</td>
252    <td>
253      <label><input type="radio" name="expand" value="leave" checked="checked" /> {lang:leave}</label>
254      / {lang:set to}
255      <label><input type="radio" name="expand" value="true"  {EXPAND_YES} />{lang:yes}</label>
256      <label><input type="radio" name="expand" value="false" {EXPAND_NO}  />{lang:no}</label>
257    </td>
258  </tr>
259
260  <tr>
261    <td>{lang:show_nb_comments}</td>
262    <td>
263      <label><input type="radio" name="show_nb_comments" value="leave" checked="checked" /> {lang:leave}</label>
264      / {lang:set to}
265      <label><input type="radio" name="show_nb_comments" value="true" {SHOW_NB_COMMENTS_YES} />{lang:yes}</label>
266      <label><input type="radio" name="show_nb_comments" value="false" {SHOW_NB_COMMENTS_NO} />{lang:no}</label>
267    </td>
268  </tr>
269
270  <tr>
271    <td>{lang:show_nb_hits}</td>
272    <td>
273      <label><input type="radio" name="show_nb_hits" value="leave" checked="checked" /> {lang:leave}</label>
274      / {lang:set to}
275      <label><input type="radio" name="show_nb_hits" value="true" {SHOW_NB_HITS_YES} />{lang:yes}</label>
276      <label><input type="radio" name="show_nb_hits" value="false" {SHOW_NB_HITS_NO} />{lang:no}</label>
277    </td>
278  </tr>
279
280  <tr>
281    <td>{lang:maxwidth}</td>
282    <td>
283      <label><input type="radio" name="maxwidth_action" value="leave" checked="checked" /> {lang:leave}</label>
284      <label><input type="radio" name="maxwidth_action" value="unset" /> {lang:unset}</label>
285      <label><input type="radio" name="maxwidth_action" value="set" id="maxwidth_action_set" /> {lang:set to}</label>
286      <input onmousedown="document.getElementById('maxwidth_action_set').checked = true;"
287             type="text" size="4" maxlength="4" name="maxwidth" value="{MAXWIDTH}" />
288    </td>
289  </tr>
290
291
292  <tr>
293    <td>{lang:maxheight}</td>
294    <td>
295      <label><input type="radio" name="maxheight_action" value="leave" checked="checked" /> {lang:leave}</label>
296      <label><input type="radio" name="maxheight_action" value="unset" /> {lang:unset}</label>
297      <label><input type="radio" name="maxheight_action" value="set" id="maxheight_action_set" /> {lang:set to}</label>
298      <input onmousedown="document.getElementById('maxheight_action_set').checked = true;"
299             type="text" size="4" maxlength="4" name="maxheight" value="{MAXHEIGHT}" />
300    </td>
301  </tr>
302
303
304</table>
305
306</fieldset>
307
308<p>
309  {lang:target}
310  <label><input type="radio" name="target" value="all" /> {lang:all}</label>
311  <label><input type="radio" name="target" value="selection" checked="checked" /> {lang:selection}</label>
312</p>
313
314<p>
315  <input class="submit" type="submit" value="{lang:submit}" name="pref_submit" {TAG_INPUT_ENABLED} />
316  <input class="submit" type="reset" value="{lang:reset}" name="pref_reset" />
317</p>
318
319</form>
Note: See TracBrowser for help on using the repository browser.