source: trunk/admin/template/goto/picture_modify.tpl @ 2631

Last change on this file since 2631 was 2614, checked in by patdenice, 16 years ago

Put resizable and growfield scripts on each page where is needed.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 6.4 KB
Line 
1{* $Id: picture_modify.tpl 2614 2008-09-27 21:00:12Z patdenice $ *}
2{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
3
4<script type="text/javascript">
5  jQuery().ready(function(){ldelim}
6    jQuery("textarea").growfield({ldelim}
7      animate: false
8    });
9  });
10</script>
11
12<h2>{'title_picmod'|@translate}</h2>
13
14<img src="{$TN_SRC}" alt="{'thumbnail'|@translate}" class="thumbnail" />
15
16<ul class="categoryActions">
17  {if isset($U_JUMPTO) }
18  <li><a href="{$U_JUMPTO}" title="{'jump to image'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_jump-to.png" class="button" alt="{'jump to image'|@translate}" /></a></li>
19  {/if}
20  <li><a href="{$U_SYNC}" title="{'synchronize metadata'|@translate}" {$TAG_INPUT_ENABLED}><img src="{$themeconf.admin_icon_dir}/sync_metadata.png" class="button" alt="{'synchronize'|@translate}" /></a></li>
21</ul>
22
23<form action="{$F_ACTION}" method="post" id="properties">
24
25  <fieldset>
26    <legend>{'Informations'|@translate}</legend>
27
28    <table>
29
30      <tr>
31        <td><strong>{'Path'|@translate}</strong></td>
32        <td>{$PATH}</td>
33      </tr>
34
35      <tr>
36        <td><strong>{'Post date'|@translate}</strong></td>
37        <td>{$REGISTRATION_DATE}</td>
38      </tr>
39
40      <tr>
41        <td><strong>{'Dimensions'|@translate}</strong></td>
42        <td>{$DIMENSIONS}</td>
43      </tr>
44
45      <tr>
46        <td><strong>{'Filesize'|@translate}</strong></td>
47        <td>{$FILESIZE}</td>
48      </tr>
49
50{if isset($HIGH_FILESIZE) }
51      <tr>
52        <td><strong>{'High filesize'|@translate}</strong></td>
53        <td>{$HIGH_FILESIZE}</td>
54      </tr>
55{/if}
56
57      <tr>
58        <td><strong>{'Storage category'|@translate}</strong></td>
59        <td>{$STORAGE_CATEGORY}</td>
60      </tr>
61
62      {if isset($related_categories) }
63      <tr>
64        <td><strong>{'Linked categories'|@translate}</strong></td>
65        <td>
66          <ul>
67            {foreach from=$related_categories item=name}
68            <li>{$name}</li>
69            {/foreach}
70          </ul>
71        </td>
72      </tr>
73      {/if}
74
75    </table>
76
77  </fieldset>
78
79  <fieldset>
80    <legend>{'Properties'|@translate}</legend>
81
82    <table>
83
84      <tr>
85        <td><strong>{'Name'|@translate}</strong></td>
86        <td><input type="text" name="name" value="{$NAME}" /></td>
87      </tr>
88
89      <tr>
90        <td><strong>{'Author'|@translate}</strong></td>
91        <td><input type="text" name="author" value="{$AUTHOR}" /></td>
92      </tr>
93
94      <tr>
95        <td><strong>{'Creation date'|@translate}</strong></td>
96        <td>
97          <label><input type="radio" name="date_creation_action" value="unset" /> {'unset'|@translate}</label>
98          <input type="radio" name="date_creation_action" value="set" id="date_creation_action_set" /> {'set to'|@translate}
99          <select onmousedown="document.getElementById('date_creation_action_set').checked = true;" name="date_creation_day">
100            <option value="0">--</option>
101            {section name=day start=1 loop=32}
102              <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY_VALUE}selected="selected"{/if}>{$smarty.section.day.index}</option>
103            {/section}
104          </select>
105          <select onmousedown="document.getElementById('date_creation_action_set').checked = true;" name="date_creation_month">
106            {html_options options=$month_list selected=$DATE_CREATION_MONTH_VALUE}
107          </select>
108          <input onmousedown="document.getElementById('date_creation_action_set').checked = true;"
109                 name="date_creation_year"
110                 type="text"
111                 size="4"
112                 maxlength="4"
113                 value="{$DATE_CREATION_YEAR_VALUE}" />
114        </td>
115      </tr>
116
117      <tr>
118        <td><strong>{'Tags'|@translate}</strong></td>
119        <td>{$TAG_SELECTION}</td>
120      </tr>
121
122
123      <tr>
124        <td><strong>{'Description'|@translate}</strong></td>
125        <td><textarea name="description" class="description">{$DESCRIPTION}</textarea></td>
126      </tr>
127
128  <tr>
129    <td><strong>{'Minimum privacy level'|@translate}</strong></td>
130    <td>
131      <select name="level" size="1">
132        {html_options options=$level_options selected=$level_options_selected}
133      </select>
134    </td>
135  </tr>
136
137    </table>
138
139    <p style="text-align:center;">
140      <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}/>
141      <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
142    </p>
143
144  </fieldset>
145
146</form>
147
148<form id="associations" method="post" action="{$F_ACTION}#associations">
149  <fieldset>
150    <legend>{'Association to categories'|@translate}</legend>
151
152    <table class="doubleSelect">
153      <tr>
154        <td>
155          <h3>{'Associated'|@translate}</h3>
156          <select class="categoryList" name="cat_associated[]" multiple="multiple" size="30">
157            {html_options options=$associated_options}
158          </select>
159          <p><input class="submit" type="submit" value="&raquo;" name="dissociate" style="font-size:15px;" {$TAG_INPUT_ENABLED}/></p>
160        </td>
161
162        <td>
163          <h3>{'Dissociated'|@translate}</h3>
164          <select class="categoryList" name="cat_dissociated[]" multiple="multiple" size="30">
165            {html_options options=$dissociated_options}
166          </select>
167          <p><input class="submit" type="submit" value="&laquo;" name="associate" style="font-size:15px;" {$TAG_INPUT_ENABLED}/></p>
168        </td>
169      </tr>
170    </table>
171
172  </fieldset>
173</form>
174
175<form id="representation" method="post" action="{$F_ACTION}#representation">
176  <fieldset>
177    <legend>{'Representation of categories'|@translate}</legend>
178
179    <table class="doubleSelect">
180      <tr>
181        <td>
182          <h3>{'Represents'|@translate}</h3>
183          <select class="categoryList" name="cat_elected[]" multiple="multiple" size="30">
184            {html_options options=$elected_options}
185          </select>
186          <p><input class="submit" type="submit" value="&raquo;" name="dismiss" style="font-size:15px;" {$TAG_INPUT_ENABLED}/></p>
187        </td>
188
189        <td>
190          <h3>{'Does not represent'|@translate}</h3>
191          <select class="categoryList" name="cat_dismissed[]" multiple="multiple" size="30">
192            {html_options options=$dismissed_options}
193          </select>
194          <p><input class="submit" type="submit" value="&laquo;" name="elect" style="font-size:15px;" {$TAG_INPUT_ENABLED}/></p>
195        </td>
196      </tr>
197    </table>
198
199  </fieldset>
200</form>
Note: See TracBrowser for help on using the repository browser.