[2641] | 1 | {include file='include/autosize.inc.tpl'} |
---|
[2718] | 2 | {include file='include/dbselect.inc.tpl'} |
---|
[2632] | 3 | {include file='include/datepicker.inc.tpl'} |
---|
| 4 | |
---|
[10970] | 5 | {combine_script id='jquery.tokeninput' load='async' require='jquery' path='themes/default/js/plugins/jquery.tokeninput.js'} |
---|
[11039] | 6 | {footer_script require='jquery.tokeninput'} |
---|
| 7 | jQuery(document).ready(function() {ldelim} |
---|
| 8 | jQuery("#tags").tokenInput( |
---|
[11212] | 9 | [{foreach from=$tags item=tag name=tags}{ldelim}"name":"{$tag.name|@escape:'javascript'}","id":"{$tag.id}"{rdelim}{if !$smarty.foreach.tags.last},{/if}{/foreach}], |
---|
[11039] | 10 | {ldelim} |
---|
| 11 | hintText: '{'Type in a search term'|@translate}', |
---|
| 12 | noResultsText: '{'No results'|@translate}', |
---|
| 13 | searchingText: '{'Searching...'|@translate}', |
---|
| 14 | newText: ' ({'new'|@translate})', |
---|
| 15 | animateDropdown: false, |
---|
| 16 | preventDuplicates: true, |
---|
| 17 | allowCreation: true |
---|
| 18 | } |
---|
| 19 | ); |
---|
[7995] | 20 | }); |
---|
[11039] | 21 | {/footer_script} |
---|
[5067] | 22 | |
---|
[7995] | 23 | {footer_script} |
---|
| 24 | pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set"); |
---|
| 25 | {/footer_script} |
---|
[2632] | 26 | |
---|
[8723] | 27 | <h2>{'Edit photo information'|@translate}</h2> |
---|
[2531] | 28 | |
---|
[5021] | 29 | <img src="{$TN_SRC}" alt="{'Thumbnail'|@translate}" class="Thumbnail"> |
---|
[2531] | 30 | |
---|
| 31 | <ul class="categoryActions"> |
---|
| 32 | {if isset($U_JUMPTO) } |
---|
[12482] | 33 | <li><a href="{$U_JUMPTO}" title="{'jump to photo'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_jump-to.png" alt="{'jump to photo'|@translate}"></a></li> |
---|
[2531] | 34 | {/if} |
---|
[8014] | 35 | {if !url_is_remote($PATH)} |
---|
[12693] | 36 | <li><a href="{$U_SYNC}" title="{'Synchronize'|@translate}"><img src="{$themeconf.admin_icon_dir}/sync_metadata.png" alt="{'Synchronize'|@translate}"></a></li> |
---|
[8764] | 37 | |
---|
[12482] | 38 | <li><a href="{$U_DELETE}" title="{'delete photo'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_delete.png" alt="{'delete photo'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"></a></li> |
---|
[2777] | 39 | {/if} |
---|
[2531] | 40 | </ul> |
---|
| 41 | |
---|
| 42 | <form action="{$F_ACTION}" method="post" id="properties"> |
---|
| 43 | |
---|
| 44 | <fieldset> |
---|
| 45 | <legend>{'Informations'|@translate}</legend> |
---|
| 46 | |
---|
| 47 | <table> |
---|
| 48 | |
---|
| 49 | <tr> |
---|
| 50 | <td><strong>{'Path'|@translate}</strong></td> |
---|
| 51 | <td>{$PATH}</td> |
---|
| 52 | </tr> |
---|
| 53 | |
---|
| 54 | <tr> |
---|
| 55 | <td><strong>{'Post date'|@translate}</strong></td> |
---|
| 56 | <td>{$REGISTRATION_DATE}</td> |
---|
| 57 | </tr> |
---|
| 58 | |
---|
| 59 | <tr> |
---|
| 60 | <td><strong>{'Dimensions'|@translate}</strong></td> |
---|
| 61 | <td>{$DIMENSIONS}</td> |
---|
| 62 | </tr> |
---|
| 63 | |
---|
| 64 | <tr> |
---|
| 65 | <td><strong>{'Filesize'|@translate}</strong></td> |
---|
| 66 | <td>{$FILESIZE}</td> |
---|
| 67 | </tr> |
---|
| 68 | |
---|
| 69 | <tr> |
---|
[6969] | 70 | <td><strong>{'Storage album'|@translate}</strong></td> |
---|
[2531] | 71 | <td>{$STORAGE_CATEGORY}</td> |
---|
| 72 | </tr> |
---|
| 73 | |
---|
| 74 | {if isset($related_categories) } |
---|
| 75 | <tr> |
---|
[6969] | 76 | <td><strong>{'Linked albums'|@translate}</strong></td> |
---|
[2531] | 77 | <td> |
---|
| 78 | <ul> |
---|
| 79 | {foreach from=$related_categories item=name} |
---|
| 80 | <li>{$name}</li> |
---|
| 81 | {/foreach} |
---|
| 82 | </ul> |
---|
| 83 | </td> |
---|
| 84 | </tr> |
---|
| 85 | {/if} |
---|
[13038] | 86 | {if isset($U_COI)} |
---|
| 87 | <tr> |
---|
| 88 | <td></td> |
---|
| 89 | <td><a href="{$U_COI}">{'Not cropped correctly?'|@translate}</a></td> |
---|
| 90 | </tr> |
---|
| 91 | {/if} |
---|
[2531] | 92 | </table> |
---|
| 93 | |
---|
| 94 | </fieldset> |
---|
| 95 | |
---|
| 96 | <fieldset> |
---|
| 97 | <legend>{'Properties'|@translate}</legend> |
---|
| 98 | |
---|
| 99 | <table> |
---|
| 100 | |
---|
| 101 | <tr> |
---|
| 102 | <td><strong>{'Name'|@translate}</strong></td> |
---|
[3185] | 103 | <td><input type="text" class="large" name="name" value="{$NAME}"></td> |
---|
[2531] | 104 | </tr> |
---|
| 105 | |
---|
| 106 | <tr> |
---|
| 107 | <td><strong>{'Author'|@translate}</strong></td> |
---|
[3185] | 108 | <td><input type="text" class="large" name="author" value="{$AUTHOR}"></td> |
---|
[2531] | 109 | </tr> |
---|
| 110 | |
---|
| 111 | <tr> |
---|
| 112 | <td><strong>{'Creation date'|@translate}</strong></td> |
---|
| 113 | <td> |
---|
[3185] | 114 | <label><input type="radio" name="date_creation_action" value="unset"> {'unset'|@translate}</label> |
---|
| 115 | <input type="radio" name="date_creation_action" value="set" id="date_creation_action_set"> {'set to'|@translate} |
---|
[2680] | 116 | <select id="date_creation_day" name="date_creation_day"> |
---|
[2531] | 117 | <option value="0">--</option> |
---|
| 118 | {section name=day start=1 loop=32} |
---|
| 119 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY_VALUE}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
| 120 | {/section} |
---|
| 121 | </select> |
---|
[2680] | 122 | <select id="date_creation_month" name="date_creation_month"> |
---|
[2531] | 123 | {html_options options=$month_list selected=$DATE_CREATION_MONTH_VALUE} |
---|
| 124 | </select> |
---|
[2680] | 125 | <input id="date_creation_year" |
---|
[2531] | 126 | name="date_creation_year" |
---|
| 127 | type="text" |
---|
| 128 | size="4" |
---|
| 129 | maxlength="4" |
---|
[3185] | 130 | value="{$DATE_CREATION_YEAR_VALUE}"> |
---|
| 131 | <input id="date_creation_linked_date" name="date_creation_linked_date" type="hidden" size="10" disabled="disabled"> |
---|
[2531] | 132 | </td> |
---|
| 133 | </tr> |
---|
| 134 | |
---|
| 135 | <tr> |
---|
| 136 | <td><strong>{'Tags'|@translate}</strong></td> |
---|
[5067] | 137 | <td> |
---|
| 138 | <select id="tags" name="tags"> |
---|
[11039] | 139 | {foreach from=$tag_selection item=tag} |
---|
[10970] | 140 | <option value="{$tag.id}" class="selected">{$tag.name}</option> |
---|
[5067] | 141 | {/foreach} |
---|
| 142 | </select> |
---|
| 143 | </td> |
---|
[2531] | 144 | </tr> |
---|
| 145 | |
---|
| 146 | |
---|
| 147 | <tr> |
---|
| 148 | <td><strong>{'Description'|@translate}</strong></td> |
---|
[2674] | 149 | <td><textarea name="description" id="description" class="description">{$DESCRIPTION}</textarea></td> |
---|
[2531] | 150 | </tr> |
---|
| 151 | |
---|
| 152 | <tr> |
---|
[6025] | 153 | <td><strong>{'Who can see this photo?'|@translate}</strong></td> |
---|
[2531] | 154 | <td> |
---|
| 155 | <select name="level" size="1"> |
---|
| 156 | {html_options options=$level_options selected=$level_options_selected} |
---|
| 157 | </select> |
---|
| 158 | </td> |
---|
| 159 | </tr> |
---|
| 160 | |
---|
| 161 | </table> |
---|
| 162 | |
---|
| 163 | <p style="text-align:center;"> |
---|
[8128] | 164 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit"> |
---|
[3185] | 165 | <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset"> |
---|
[2531] | 166 | </p> |
---|
| 167 | |
---|
| 168 | </fieldset> |
---|
| 169 | |
---|
| 170 | </form> |
---|
| 171 | |
---|
| 172 | <form id="associations" method="post" action="{$F_ACTION}#associations"> |
---|
| 173 | <fieldset> |
---|
[6993] | 174 | <legend>{'Linked albums'|@translate}</legend> |
---|
[2531] | 175 | |
---|
| 176 | <table class="doubleSelect"> |
---|
| 177 | <tr> |
---|
| 178 | <td> |
---|
| 179 | <h3>{'Associated'|@translate}</h3> |
---|
| 180 | <select class="categoryList" name="cat_associated[]" multiple="multiple" size="30"> |
---|
| 181 | {html_options options=$associated_options} |
---|
| 182 | </select> |
---|
[8128] | 183 | <p><input class="submit" type="submit" value="»" name="dissociate" style="font-size:15px;"></p> |
---|
[2531] | 184 | </td> |
---|
| 185 | |
---|
| 186 | <td> |
---|
| 187 | <h3>{'Dissociated'|@translate}</h3> |
---|
| 188 | <select class="categoryList" name="cat_dissociated[]" multiple="multiple" size="30"> |
---|
| 189 | {html_options options=$dissociated_options} |
---|
| 190 | </select> |
---|
[8128] | 191 | <p><input class="submit" type="submit" value="«" name="associate" style="font-size:15px;"></p> |
---|
[2531] | 192 | </td> |
---|
| 193 | </tr> |
---|
| 194 | </table> |
---|
| 195 | |
---|
| 196 | </fieldset> |
---|
| 197 | </form> |
---|
| 198 | |
---|
| 199 | <form id="representation" method="post" action="{$F_ACTION}#representation"> |
---|
| 200 | <fieldset> |
---|
[6993] | 201 | <legend>{'Representation of albums'|@translate}</legend> |
---|
[2531] | 202 | |
---|
| 203 | <table class="doubleSelect"> |
---|
| 204 | <tr> |
---|
| 205 | <td> |
---|
| 206 | <h3>{'Represents'|@translate}</h3> |
---|
| 207 | <select class="categoryList" name="cat_elected[]" multiple="multiple" size="30"> |
---|
| 208 | {html_options options=$elected_options} |
---|
| 209 | </select> |
---|
[8128] | 210 | <p><input class="submit" type="submit" value="»" name="dismiss" style="font-size:15px;"></p> |
---|
[2531] | 211 | </td> |
---|
| 212 | |
---|
| 213 | <td> |
---|
| 214 | <h3>{'Does not represent'|@translate}</h3> |
---|
| 215 | <select class="categoryList" name="cat_dismissed[]" multiple="multiple" size="30"> |
---|
| 216 | {html_options options=$dismissed_options} |
---|
| 217 | </select> |
---|
[8128] | 218 | <p><input class="submit" type="submit" value="«" name="elect" style="font-size:15px;"></p> |
---|
[2531] | 219 | </td> |
---|
| 220 | </tr> |
---|
| 221 | </table> |
---|
| 222 | |
---|
| 223 | </fieldset> |
---|
| 224 | </form> |
---|