[2614] | 1 | |
---|
[2641] | 2 | {include file='include/autosize.inc.tpl'} |
---|
[2718] | 3 | {include file='include/resize.inc.tpl'} |
---|
[2614] | 4 | |
---|
[2531] | 5 | <div class="titrePage"> |
---|
[6993] | 6 | <h2>{'Edit album'|@translate}</h2> |
---|
[2531] | 7 | </div> |
---|
| 8 | |
---|
| 9 | <h3>{$CATEGORIES_NAV}</h3> |
---|
| 10 | |
---|
| 11 | <ul class="categoryActions"> |
---|
[2777] | 12 | {if cat_admin_access($CAT_ID)} |
---|
[6988] | 13 | <li><a href="{$U_JUMPTO}" title="{'jump to album'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_jump-to.png" class="button" alt="{'jump to album'|@translate}"></a></li> |
---|
[2777] | 14 | {/if} |
---|
[2531] | 15 | {if isset($U_MANAGE_ELEMENTS) } |
---|
[8727] | 16 | <li><a href="{$U_MANAGE_ELEMENTS}" title="{'manage album photos'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_elements.png" class="button" alt="{'Photos'|@translate}"></a></li> |
---|
[9051] | 17 | {/if} |
---|
[8682] | 18 | <li><a href="{$U_MANAGE_RANKS}" title="{'manage photo ranks'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/ranks.png" class="button" alt="{'ranks'|@translate}"></a></li> |
---|
[7024] | 19 | <li><a href="{$U_CHILDREN}" title="{'manage sub-albums'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_children.png" class="button" alt="{'sub-albums'|@translate}"></a></li> |
---|
[2531] | 20 | {if isset($U_MANAGE_PERMISSIONS) } |
---|
[6988] | 21 | <li><a href="{$U_MANAGE_PERMISSIONS}" title="{'edit album permissions'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_permissions.png" class="button" alt="{'Permissions'|@translate}"></a></li> |
---|
[2531] | 22 | {/if} |
---|
| 23 | {if isset($U_DELETE) } |
---|
[6988] | 24 | <li><a href="{$U_DELETE}" title="{'delete album'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_delete.png" class="button" alt="{'delete album'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"></a></li> |
---|
[2531] | 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> |
---|
[5021] | 36 | <td><strong>{'Directory'|@translate}</strong></td> |
---|
[2531] | 37 | <td class="row1">{$CAT_FULL_DIR}</td> |
---|
| 38 | </tr> |
---|
| 39 | {/if} |
---|
| 40 | |
---|
| 41 | <tr> |
---|
| 42 | <td><strong>{'Name'|@translate}</strong></td> |
---|
| 43 | <td> |
---|
[3185] | 44 | <input type="text" class="large" name="name" value="{$CAT_NAME}" maxlength="60"> |
---|
[2531] | 45 | </td> |
---|
| 46 | </tr> |
---|
| 47 | <tr> |
---|
| 48 | <td><strong>{'Description'|@translate}</strong></td> |
---|
| 49 | <td> |
---|
[2674] | 50 | <textarea cols="50" rows="5" name="comment" id="comment" class="description">{$CAT_COMMENT}</textarea> |
---|
[2531] | 51 | </td> |
---|
| 52 | </tr> |
---|
| 53 | </table> |
---|
| 54 | </fieldset> |
---|
| 55 | |
---|
| 56 | {if isset($move_cat_options) } |
---|
| 57 | <fieldset id="move"> |
---|
| 58 | <legend>{'Move'|@translate}</legend> |
---|
[6969] | 59 | {'Parent album'|@translate} |
---|
[2531] | 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> |
---|
[5021] | 71 | <td><strong>{'Access type'|@translate}</strong> |
---|
[2531] | 72 | <td> |
---|
| 73 | {html_radios name='status' values=$status_values output=$status_values|translate selected=$CAT_STATUS} |
---|
| 74 | </td> |
---|
| 75 | </tr> |
---|
| 76 | <tr> |
---|
[5021] | 77 | <td><strong>{'Lock'|@translate}</strong> |
---|
[2531] | 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> |
---|
[5021] | 83 | <td><strong>{'Comments'|@translate}</strong> |
---|
[2531] | 84 | <td> |
---|
| 85 | {html_radios name='commentable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_COMMENTABLE} |
---|
| 86 | </td> |
---|
| 87 | </tr> |
---|
| 88 | </table> |
---|
| 89 | </fieldset> |
---|
| 90 | |
---|
| 91 | <p style="text-align:center;"> |
---|
[8128] | 92 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit"> |
---|
[3185] | 93 | <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset"> |
---|
[2531] | 94 | </p> |
---|
| 95 | |
---|
| 96 | {if isset($representant) } |
---|
| 97 | <fieldset id="representant"> |
---|
| 98 | <legend>{'Representant'|@translate}</legend> |
---|
| 99 | <table> |
---|
| 100 | <tr> |
---|
| 101 | <td align="center"> |
---|
| 102 | {if isset($representant.picture) } |
---|
[3185] | 103 | <a href="{$representant.picture.URL}"><img src="{$representant.picture.SRC}" alt="" class="miniature"></a> |
---|
[2531] | 104 | {else} |
---|
[8727] | 105 | <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_representant_random.png" class="button" alt="{'Random photo'|@translate}" class="miniature"> |
---|
[2531] | 106 | {/if} |
---|
| 107 | </td> |
---|
| 108 | <td> |
---|
| 109 | {if $representant.ALLOW_SET_RANDOM } |
---|
[8128] | 110 | <p><input class="submit" type="submit" name="set_random_representant" value="{'Find a new representant by random'|@translate}"></p> |
---|
[2531] | 111 | {/if} |
---|
| 112 | |
---|
| 113 | {if isset($representant.ALLOW_DELETE) } |
---|
[3185] | 114 | <p><input class="submit" type="submit" name="delete_representant" value="{'Delete Representant'|@translate}"></p> |
---|
[2531] | 115 | {/if} |
---|
| 116 | </td> |
---|
| 117 | </tr> |
---|
| 118 | </table> |
---|
| 119 | </fieldset> |
---|
| 120 | {/if} |
---|
| 121 | |
---|
| 122 | </form> |
---|
| 123 | |
---|
| 124 | <form action="{$F_ACTION}" method="POST" id="links"> |
---|
| 125 | |
---|
| 126 | <fieldset id="linkAllNew"> |
---|
[8723] | 127 | <legend>{'Link all album photos to a new album'|@translate}</legend> |
---|
[2531] | 128 | |
---|
| 129 | <table> |
---|
| 130 | <tr> |
---|
[6969] | 131 | <td>{'Virtual album name'|@translate}</td> |
---|
[2761] | 132 | <td><input type="text" class="large" name="virtual_name"></td> |
---|
[2531] | 133 | </tr> |
---|
| 134 | |
---|
| 135 | <tr> |
---|
[6969] | 136 | <td>{'Parent album'|@translate}</td> |
---|
[2531] | 137 | <td> |
---|
| 138 | <select class="categoryDropDown" name="parent"> |
---|
| 139 | <option value="0">------------</option> |
---|
| 140 | {html_options options=$create_new_parent_options } |
---|
| 141 | </select> |
---|
| 142 | </td> |
---|
| 143 | </tr> |
---|
| 144 | </table> |
---|
| 145 | |
---|
| 146 | <p> |
---|
[8128] | 147 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd"> |
---|
[3185] | 148 | <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset"> |
---|
[2531] | 149 | </p> |
---|
| 150 | |
---|
| 151 | </fieldset> |
---|
| 152 | |
---|
| 153 | <fieldset id="linkAllExist"> |
---|
[8723] | 154 | <legend>{'Link all album photos to some existing albums'|@translate}</legend> |
---|
[2531] | 155 | |
---|
| 156 | <table> |
---|
| 157 | <tr> |
---|
[6993] | 158 | <td>{'Albums'|@translate}</td> |
---|
[2531] | 159 | <td> |
---|
| 160 | <select class="categoryList" name="destinations[]" multiple="multiple" size="5"> |
---|
| 161 | {html_options options=$category_destination_options } |
---|
| 162 | </select> |
---|
| 163 | </td> |
---|
| 164 | </tr> |
---|
| 165 | </table> |
---|
| 166 | |
---|
| 167 | <p> |
---|
[8128] | 168 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitDestinations"> |
---|
[3185] | 169 | <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset"> |
---|
[2531] | 170 | </p> |
---|
| 171 | |
---|
| 172 | </fieldset> |
---|
| 173 | |
---|
| 174 | {if isset($group_mail_options)} |
---|
| 175 | <fieldset id="emailCatInfo"> |
---|
| 176 | <legend>{'Send an information email to group members'|@translate}</legend> |
---|
| 177 | |
---|
| 178 | <table> |
---|
| 179 | <tr> |
---|
| 180 | <td><strong>{'Group'|@translate}</strong></td> |
---|
| 181 | <td> |
---|
| 182 | <select name="group"> |
---|
| 183 | {html_options options=$group_mail_options} |
---|
| 184 | </select> |
---|
| 185 | </td> |
---|
| 186 | </tr> |
---|
| 187 | <tr> |
---|
[5021] | 188 | <td><strong>{'Mail content'|@translate}</strong></td> |
---|
[2531] | 189 | <td> |
---|
[2674] | 190 | <textarea cols="50" rows="5" name="mail_content" id="mail_content" class="description">{$MAIL_CONTENT}</textarea> |
---|
[2531] | 191 | </td> |
---|
| 192 | </tr> |
---|
| 193 | |
---|
| 194 | </table> |
---|
| 195 | |
---|
| 196 | <p> |
---|
[8128] | 197 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitEmail"> |
---|
[3185] | 198 | <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset"> |
---|
[2531] | 199 | </p> |
---|
| 200 | |
---|
| 201 | </fieldset> |
---|
| 202 | {/if} |
---|
| 203 | |
---|
| 204 | </form> |
---|