1 | {include file='include/autosize.inc.tpl'} |
---|
2 | {include file='include/datepicker.inc.tpl'} |
---|
3 | {include file='include/colorbox.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 | {* <!-- TAGS --> *} |
---|
13 | var tagsCache = new TagsCache({ |
---|
14 | serverKey: '{$CACHE_KEYS.tags}', |
---|
15 | serverId: '{$CACHE_KEYS._hash}', |
---|
16 | rootUrl: '{$ROOT_URL}' |
---|
17 | }); |
---|
18 | |
---|
19 | tagsCache.selectize(jQuery('[data-selectize=tags]')); |
---|
20 | |
---|
21 | {* <!-- DATEPICKER --> *} |
---|
22 | jQuery(function(){ {* <!-- onLoad needed to wait localization loads --> *} |
---|
23 | jQuery('[data-datepicker]').pwgDatepicker({ showTimepicker: true }); |
---|
24 | }); |
---|
25 | |
---|
26 | {* <!-- THUMBNAILS --> *} |
---|
27 | jQuery("a.preview-box").colorbox(); |
---|
28 | }()); |
---|
29 | {/footer_script} |
---|
30 | |
---|
31 | <h2>{'Batch Manager'|@translate}</h2> |
---|
32 | |
---|
33 | <form action="{$F_ACTION}" method="POST"> |
---|
34 | <fieldset> |
---|
35 | <legend>{'Display options'|@translate}</legend> |
---|
36 | <p>{'photos per page'|@translate} : |
---|
37 | <a href="{$U_ELEMENTS_PAGE}&display=5">5</a> |
---|
38 | | <a href="{$U_ELEMENTS_PAGE}&display=10">10</a> |
---|
39 | | <a href="{$U_ELEMENTS_PAGE}&display=50">50</a> |
---|
40 | | <a href="{$U_ELEMENTS_PAGE}&display=all">{'all'|@translate}</a> |
---|
41 | </p> |
---|
42 | |
---|
43 | </fieldset> |
---|
44 | |
---|
45 | {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
46 | |
---|
47 | {if !empty($elements) } |
---|
48 | <div><input type="hidden" name="element_ids" value="{$ELEMENT_IDS}"></div> |
---|
49 | {foreach from=$elements item=element} |
---|
50 | <fieldset class="elementEdit"> |
---|
51 | <legend>{$element.LEGEND}</legend> |
---|
52 | |
---|
53 | <span class="thumb"> |
---|
54 | <a href="{$element.FILE_SRC}" class="preview-box" title="{$element.LEGEND|@htmlspecialchars}"><img src="{$element.TN_SRC}" alt=""></a> |
---|
55 | <br/> |
---|
56 | <a href="{$element.U_EDIT}">{'Edit'|@translate}</a> |
---|
57 | </span> |
---|
58 | |
---|
59 | <table> |
---|
60 | |
---|
61 | <tr> |
---|
62 | <td><strong>{'Title'|@translate}</strong></td> |
---|
63 | <td><input type="text" class="large" name="name-{$element.id}" value="{$element.NAME}"></td> |
---|
64 | </tr> |
---|
65 | |
---|
66 | <tr> |
---|
67 | <td><strong>{'Author'|@translate}</strong></td> |
---|
68 | <td><input type="text" class="large" name="author-{$element.id}" value="{$element.AUTHOR}"></td> |
---|
69 | </tr> |
---|
70 | |
---|
71 | <tr> |
---|
72 | <td><strong>{'Creation date'|@translate}</strong></td> |
---|
73 | <td> |
---|
74 | <input type="hidden" name="date_creation-{$element.id}" value="{$element.DATE_CREATION}"> |
---|
75 | <label> |
---|
76 | <i class="icon-calendar"></i> |
---|
77 | <input type="text" data-datepicker="date_creation-{$element.id}" data-datepicker-unset="date_creation_unset-{$element.id}" readonly> |
---|
78 | </label> |
---|
79 | <a href="#" class="icon-cancel-circled" id="date_creation_unset-{$element.id}">{'unset'|translate}</a> |
---|
80 | </td> |
---|
81 | </tr> |
---|
82 | <tr> |
---|
83 | <td><strong>{'Who can see this photo?'|@translate}</strong></td> |
---|
84 | <td> |
---|
85 | <select name="level-{$element.id}"> |
---|
86 | {html_options options=$level_options selected=$element.LEVEL} |
---|
87 | </select> |
---|
88 | </td> |
---|
89 | </tr> |
---|
90 | |
---|
91 | <tr> |
---|
92 | <td><strong>{'Tags'|@translate}</strong></td> |
---|
93 | <td> |
---|
94 | <select data-selectize="tags" data-value="{$element.TAGS|@json_encode|escape:html}" |
---|
95 | placeholder="{'Type in a search term'|translate}" |
---|
96 | data-create="true" name="tags-{$element.id}[]" multiple style="width:500px;"></select> |
---|
97 | </td> |
---|
98 | </tr> |
---|
99 | |
---|
100 | <tr> |
---|
101 | <td><strong>{'Description'|@translate}</strong></td> |
---|
102 | <td><textarea cols="50" rows="5" name="description-{$element.id}" id="description-{$element.id}" class="description">{$element.DESCRIPTION}</textarea></td> |
---|
103 | </tr> |
---|
104 | |
---|
105 | </table> |
---|
106 | |
---|
107 | </fieldset> |
---|
108 | {/foreach} |
---|
109 | |
---|
110 | {if !empty($navbar)}{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
111 | |
---|
112 | <p> |
---|
113 | <input type="submit" value="{'Submit'|@translate}" name="submit"> |
---|
114 | <input type="reset" value="{'Reset'|@translate}"> |
---|
115 | </p> |
---|
116 | {/if} |
---|
117 | |
---|
118 | </form> |
---|