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