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