source: extensions/Icy_Picture_Modify/template/icy_picture_modify.tpl

Last change on this file was 16495, checked in by icy, 12 years ago

Version 2.0.0, advance ACL . Code copied from git/master.

I could not use merging with git svn . Stupidly copy-&-paste ;)

File size: 8.1 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  {if isset($U_SYNC) }
50  <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>
51  {/if}
52  {if isset($U_IMAGE_DELETABLE) }
53  <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>
54  {/if}
55  {/if}
56</ul>
57
58<form action="{$F_ACTION}" method="post" id="properties">
59
60  <fieldset>
61    <legend>{'Informations'|@translate}</legend>
62
63    <table>
64
65      <tr>
66        <td><strong>{'Path'|@translate}</strong></td>
67        <td>{$PATH}</td>
68      </tr>
69
70      <tr>
71        <td><strong>{'Post date'|@translate}</strong></td>
72        <td>{$REGISTRATION_DATE}</td>
73      </tr>
74
75      <tr>
76        <td><strong>{'Dimensions'|@translate}</strong></td>
77        <td>{$DIMENSIONS}</td>
78      </tr>
79
80      <tr>
81        <td><strong>{'Filesize'|@translate}</strong></td>
82        <td>{$FILESIZE}</td>
83      </tr>
84
85{if isset($HIGH_FILESIZE) }
86      <tr>
87        <td><strong>{'High filesize'|@translate}</strong></td>
88        <td>{$HIGH_FILESIZE}</td>
89      </tr>
90{/if}
91
92      <tr>
93        <td><strong>{'Storage album'|@translate}</strong></td>
94        <td>{$STORAGE_CATEGORY}</td>
95      </tr>
96
97      {if isset($related_categories) }
98      <tr>
99        <td><strong>{'Linked albums'|@translate}</strong></td>
100        <td>
101          <ul>
102            {foreach from=$related_categories item=name}
103            <li>{$name}</li>
104            {/foreach}
105          </ul>
106        </td>
107      </tr>
108      {/if}
109
110    </table>
111
112  </fieldset>
113
114  <fieldset>
115    <legend>{'Properties'|@translate}</legend>
116
117    <table>
118
119      <tr>
120        <td><strong>{'Name'|@translate}</strong></td>
121        <td><input type="text" class="large" name="name" value="{$NAME}"></td>
122      </tr>
123
124      <tr>
125        <td><strong>{'Author'|@translate}</strong></td>
126        <td><input type="text" class="large" name="author" value="{$AUTHOR}"></td>
127      </tr>
128
129      <tr>
130        <td><strong>{'Creation date'|@translate}</strong></td>
131        <td>
132          <label><input type="radio" name="date_creation_action" value="unset"> {'unset'|@translate}</label>
133          <input type="radio" name="date_creation_action" value="set" id="date_creation_action_set"> {'set to'|@translate}
134          <select id="date_creation_day" name="date_creation_day">
135            <option value="0">--</option>
136            {section name=day start=1 loop=32}
137              <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY_VALUE}selected="selected"{/if}>{$smarty.section.day.index}</option>
138            {/section}
139          </select>
140          <select id="date_creation_month" name="date_creation_month">
141            {html_options options=$month_list selected=$DATE_CREATION_MONTH_VALUE}
142          </select>
143          <input id="date_creation_year"
144                 name="date_creation_year"
145                 type="text"
146                 size="4"
147                 maxlength="4"
148                 value="{$DATE_CREATION_YEAR_VALUE}">
149          <input id="date_creation_linked_date" name="date_creation_linked_date" type="hidden" size="10" disabled="disabled">
150        </td>
151      </tr>
152
153      <tr>
154        <td><strong>{'Tags'|@translate}</strong></td>
155        <td>
156<select id="tags" name="tags">
157{foreach from=$tag_selection item=tag}
158  <option value="{$tag.id}" class="selected">{$tag.name}</option>
159{/foreach}
160</select>
161        </td>
162      </tr>
163
164
165      <tr>
166        <td><strong>{'Description'|@translate}</strong></td>
167        <td><textarea name="description" id="description" class="description">{$DESCRIPTION}</textarea></td>
168      </tr>
169
170  <tr>
171    <td><strong>{'Who can see this photo?'|@translate}</strong></td>
172    <td>
173      <select name="level" size="1">
174        {html_options options=$level_options selected=$level_options_selected}
175      </select>
176    </td>
177  </tr>
178
179    </table>
180
181    <p style="text-align:center;">
182      <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit">
183      <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
184    </p>
185
186  </fieldset>
187
188</form>
189
190<form id="associations" method="post" action="{$F_ACTION}#associations">
191  <fieldset>
192    <legend>{'Linked albums'|@translate}</legend>
193
194    <table class="doubleSelect">
195      <tr>
196        <td>
197          <h3>{'Associated'|@translate}</h3>
198          <select class="categoryList" name="cat_associated[]" multiple="multiple" size="30">
199            {html_options options=$associated_options}
200          </select>
201          <p><input class="submit" type="submit" value="&raquo;" name="dissociate" style="font-size:15px;"></p>
202        </td>
203
204        <td>
205          <h3>{'Dissociated'|@translate}</h3>
206          <select class="categoryList" name="cat_dissociated[]" multiple="multiple" size="30">
207            {html_options options=$dissociated_options}
208          </select>
209          <p><input class="submit" type="submit" value="&laquo;" name="associate" style="font-size:15px;"></p>
210        </td>
211      </tr>
212    </table>
213
214  </fieldset>
215</form>
216
217<form id="representation" method="post" action="{$F_ACTION}#representation">
218  <fieldset>
219    <legend>{'Representation of albums'|@translate}</legend>
220
221    <table class="doubleSelect">
222      <tr>
223        <td>
224          <h3>{'Represents'|@translate}</h3>
225          <select class="categoryList" name="cat_elected[]" multiple="multiple" size="30">
226            {html_options options=$elected_options}
227          </select>
228          <p><input class="submit" type="submit" value="&raquo;" name="dismiss" style="font-size:15px;"></p>
229        </td>
230
231        <td>
232          <h3>{'Does not represent'|@translate}</h3>
233          <select class="categoryList" name="cat_dismissed[]" multiple="multiple" size="30">
234            {html_options options=$dismissed_options}
235          </select>
236          <p><input class="submit" type="submit" value="&laquo;" name="elect" style="font-size:15px;"></p>
237        </td>
238      </tr>
239    </table>
240
241  </fieldset>
242</form>
Note: See TracBrowser for help on using the repository browser.