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

Revision 13084, 5.1 KB checked in by mistic100, 8 years ago (diff)

feature 2564: display picture infos as list

  • Property svn:eol-style set to LF
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.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
14{combine_script id='jquery.tokeninput' load='async' require='jquery' path='themes/default/js/plugins/jquery.tokeninput.js'}
15{footer_script require='jquery.tokeninput'}
16jQuery(document).ready(function() {ldelim}
17  jQuery("#tags").tokenInput(
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}],
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  );
29});
30{/footer_script}
31
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}
35
36<h2>{$TITLE} &#8250; {'Edit photo'|@translate} {$TABSHEET_TITLE}</h2>
37
38<form action="{$F_ACTION}" method="post" id="catModify">
39
40  <fieldset>
41    <legend>{'Informations'|@translate}</legend>
42
43    <table>
44
45      <tr>
46        <td id="albumThumbnail">
47          <img src="{$TN_SRC}" alt="{'Thumbnail'|@translate}" class="Thumbnail">
48        </td>
49        <td id="albumLinks" style="width:500px;vertical-align:top;">
50          <ul>
51            <li>{$INTRO.file}</li>
52            <li>{$INTRO.added}</li>
53            <li>{$INTRO.size}</li>
54            <li>{$INTRO.hits}</li>
55            {if $INTRO.rate}<li>{$INTRO.rate}</li>{/if}
56            <li>{$INTRO.id}</li>
57          </ul>
58        </td>
59        <td style="vertical-align:top;">
60          <ul style="padding-left:15px;">
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>
66
67            <li><a href="{$U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">{'delete photo'|@translate}</a></li>
68          {/if}
69          </ul>
70        </td>
71      </tr>
72    </table>
73
74  </fieldset>
75
76  <fieldset>
77    <legend>{'Properties'|@translate}</legend>
78
79    <p>
80      <strong>{'Title'|@translate}</strong>
81      <br>
82      <input type="text" class="large" name="name" value="{$NAME}">
83    </p>
84
85    <p>
86      <strong>{'Author'|@translate}</strong>
87      <br>
88      <input type="text" class="large" name="author" value="{$AUTHOR}">
89    </p>
90
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>
100
101      <select id="date_creation_month" name="date_creation_month">
102        {html_options options=$month_list selected=$DATE_CREATION_MONTH_VALUE}
103      </select>
104
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>
129<select id="tags" name="tags">
130{foreach from=$tag_selection item=tag}
131  <option value="{$tag.id}" class="selected">{$tag.name}</option>
132{/foreach}
133</select>
134    </p>
135
136    <p>
137      <strong>{'Description'|@translate}</strong>
138      <br>
139      <textarea name="description" id="description" class="description">{$DESCRIPTION}</textarea>
140    </p>
141
142    <p>
143      <strong>{'Who can see this photo?'|@translate}</strong>
144      <br>
145      <select name="level" size="1">
146        {html_options options=$level_options selected=$level_options_selected}
147      </select>
148   </p>
149
150  <p style="margin:40px 0 0 0">
151    <input class="submit" type="submit" value="{'Save Settings'|@translate}" name="submit">
152  </p>
153</fieldset>
154
155</form>
Note: See TracBrowser for help on using the repository browser.