source: branches/2.2/admin/themes/default/template/picture_modify.tpl @ 10111

Last change on this file since 10111 was 10111, checked in by patdenice, 13 years ago

merge r10110 from trunk to branch 2.2
bug:2251
Bug corrected for fcbkcomplete

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