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