source: trunk/admin/themes/default/template/picture_modify.tpl @ 12796

Last change on this file since 12796 was 12693, checked in by rvelices, 12 years ago

language cleanup (exact duplicates or almost same duplicate - capital/lower case first letter ...)

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