source: extensions/Icy_Picture_Modify/template/icy_picture_modify.tpl @ 13281

Last change on this file since 13281 was 11934, checked in by icy, 13 years ago

Merge branch 'master' into svn

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