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

Last change on this file since 11056 was 11056, checked in by mistic100, 13 years ago

bug:2278 fixed (merge r10970 r11008 r11039 from trunk) replace FCBKcomplete by TokenInput to avoid 3rd tag issue on autocomplete

  • Property svn:eol-style set to LF
File size: 7.4 KB
RevLine 
[2641]1{include file='include/autosize.inc.tpl'}
[2718]2{include file='include/dbselect.inc.tpl'}
[2632]3{include file='include/datepicker.inc.tpl'}
4
[11056]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}","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  );
[7995]20});
[11056]21{/footer_script}
[5067]22
[7995]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}
[2632]26
[8723]27<h2>{'Edit photo information'|@translate}</h2>
[2531]28
[5021]29<img src="{$TN_SRC}" alt="{'Thumbnail'|@translate}" class="Thumbnail">
[2531]30
31<ul class="categoryActions">
32  {if isset($U_JUMPTO) }
[8682]33  <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>
[2531]34  {/if}
[8014]35  {if !url_is_remote($PATH)}
[8128]36  <li><a href="{$U_SYNC}" title="{'synchronize'|@translate}"><img src="{$themeconf.admin_icon_dir}/sync_metadata.png" class="button" alt="{'synchronize'|@translate}"></a></li>
[8764]37
38  <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>
[2777]39  {/if}
[2531]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 filesize'|@translate}</strong></td>
72        <td>{$HIGH_FILESIZE}</td>
73      </tr>
74{/if}
75
76      <tr>
[6969]77        <td><strong>{'Storage album'|@translate}</strong></td>
[2531]78        <td>{$STORAGE_CATEGORY}</td>
79      </tr>
80
81      {if isset($related_categories) }
82      <tr>
[6969]83        <td><strong>{'Linked albums'|@translate}</strong></td>
[2531]84        <td>
85          <ul>
86            {foreach from=$related_categories item=name}
87            <li>{$name}</li>
88            {/foreach}
89          </ul>
90        </td>
91      </tr>
92      {/if}
93
94    </table>
95
96  </fieldset>
97
98  <fieldset>
99    <legend>{'Properties'|@translate}</legend>
100
101    <table>
102
103      <tr>
104        <td><strong>{'Name'|@translate}</strong></td>
[3185]105        <td><input type="text" class="large" name="name" value="{$NAME}"></td>
[2531]106      </tr>
107
108      <tr>
109        <td><strong>{'Author'|@translate}</strong></td>
[3185]110        <td><input type="text" class="large" name="author" value="{$AUTHOR}"></td>
[2531]111      </tr>
112
113      <tr>
114        <td><strong>{'Creation date'|@translate}</strong></td>
115        <td>
[3185]116          <label><input type="radio" name="date_creation_action" value="unset"> {'unset'|@translate}</label>
117          <input type="radio" name="date_creation_action" value="set" id="date_creation_action_set"> {'set to'|@translate}
[2680]118          <select id="date_creation_day" name="date_creation_day">
[2531]119            <option value="0">--</option>
120            {section name=day start=1 loop=32}
121              <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY_VALUE}selected="selected"{/if}>{$smarty.section.day.index}</option>
122            {/section}
123          </select>
[2680]124          <select id="date_creation_month" name="date_creation_month">
[2531]125            {html_options options=$month_list selected=$DATE_CREATION_MONTH_VALUE}
126          </select>
[2680]127          <input id="date_creation_year"
[2531]128                 name="date_creation_year"
129                 type="text"
130                 size="4"
131                 maxlength="4"
[3185]132                 value="{$DATE_CREATION_YEAR_VALUE}">
133          <input id="date_creation_linked_date" name="date_creation_linked_date" type="hidden" size="10" disabled="disabled">
[2531]134        </td>
135      </tr>
136
137      <tr>
138        <td><strong>{'Tags'|@translate}</strong></td>
[5067]139        <td>
140<select id="tags" name="tags">
[11056]141{foreach from=$tag_selection item=tag}
142  <option value="{$tag.id}" class="selected">{$tag.name}</option>
[5067]143{/foreach}
144</select>
145        </td>
[2531]146      </tr>
147
148
149      <tr>
150        <td><strong>{'Description'|@translate}</strong></td>
[2674]151        <td><textarea name="description" id="description" class="description">{$DESCRIPTION}</textarea></td>
[2531]152      </tr>
153
154  <tr>
[6025]155    <td><strong>{'Who can see this photo?'|@translate}</strong></td>
[2531]156    <td>
157      <select name="level" size="1">
158        {html_options options=$level_options selected=$level_options_selected}
159      </select>
160    </td>
161  </tr>
162
163    </table>
164
165    <p style="text-align:center;">
[8128]166      <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit">
[3185]167      <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
[2531]168    </p>
169
170  </fieldset>
171
172</form>
173
174<form id="associations" method="post" action="{$F_ACTION}#associations">
175  <fieldset>
[6993]176    <legend>{'Linked albums'|@translate}</legend>
[2531]177
178    <table class="doubleSelect">
179      <tr>
180        <td>
181          <h3>{'Associated'|@translate}</h3>
182          <select class="categoryList" name="cat_associated[]" multiple="multiple" size="30">
183            {html_options options=$associated_options}
184          </select>
[8128]185          <p><input class="submit" type="submit" value="&raquo;" name="dissociate" style="font-size:15px;"></p>
[2531]186        </td>
187
188        <td>
189          <h3>{'Dissociated'|@translate}</h3>
190          <select class="categoryList" name="cat_dissociated[]" multiple="multiple" size="30">
191            {html_options options=$dissociated_options}
192          </select>
[8128]193          <p><input class="submit" type="submit" value="&laquo;" name="associate" style="font-size:15px;"></p>
[2531]194        </td>
195      </tr>
196    </table>
197
198  </fieldset>
199</form>
200
201<form id="representation" method="post" action="{$F_ACTION}#representation">
202  <fieldset>
[6993]203    <legend>{'Representation of albums'|@translate}</legend>
[2531]204
205    <table class="doubleSelect">
206      <tr>
207        <td>
208          <h3>{'Represents'|@translate}</h3>
209          <select class="categoryList" name="cat_elected[]" multiple="multiple" size="30">
210            {html_options options=$elected_options}
211          </select>
[8128]212          <p><input class="submit" type="submit" value="&raquo;" name="dismiss" style="font-size:15px;"></p>
[2531]213        </td>
214
215        <td>
216          <h3>{'Does not represent'|@translate}</h3>
217          <select class="categoryList" name="cat_dismissed[]" multiple="multiple" size="30">
218            {html_options options=$dismissed_options}
219          </select>
[8128]220          <p><input class="submit" type="submit" value="&laquo;" name="elect" style="font-size:15px;"></p>
[2531]221        </td>
222      </tr>
223    </table>
224
225  </fieldset>
226</form>
Note: See TracBrowser for help on using the repository browser.