source: branches/2.0/admin/template/goto/cat_modify.tpl @ 4894

Last change on this file since 4894 was 2776, checked in by vdigital, 16 years ago

Jump to category icon is removed on user forbidden categories (previously check_restrictions was leading administrators to the access denied page).

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 7.8 KB
Line 
1{* $Id: cat_modify.tpl 2776 2008-10-19 15:37:43Z vdigital $ *}
2
3{include file='include/autosize.inc.tpl'}
4{include file='include/resize.inc.tpl'}
5
6<div class="titrePage">
7  <h2>{'title_edit_cat'|@translate}</h2>
8</div>
9
10<h3>{$CATEGORIES_NAV}</h3>
11
12<ul class="categoryActions">
13  {if cat_admin_access($CAT_ID)}
14  <li><a href="{$U_JUMPTO}" title="{'jump to category'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_jump-to.png" class="button" alt="{'jump to category'|@translate}" /></a></li>
15  {/if}
16  {if isset($U_MANAGE_ELEMENTS) }
17  <li><a href="{$U_MANAGE_ELEMENTS}" title="{'manage category elements'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_elements.png" class="button" alt="{'elements'|@translate}" /></a></li>
18  <li><a href="{$U_MANAGE_RANKS}" title="{'manage image ranks'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/ranks.png" class="button" alt="{'ranks'|@translate}" /></a></li>
19  {/if}
20  <li><a href="{$U_CHILDREN}" title="{'manage sub-categories'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_children.png" class="button" alt="{'sub-categories'|@translate}" /></a></li>
21  {if isset($U_MANAGE_PERMISSIONS) }
22  <li><a href="{$U_MANAGE_PERMISSIONS}" title="{'edit category permissions'|@translate}" ><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_permissions.png" class="button" alt="{'permissions'|@translate}" /></a></li>
23  {/if}
24  {if isset($U_DELETE) }
25  <li><a href="{$U_DELETE}" title="{'delete category'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_delete.png" class="button" alt="{'delete'|@translate}" /></a></li>
26  {/if}
27</ul>
28
29<form action="{$F_ACTION}" method="POST" id="catModify">
30
31<fieldset>
32  <legend>{'Informations'|@translate}</legend>
33  <table>
34
35    {if isset($CAT_FULL_DIR) }
36    <tr>
37      <td><strong>{'storage'|@translate}</strong></td>
38      <td class="row1">{$CAT_FULL_DIR}</td>
39    </tr>
40    {/if}
41   
42    <tr>
43      <td><strong>{'Name'|@translate}</strong></td>
44      <td>
45        <input type="text" class="large" name="name" value="{$CAT_NAME}" maxlength="60"/>
46      </td>
47    </tr>
48    <tr>
49      <td><strong>{'Description'|@translate}</strong></td>
50      <td>
51        <textarea cols="50" rows="5" name="comment" id="comment" class="description">{$CAT_COMMENT}</textarea>
52      </td>
53    </tr>
54  </table>
55</fieldset>
56
57{if isset($move_cat_options) }
58<fieldset id="move">
59  <legend>{'Move'|@translate}</legend>
60  {'Parent category'|@translate}
61  <select class="categoryDropDown" name="parent">
62    <option value="0">------------</option>
63    {html_options options=$move_cat_options selected=$move_cat_options_selected }
64  </select>
65</fieldset>
66{/if}
67
68<fieldset id="options">
69  <legend>{'Options'|@translate}</legend>
70  <table>
71    <tr>
72      <td><strong>{'conf_access'|@translate}</strong>
73      <td>
74        {html_radios name='status' values=$status_values output=$status_values|translate selected=$CAT_STATUS}
75      </td>
76    </tr>
77    <tr>
78      <td><strong>{'lock'|@translate}</strong>
79      <td>
80        {html_radios name='visible' values='true,false'|@explode output='No,Yes'|@explode|translate selected=$CAT_VISIBLE}
81      </td>
82    </tr>
83    <tr>
84      <td><strong>{'comments'|@translate}</strong>
85      <td>
86        {html_radios name='commentable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_COMMENTABLE}
87      </td>
88    </tr>
89    {if isset($SHOW_UPLOADABLE) }
90    <tr>
91      <td><strong>{'editcat_uploadable'|@translate}</strong>
92      <td>
93        {html_radios name='uploadable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_UPLOADABLE}
94      </td>
95    </tr>
96    {/if}
97  </table>
98</fieldset>
99
100<fieldset id="image_order">
101  <legend>{'Sort order'|@translate}</legend>
102  <input type="checkbox" name="image_order_default" id="image_order_default" {$IMG_ORDER_DEFAULT} />
103  <label for="image_order_default">{'Use default sort order'|@translate}</label>
104  <br/>
105  <input type="checkbox" name="image_order_subcats" id="image_order_subcats" />
106  <label for="image_order_subcats">{'Apply to subcategories'|@translate}</label>
107  <br/>
108 
109  {foreach from=$image_orders item=order}
110    <select name="order_field_{$order.ID}">
111      {html_options options=$image_order_field_options selected=$order.FIELD }
112    </select>
113    <select name="order_direction_{$order.ID}">
114      {html_options options=$image_order_direction_options selected=$order.DIRECTION }
115    </select><br/>
116  {/foreach}
117 
118</fieldset>
119
120<p style="text-align:center;">
121  <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}/>
122  <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
123</p>
124
125{if isset($representant) }
126<fieldset id="representant">
127  <legend>{'Representant'|@translate}</legend>
128  <table>
129    <tr>
130      <td align="center">
131        {if isset($representant.picture) }
132        <a href="{$representant.picture.URL}"><img src="{$representant.picture.SRC}" alt="" class="miniature" /></a>
133        {else}
134        <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_representant_random.png" class="button" alt="{'Random picture'|@translate}" class="miniature" />
135        {/if}
136      </td>
137      <td>
138        {if $representant.ALLOW_SET_RANDOM }
139        <p><input class="submit" type="submit" name="set_random_representant" value="{'cat_representant'|@translate}" {$TAG_INPUT_ENABLED}/></p>
140        {/if}
141
142        {if isset($representant.ALLOW_DELETE) }
143        <p><input class="submit" type="submit" name="delete_representant" value="{'Delete Representant'|@translate}" /></p>
144        {/if}
145      </td>
146    </tr>
147  </table>
148</fieldset>
149{/if}
150
151</form>
152
153<form action="{$F_ACTION}" method="POST" id="links">
154
155<fieldset id="linkAllNew">
156  <legend>{'Link all category elements to a new category'|@translate}</legend>
157
158  <table>
159    <tr>
160      <td>{'Virtual category name'|@translate}</td>
161      <td><input type="text" class="large" name="virtual_name"></td>
162    </tr>
163
164    <tr>
165      <td>{'Parent category'|@translate}</td>
166      <td>
167        <select class="categoryDropDown" name="parent">
168          <option value="0">------------</option>
169          {html_options options=$create_new_parent_options }
170        </select>
171      </td>
172    </tr>
173  </table>
174
175  <p>
176    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd" {$TAG_INPUT_ENABLED}/>
177    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
178  </p>
179
180</fieldset>
181
182<fieldset id="linkAllExist">
183  <legend>{'Link all category elements to some existing categories'|@translate}</legend>
184
185  <table>
186    <tr>
187      <td>{'Categories'|@translate}</td>
188      <td>
189        <select class="categoryList" name="destinations[]" multiple="multiple" size="5">
190          {html_options options=$category_destination_options }
191        </select>
192      </td>
193    </tr>
194  </table>
195
196  <p>
197    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitDestinations" {$TAG_INPUT_ENABLED}/>
198    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
199  </p>
200
201</fieldset>
202
203{if isset($group_mail_options)}
204<fieldset id="emailCatInfo">
205  <legend>{'Send an information email to group members'|@translate}</legend>
206
207  <table>
208    <tr>
209      <td><strong>{'Group'|@translate}</strong></td>
210      <td>
211        <select name="group">
212          {html_options options=$group_mail_options}
213        </select>
214      </td>
215    </tr>
216    <tr>
217      <td><strong>{'mail_content'|@translate}</strong></td>
218      <td>
219        <textarea cols="50" rows="5" name="mail_content" id="mail_content" class="description">{$MAIL_CONTENT}</textarea>
220      </td>
221    </tr>
222
223  </table>
224
225  <p>
226    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitEmail" {$TAG_INPUT_ENABLED}/>
227    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
228  </p>
229
230</fieldset>
231{/if}
232
233</form>
Note: See TracBrowser for help on using the repository browser.