source: trunk/admin/themes/default/template/cat_modify.tpl @ 9051

Last change on this file since 9051 was 9051, checked in by plg, 13 years ago

bug 2172 fixed: the "sort order" options are removed from the album administration main page.

bug 2173 fixed: rename "manual order" into "automatic order" and "by rank" into "manual order"

bug 2174 fixed: only show the automatic order options when it's relevant

new icon for the "manage photo order" screen

hide the numeric rank below the thumbnail (it is confusing for users)

tell users that you can drag'n drop to reorder photos

bug fixed: the "apply to sub-albums" options for photo orders was not working

  • Property svn:eol-style set to LF
File size: 6.6 KB
Line 
1
2{include file='include/autosize.inc.tpl'}
3{include file='include/resize.inc.tpl'}
4
5<div class="titrePage">
6  <h2>{'Edit album'|@translate}</h2>
7</div>
8
9<h3>{$CATEGORIES_NAV}</h3>
10
11<ul class="categoryActions">
12  {if cat_admin_access($CAT_ID)}
13  <li><a href="{$U_JUMPTO}" title="{'jump to album'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_jump-to.png" class="button" alt="{'jump to album'|@translate}"></a></li>
14  {/if}
15  {if isset($U_MANAGE_ELEMENTS) }
16  <li><a href="{$U_MANAGE_ELEMENTS}" title="{'manage album photos'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_elements.png" class="button" alt="{'Photos'|@translate}"></a></li>
17  {/if}
18  <li><a href="{$U_MANAGE_RANKS}" title="{'manage photo ranks'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/ranks.png" class="button" alt="{'ranks'|@translate}"></a></li>
19  <li><a href="{$U_CHILDREN}" title="{'manage sub-albums'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_children.png" class="button" alt="{'sub-albums'|@translate}"></a></li>
20  {if isset($U_MANAGE_PERMISSIONS) }
21  <li><a href="{$U_MANAGE_PERMISSIONS}" title="{'edit album permissions'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_permissions.png" class="button" alt="{'Permissions'|@translate}"></a></li>
22  {/if}
23  {if isset($U_DELETE) }
24  <li><a href="{$U_DELETE}" title="{'delete album'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_delete.png" class="button" alt="{'delete album'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"></a></li>
25  {/if}
26</ul>
27
28<form action="{$F_ACTION}" method="POST" id="catModify">
29
30<fieldset>
31  <legend>{'Informations'|@translate}</legend>
32  <table>
33
34    {if isset($CAT_FULL_DIR) }
35    <tr>
36      <td><strong>{'Directory'|@translate}</strong></td>
37      <td class="row1">{$CAT_FULL_DIR}</td>
38    </tr>
39    {/if}
40   
41    <tr>
42      <td><strong>{'Name'|@translate}</strong></td>
43      <td>
44        <input type="text" class="large" name="name" value="{$CAT_NAME}" maxlength="60">
45      </td>
46    </tr>
47    <tr>
48      <td><strong>{'Description'|@translate}</strong></td>
49      <td>
50        <textarea cols="50" rows="5" name="comment" id="comment" class="description">{$CAT_COMMENT}</textarea>
51      </td>
52    </tr>
53  </table>
54</fieldset>
55
56{if isset($move_cat_options) }
57<fieldset id="move">
58  <legend>{'Move'|@translate}</legend>
59  {'Parent album'|@translate}
60  <select class="categoryDropDown" name="parent">
61    <option value="0">------------</option>
62    {html_options options=$move_cat_options selected=$move_cat_options_selected }
63  </select>
64</fieldset>
65{/if}
66
67<fieldset id="options">
68  <legend>{'Options'|@translate}</legend>
69  <table>
70    <tr>
71      <td><strong>{'Access type'|@translate}</strong>
72      <td>
73        {html_radios name='status' values=$status_values output=$status_values|translate selected=$CAT_STATUS}
74      </td>
75    </tr>
76    <tr>
77      <td><strong>{'Lock'|@translate}</strong>
78      <td>
79        {html_radios name='visible' values='true,false'|@explode output='No,Yes'|@explode|translate selected=$CAT_VISIBLE}
80      </td>
81    </tr>
82    <tr>
83      <td><strong>{'Comments'|@translate}</strong>
84      <td>
85        {html_radios name='commentable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_COMMENTABLE}
86      </td>
87    </tr>
88  </table>
89</fieldset>
90
91<p style="text-align:center;">
92  <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit">
93  <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
94</p>
95
96{if isset($representant) }
97<fieldset id="representant">
98  <legend>{'Representant'|@translate}</legend>
99  <table>
100    <tr>
101      <td align="center">
102        {if isset($representant.picture) }
103        <a href="{$representant.picture.URL}"><img src="{$representant.picture.SRC}" alt="" class="miniature"></a>
104        {else}
105        <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_representant_random.png" class="button" alt="{'Random photo'|@translate}" class="miniature">
106        {/if}
107      </td>
108      <td>
109        {if $representant.ALLOW_SET_RANDOM }
110        <p><input class="submit" type="submit" name="set_random_representant" value="{'Find a new representant by random'|@translate}"></p>
111        {/if}
112
113        {if isset($representant.ALLOW_DELETE) }
114        <p><input class="submit" type="submit" name="delete_representant" value="{'Delete Representant'|@translate}"></p>
115        {/if}
116      </td>
117    </tr>
118  </table>
119</fieldset>
120{/if}
121
122</form>
123
124<form action="{$F_ACTION}" method="POST" id="links">
125
126<fieldset id="linkAllNew">
127  <legend>{'Link all album photos to a new album'|@translate}</legend>
128
129  <table>
130    <tr>
131      <td>{'Virtual album name'|@translate}</td>
132      <td><input type="text" class="large" name="virtual_name"></td>
133    </tr>
134
135    <tr>
136      <td>{'Parent album'|@translate}</td>
137      <td>
138        <select class="categoryDropDown" name="parent">
139          <option value="0">------------</option>
140          {html_options options=$create_new_parent_options }
141        </select>
142      </td>
143    </tr>
144  </table>
145
146  <p>
147    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd">
148    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
149  </p>
150
151</fieldset>
152
153<fieldset id="linkAllExist">
154  <legend>{'Link all album photos to some existing albums'|@translate}</legend>
155
156  <table>
157    <tr>
158      <td>{'Albums'|@translate}</td>
159      <td>
160        <select class="categoryList" name="destinations[]" multiple="multiple" size="5">
161          {html_options options=$category_destination_options }
162        </select>
163      </td>
164    </tr>
165  </table>
166
167  <p>
168    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitDestinations">
169    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
170  </p>
171
172</fieldset>
173
174{if isset($group_mail_options)}
175<fieldset id="emailCatInfo">
176  <legend>{'Send an information email to group members'|@translate}</legend>
177
178  <table>
179    <tr>
180      <td><strong>{'Group'|@translate}</strong></td>
181      <td>
182        <select name="group">
183          {html_options options=$group_mail_options}
184        </select>
185      </td>
186    </tr>
187    <tr>
188      <td><strong>{'Mail content'|@translate}</strong></td>
189      <td>
190        <textarea cols="50" rows="5" name="mail_content" id="mail_content" class="description">{$MAIL_CONTENT}</textarea>
191      </td>
192    </tr>
193
194  </table>
195
196  <p>
197    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitEmail">
198    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
199  </p>
200
201</fieldset>
202{/if}
203
204</form>
Note: See TracBrowser for help on using the repository browser.