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='jquery.chosen' load='footer' path='themes/default/js/plugins/chosen.jquery.min.js'} |
---|
6 | {combine_css path="themes/default/js/plugins/chosen.css"} |
---|
7 | |
---|
8 | {footer_script}{literal} |
---|
9 | jQuery(document).ready(function() { |
---|
10 | jQuery(".chzn-select").chosen(); |
---|
11 | }); |
---|
12 | {/literal}{/footer_script} |
---|
13 | |
---|
14 | {combine_css path='themes/default/js/plugins/jquery.tokeninput.css'} |
---|
15 | {combine_script id='jquery.tokeninput' load='async' require='jquery' path='themes/default/js/plugins/jquery.tokeninput.js'} |
---|
16 | {footer_script require='jquery.tokeninput'} |
---|
17 | jQuery(document).ready(function() {ldelim} |
---|
18 | jQuery("#tags").tokenInput( |
---|
19 | [{foreach from=$tags item=tag name=tags}{ldelim}"name":"{$tag.name|@escape:'javascript'}","id":"{$tag.id}"{rdelim}{if !$smarty.foreach.tags.last},{/if}{/foreach}], |
---|
20 | {ldelim} |
---|
21 | hintText: '{'Type in a search term'|@translate}', |
---|
22 | noResultsText: '{'No results'|@translate}', |
---|
23 | searchingText: '{'Searching...'|@translate}', |
---|
24 | newText: ' ({'new'|@translate})', |
---|
25 | animateDropdown: false, |
---|
26 | preventDuplicates: true, |
---|
27 | allowFreeTagging: true |
---|
28 | } |
---|
29 | ); |
---|
30 | }); |
---|
31 | {/footer_script} |
---|
32 | |
---|
33 | {footer_script} |
---|
34 | pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set"); |
---|
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 style="vertical-align:top;"> |
---|
61 | <ul style="padding-left:15px;margin:0;"> |
---|
62 | {if isset($U_JUMPTO) } |
---|
63 | <li><a href="{$U_JUMPTO}">{'jump to photo'|@translate} →</a></li> |
---|
64 | {/if} |
---|
65 | {if !url_is_remote($PATH)} |
---|
66 | <li><a href="{$U_SYNC}">{'Synchronize metadata'|@translate}</a></li> |
---|
67 | |
---|
68 | <li><a 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 | <select id="date_creation_day" name="date_creation_day"> |
---|
96 | <option value="0">--</option> |
---|
97 | {section name=day start=1 loop=32} |
---|
98 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY_VALUE}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
99 | {/section} |
---|
100 | </select> |
---|
101 | |
---|
102 | <select id="date_creation_month" name="date_creation_month"> |
---|
103 | {html_options options=$month_list selected=$DATE_CREATION_MONTH_VALUE} |
---|
104 | </select> |
---|
105 | |
---|
106 | <input id="date_creation_year" name="date_creation_year" type="text" size="4" maxlength="4" value="{$DATE_CREATION_YEAR_VALUE}"> |
---|
107 | <input id="date_creation_linked_date" name="date_creation_linked_date" type="hidden" size="10" disabled="disabled"> |
---|
108 | <input name="date_creation_time" type="hidden" value="{$DATE_CREATION_TIME_VALUE}"> |
---|
109 | <a href="#" id="unset_date_creation" style="display:none">unset</a> |
---|
110 | </p> |
---|
111 | |
---|
112 | <p> |
---|
113 | <strong>{'Linked albums'|@translate}</strong> |
---|
114 | <br> |
---|
115 | <select data-placeholder="Select albums..." class="chzn-select" multiple style="width:700px;" name="associate[]"> |
---|
116 | {html_options options=$associate_options selected=$associate_options_selected} |
---|
117 | </select> |
---|
118 | </p> |
---|
119 | |
---|
120 | <p> |
---|
121 | <strong>{'Representation of albums'|@translate}</strong> |
---|
122 | <br> |
---|
123 | <select data-placeholder="Select albums..." class="chzn-select" multiple style="width:700px;" name="represent[]"> |
---|
124 | {html_options options=$represent_options selected=$represent_options_selected} |
---|
125 | </select> |
---|
126 | </p> |
---|
127 | |
---|
128 | <p> |
---|
129 | <strong>{'Tags'|@translate}</strong> |
---|
130 | <br> |
---|
131 | <select id="tags" name="tags"> |
---|
132 | {foreach from=$tag_selection item=tag} |
---|
133 | <option value="{$tag.id}" class="selected">{$tag.name}</option> |
---|
134 | {/foreach} |
---|
135 | </select> |
---|
136 | </p> |
---|
137 | |
---|
138 | <p> |
---|
139 | <strong>{'Description'|@translate}</strong> |
---|
140 | <br> |
---|
141 | <textarea name="description" id="description" class="description">{$DESCRIPTION}</textarea> |
---|
142 | </p> |
---|
143 | |
---|
144 | <p> |
---|
145 | <strong>{'Who can see this photo?'|@translate}</strong> |
---|
146 | <br> |
---|
147 | <select name="level" size="1"> |
---|
148 | {html_options options=$level_options selected=$level_options_selected} |
---|
149 | </select> |
---|
150 | </p> |
---|
151 | |
---|
152 | <p style="margin:40px 0 0 0"> |
---|
153 | <input class="submit" type="submit" value="{'Save Settings'|@translate}" name="submit"> |
---|
154 | </p> |
---|
155 | </fieldset> |
---|
156 | |
---|
157 | </form> |
---|