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

Last change on this file since 13580 was 13576, checked in by plg, 12 years ago

bug fixed: allow double quotes in photo title

  • Property svn:eol-style set to LF
File size: 5.2 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
[13077]5{combine_script id='jquery.chosen' load='footer' path='themes/default/js/plugins/chosen.jquery.min.js'}
6{combine_css path="themes/default/js/plugins/chosen.css"}
7
8{footer_script}{literal}
9jQuery(document).ready(function() {
10  jQuery(".chzn-select").chosen();
11});
12{/literal}{/footer_script}
13
[10970]14{combine_script id='jquery.tokeninput' load='async' require='jquery' path='themes/default/js/plugins/jquery.tokeninput.js'}
[11039]15{footer_script require='jquery.tokeninput'}
16jQuery(document).ready(function() {ldelim}
17  jQuery("#tags").tokenInput(
[11212]18    [{foreach from=$tags item=tag name=tags}{ldelim}"name":"{$tag.name|@escape:'javascript'}","id":"{$tag.id}"{rdelim}{if !$smarty.foreach.tags.last},{/if}{/foreach}],
[11039]19    {ldelim}
20      hintText: '{'Type in a search term'|@translate}',
21      noResultsText: '{'No results'|@translate}',
22      searchingText: '{'Searching...'|@translate}',
23      newText: ' ({'new'|@translate})',
24      animateDropdown: false,
25      preventDuplicates: true,
26      allowCreation: true
27    }
28  );
[7995]29});
[11039]30{/footer_script}
[5067]31
[7995]32{footer_script}
33pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set");
34{/footer_script}
[2632]35
[13077]36<h2>{$TITLE} &#8250; {'Edit photo'|@translate} {$TABSHEET_TITLE}</h2>
[2531]37
[13077]38<form action="{$F_ACTION}" method="post" id="catModify">
[2531]39
40  <fieldset>
41    <legend>{'Informations'|@translate}</legend>
42
43    <table>
44
45      <tr>
[13077]46        <td id="albumThumbnail">
[13084]47          <img src="{$TN_SRC}" alt="{'Thumbnail'|@translate}" class="Thumbnail">
[13077]48        </td>
[13086]49        <td id="albumLinks" style="width:400px;vertical-align:top;">
50          <ul style="padding-left:15px;margin:0;">
[13084]51            <li>{$INTRO.file}</li>
[13086]52            <li>{$INTRO.add_date}</li>
53            <li>{$INTRO.added_by}</li>
[13084]54            <li>{$INTRO.size}</li>
[13086]55            <li>{$INTRO.stats}</li>
[13084]56            <li>{$INTRO.id}</li>
57          </ul>
58        </td>
59        <td style="vertical-align:top;">
[13086]60          <ul style="padding-left:15px;margin:0;">
[13084]61          {if isset($U_JUMPTO) }
62            <li><a href="{$U_JUMPTO}">{'jump to photo'|@translate} →</a></li>
63          {/if}
64          {if !url_is_remote($PATH)}
65            <li><a href="{$U_SYNC}">{'Synchronize metadata'|@translate}</a></li>
[2531]66
[13084]67            <li><a href="{$U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">{'delete photo'|@translate}</a></li>
68          {/if}
69          </ul>
[2531]70        </td>
71      </tr>
72    </table>
73
74  </fieldset>
75
76  <fieldset>
77    <legend>{'Properties'|@translate}</legend>
78
[13077]79    <p>
80      <strong>{'Title'|@translate}</strong>
81      <br>
[13576]82      <input type="text" class="large" name="name" value="{$NAME|@escape}">
[13077]83    </p>
[2531]84
[13077]85    <p>
86      <strong>{'Author'|@translate}</strong>
87      <br>
88      <input type="text" class="large" name="author" value="{$AUTHOR}">
89    </p>
[2531]90
[13077]91    <p>
92      <strong>{'Creation date'|@translate}</strong>
93      <br>
94      <select id="date_creation_day" name="date_creation_day">
95        <option value="0">--</option>
96{section name=day start=1 loop=32}
97        <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY_VALUE}selected="selected"{/if}>{$smarty.section.day.index}</option>
98{/section}
99      </select>
[2531]100
[13077]101      <select id="date_creation_month" name="date_creation_month">
102        {html_options options=$month_list selected=$DATE_CREATION_MONTH_VALUE}
103      </select>
[2531]104
[13077]105      <input id="date_creation_year" name="date_creation_year" type="text" size="4" maxlength="4" value="{$DATE_CREATION_YEAR_VALUE}">
106      <input id="date_creation_linked_date" name="date_creation_linked_date" type="hidden" size="10" disabled="disabled">
107    <a href="#" id="unset_date_creation" style="display:none">unset</a>
108    </p>
109
110    <p>
111      <strong>{'Linked albums'|@translate}</strong>
112      <br>
113      <select data-placeholder="Select albums..." class="chzn-select" multiple style="width:700px;" name="associate[]">
114        {html_options options=$associate_options selected=$associate_options_selected}
115      </select>
116    </p>
117
118    <p>
119      <strong>{'Representation of albums'|@translate}</strong>
120      <br>
121      <select data-placeholder="Select albums..." class="chzn-select" multiple style="width:700px;" name="represent[]">
122        {html_options options=$represent_options selected=$represent_options_selected}
123      </select>
124    </p>
125
126    <p>
127      <strong>{'Tags'|@translate}</strong>
128      <br>
[5067]129<select id="tags" name="tags">
[11039]130{foreach from=$tag_selection item=tag}
[10970]131  <option value="{$tag.id}" class="selected">{$tag.name}</option>
[5067]132{/foreach}
133</select>
[13077]134    </p>
[2531]135
[13077]136    <p>
137      <strong>{'Description'|@translate}</strong>
138      <br>
139      <textarea name="description" id="description" class="description">{$DESCRIPTION}</textarea>
140    </p>
[2531]141
[13077]142    <p>
143      <strong>{'Who can see this photo?'|@translate}</strong>
144      <br>
[2531]145      <select name="level" size="1">
146        {html_options options=$level_options selected=$level_options_selected}
147      </select>
[13077]148   </p>
[2531]149
[13077]150  <p style="margin:40px 0 0 0">
151    <input class="submit" type="submit" value="{'Save Settings'|@translate}" name="submit">
152  </p>
153</fieldset>
[2531]154
155</form>
Note: See TracBrowser for help on using the repository browser.