[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 | |
---|
[28494] | 5 | {combine_script id='LocalStorageCache' load='footer' path='admin/themes/default/js/LocalStorageCache.js'} |
---|
[13077] | 6 | |
---|
[28494] | 7 | {combine_script id='jquery.selectize' load='footer' path='themes/default/js/plugins/selectize.min.js'} |
---|
| 8 | {combine_css id='jquery.selectize' path="themes/default/js/plugins/selectize.default.css"} |
---|
| 9 | |
---|
| 10 | {footer_script} |
---|
| 11 | (function(){ |
---|
| 12 | {* <!-- CATEGORIES --> *} |
---|
[28542] | 13 | var categoriesCache = new CategoriesCache({ |
---|
[28532] | 14 | serverKey: '{$CACHE_KEYS.categories}', |
---|
| 15 | serverId: '{$CACHE_KEYS._hash}', |
---|
[28542] | 16 | rootUrl: '{$ROOT_URL}' |
---|
| 17 | }); |
---|
[28532] | 18 | |
---|
[28555] | 19 | categoriesCache.selectize(jQuery('[data-selectize=categories]')); |
---|
[13077] | 20 | |
---|
[28494] | 21 | {* <!-- TAGS --> *} |
---|
[28550] | 22 | var tagsCache = new TagsCache({ |
---|
[28532] | 23 | serverKey: '{$CACHE_KEYS.tags}', |
---|
| 24 | serverId: '{$CACHE_KEYS._hash}', |
---|
[28550] | 25 | rootUrl: '{$ROOT_URL}' |
---|
[7995] | 26 | }); |
---|
[5067] | 27 | |
---|
[28613] | 28 | tagsCache.selectize(jQuery('[data-selectize=tags]'), { lang: { |
---|
| 29 | 'Add': '{'Create'|translate}' |
---|
| 30 | }}); |
---|
[28494] | 31 | |
---|
| 32 | {* <!-- DATEPICKER --> *} |
---|
[28497] | 33 | jQuery(function(){ {* <!-- onLoad needed to wait localization loads --> *} |
---|
[28500] | 34 | jQuery('[data-datepicker]').pwgDatepicker({ showTimepicker: true }); |
---|
[28497] | 35 | }); |
---|
[28494] | 36 | }()); |
---|
[7995] | 37 | {/footer_script} |
---|
[2632] | 38 | |
---|
[13077] | 39 | <h2>{$TITLE} › {'Edit photo'|@translate} {$TABSHEET_TITLE}</h2> |
---|
[2531] | 40 | |
---|
[13077] | 41 | <form action="{$F_ACTION}" method="post" id="catModify"> |
---|
[2531] | 42 | |
---|
| 43 | <fieldset> |
---|
| 44 | <legend>{'Informations'|@translate}</legend> |
---|
| 45 | |
---|
| 46 | <table> |
---|
| 47 | |
---|
| 48 | <tr> |
---|
[13077] | 49 | <td id="albumThumbnail"> |
---|
[13084] | 50 | <img src="{$TN_SRC}" alt="{'Thumbnail'|@translate}" class="Thumbnail"> |
---|
[13077] | 51 | </td> |
---|
[13086] | 52 | <td id="albumLinks" style="width:400px;vertical-align:top;"> |
---|
| 53 | <ul style="padding-left:15px;margin:0;"> |
---|
[13084] | 54 | <li>{$INTRO.file}</li> |
---|
[13086] | 55 | <li>{$INTRO.add_date}</li> |
---|
| 56 | <li>{$INTRO.added_by}</li> |
---|
[13084] | 57 | <li>{$INTRO.size}</li> |
---|
[13086] | 58 | <li>{$INTRO.stats}</li> |
---|
[13084] | 59 | <li>{$INTRO.id}</li> |
---|
| 60 | </ul> |
---|
| 61 | </td> |
---|
[25748] | 62 | <td class="photoLinks"> |
---|
| 63 | <ul> |
---|
[13084] | 64 | {if isset($U_JUMPTO) } |
---|
[25748] | 65 | <li><a class="icon-eye" href="{$U_JUMPTO}">{'jump to photo'|@translate} →</a></li> |
---|
[13084] | 66 | {/if} |
---|
| 67 | {if !url_is_remote($PATH)} |
---|
[25748] | 68 | <li><a class="icon-arrows-cw" href="{$U_SYNC}">{'Synchronize metadata'|@translate}</a></li> |
---|
[2531] | 69 | |
---|
[25748] | 70 | <li><a class="icon-trash" href="{$U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">{'delete photo'|@translate}</a></li> |
---|
[13084] | 71 | {/if} |
---|
| 72 | </ul> |
---|
[2531] | 73 | </td> |
---|
| 74 | </tr> |
---|
| 75 | </table> |
---|
| 76 | |
---|
| 77 | </fieldset> |
---|
| 78 | |
---|
| 79 | <fieldset> |
---|
| 80 | <legend>{'Properties'|@translate}</legend> |
---|
| 81 | |
---|
[13077] | 82 | <p> |
---|
| 83 | <strong>{'Title'|@translate}</strong> |
---|
| 84 | <br> |
---|
[13576] | 85 | <input type="text" class="large" name="name" value="{$NAME|@escape}"> |
---|
[13077] | 86 | </p> |
---|
[2531] | 87 | |
---|
[13077] | 88 | <p> |
---|
| 89 | <strong>{'Author'|@translate}</strong> |
---|
| 90 | <br> |
---|
| 91 | <input type="text" class="large" name="author" value="{$AUTHOR}"> |
---|
| 92 | </p> |
---|
[2531] | 93 | |
---|
[13077] | 94 | <p> |
---|
| 95 | <strong>{'Creation date'|@translate}</strong> |
---|
| 96 | <br> |
---|
[28497] | 97 | <input type="hidden" name="date_creation" value="{$DATE_CREATION}"> |
---|
| 98 | <label> |
---|
| 99 | <i class="icon-calendar"></i> |
---|
| 100 | <input type="text" data-datepicker="date_creation" data-datepicker-unset="date_creation_unset" readonly> |
---|
| 101 | </label> |
---|
| 102 | <a href="#" class="icon-cancel-circled" id="date_creation_unset">{'unset'|translate}</a> |
---|
[13077] | 103 | </p> |
---|
| 104 | |
---|
| 105 | <p> |
---|
| 106 | <strong>{'Linked albums'|@translate}</strong> |
---|
| 107 | <br> |
---|
[28542] | 108 | <select data-selectize="categories" data-value="{$associated_albums|@json_encode|escape:html}" |
---|
[28555] | 109 | placeholder="{'Type in a search term'|translate}" |
---|
| 110 | data-default="{$STORAGE_ALBUM}" name="associate[]" multiple style="width:600px;"></select> |
---|
[13077] | 111 | </p> |
---|
| 112 | |
---|
| 113 | <p> |
---|
| 114 | <strong>{'Representation of albums'|@translate}</strong> |
---|
| 115 | <br> |
---|
[28542] | 116 | <select data-selectize="categories" data-value="{$represented_albums|@json_encode|escape:html}" |
---|
[28555] | 117 | placeholder="{'Type in a search term'|translate}" |
---|
[28550] | 118 | name="represent[]" multiple style="width:600px;"></select> |
---|
[13077] | 119 | </p> |
---|
| 120 | |
---|
| 121 | <p> |
---|
| 122 | <strong>{'Tags'|@translate}</strong> |
---|
| 123 | <br> |
---|
[28494] | 124 | <select data-selectize="tags" data-value="{$tag_selection|@json_encode|escape:html}" |
---|
[28555] | 125 | placeholder="{'Type in a search term'|translate}" |
---|
| 126 | data-create="true" name="tags[]" multiple style="width:600px;"</select> |
---|
[13077] | 127 | </p> |
---|
[2531] | 128 | |
---|
[13077] | 129 | <p> |
---|
| 130 | <strong>{'Description'|@translate}</strong> |
---|
| 131 | <br> |
---|
| 132 | <textarea name="description" id="description" class="description">{$DESCRIPTION}</textarea> |
---|
| 133 | </p> |
---|
[2531] | 134 | |
---|
[13077] | 135 | <p> |
---|
| 136 | <strong>{'Who can see this photo?'|@translate}</strong> |
---|
| 137 | <br> |
---|
[2531] | 138 | <select name="level" size="1"> |
---|
| 139 | {html_options options=$level_options selected=$level_options_selected} |
---|
| 140 | </select> |
---|
[13077] | 141 | </p> |
---|
[2531] | 142 | |
---|
[13077] | 143 | <p style="margin:40px 0 0 0"> |
---|
| 144 | <input class="submit" type="submit" value="{'Save Settings'|@translate}" name="submit"> |
---|
| 145 | </p> |
---|
| 146 | </fieldset> |
---|
[2531] | 147 | |
---|
| 148 | </form> |
---|