source: trunk/template/yoga/admin/cat_modify.tpl @ 2294

Last change on this file since 2294 was 2286, checked in by rvelices, 16 years ago
  • admin/notification_by_mail goes smarty - THE LAST ONE :-) :-)
  • get rid of user_list warnings
  • some code reorganisation in template class + explode modifier
  • minor template and language changes in search.tpl and cat_modify.tpl
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 7.7 KB
Line 
1{* $Id: cat_modify.tpl 2286 2008-03-20 00:35:36Z rvelices $ *}
2<div class="titrePage">
3  <ul class="categoryActions">
4    <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li>
5  </ul>
6  <h2>{'title_edit_cat'|@translate}</h2>
7</div>
8
9<h3>{$CATEGORIES_NAV}</h3>
10
11<ul class="categoryActions">
12  <li><a href="{$U_JUMPTO}" title="{'jump to category'|@translate}"><img src="{$themeconf.icon_dir}/category_jump-to.png" class="button" alt="{'jump to category'|@translate}" /></a></li>
13  {if isset($U_MANAGE_ELEMENTS) }
14  <li><a href="{$U_MANAGE_ELEMENTS}" title="{'manage category elements'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/category_elements.png" class="button" alt="{'elements'|@translate}" /></a></li>
15  {/if}
16  <li><a href="{$U_CHILDREN}" title="{'manage sub-categories'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/category_children.png" class="button" alt="{'sub-categories'|@translate}" /></a></li>
17  {if isset($U_MANAGE_PERMISSIONS) }
18  <li><a href="{$U_MANAGE_PERMISSIONS}" title="{'edit category permissions'|@translate}" ><img src="{$ROOT_URL}{$themeconf.icon_dir}/category_permissions.png" class="button" alt="{'permissions'|@translate}" /></a></li>
19  {/if}
20  {if isset($U_DELETE) }
21  <li><a href="{$U_DELETE}" title="{'delete category'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');"><img src="{$ROOT_URL}{$themeconf.icon_dir}/category_delete.png" class="button" alt="{'delete'|@translate}" /></a></li>
22  {/if}
23</ul>
24
25<form action="{$F_ACTION}" method="POST" id="catModify">
26
27<fieldset>
28  <legend>{'Informations'|@translate}</legend>
29  <table>
30
31    {if isset($CAT_FULL_DIR) }
32    <tr>
33      <td><strong>{'storage'|@translate}</strong></td>
34      <td class="row1">{$CAT_FULL_DIR}</td>
35    </tr>
36    {/if}
37   
38    <tr>
39      <td><strong>{'name'|@translate}</strong></td>
40      <td>
41        <input type="text" name="name" value="{$CAT_NAME}" maxlength="60"/>
42      </td>
43    </tr>
44    <tr>
45      <td><strong>{'description'|@translate}</strong></td>
46      <td>
47        <textarea cols="50" rows="5" name="comment" class="description">{$CAT_COMMENT}</textarea>
48      </td>
49    </tr>
50  </table>
51</fieldset>
52
53{if isset($move_cat_options) }
54<fieldset id="move">
55  <legend>{'Move'|@translate}</legend>
56  {'Parent category'|@translate}
57  <select class="categoryDropDown" name="parent">
58    <option value="0">------------</option>
59    {html_options options=$move_cat_options selected=$move_cat_options_selected }
60  </select>
61</fieldset>
62{/if}
63
64<fieldset id="options">
65  <legend>{'Options'|@translate}</legend>
66  <table>
67    <tr>
68      <td><strong>{'conf_access'|@translate}</strong>
69      <td>
70        {html_radios name='status' values=$status_values output=$status_values|translate selected=$CAT_STATUS}
71      </td>
72    </tr>
73    <tr>
74      <td><strong>{'lock'|@translate}</strong>
75      <td>
76        {html_radios name='visible' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_VISIBLE}
77      </td>
78    </tr>
79    <tr>
80      <td><strong>{'comments'|@translate}</strong>
81      <td>
82        {html_radios name='commentable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_COMMENTABLE}
83      </td>
84    </tr>
85    {if isset($SHOW_UPLOADABLE) }
86    <tr>
87      <td><strong>{'editcat_uploadable'|@translate}</strong>
88      <td>
89        {html_radios name='uploadable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_UPLOADABLE}
90      </td>
91    </tr>
92    {/if}
93  </table>
94</fieldset>
95
96<fieldset id="image_order">
97  <legend>{'Sort order'|@translate}</legend>
98  <input type="checkbox" name="image_order_default" id="image_order_default" {$IMG_ORDER_DEFAULT} />
99  <label for="image_order_default">{'Use default sort order'|@translate}</label>
100  <br/>
101  <input type="checkbox" name="image_order_subcats" id="image_order_subcats" />
102  <label for="image_order_subcats">{'Apply to subcategories'|@translate}</label>
103  <br/>
104 
105  {foreach from=$image_orders item=order}
106    <select name="order_field_{$order.ID}">
107      {html_options options=$image_order_field_options selected=$order.FIELD }}
108    </select>
109    <select name="order_direction_{$order.ID}">
110      {html_options options=$image_order_direction_options selected=$order.DIRECTION }}
111    </select><br/>
112  {/foreach}
113 
114</fieldset>
115
116<p style="text-align:center;">
117  <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}/>
118  <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
119</p>
120
121{if isset($representant) }
122<fieldset id="representant">
123  <legend>{'Representant'|@translate}</legend>
124  <table>
125    <tr>
126      <td align="center">
127        {if isset($representant.picture) }
128        <a href="{$representant.picture.URL}"><img src="{$representant.picture.SRC}" alt="" class="miniature" /></a>
129        {else}
130        <img src="{$ROOT_URL}{$themeconf.icon_dir}/category_representant_random.png" class="button" alt="{'Random picture'|@translate}" class="miniature" />
131        {/if}
132      </td>
133      <td>
134        {if $representant.ALLOW_SET_RANDOM }
135        <p><input class="submit" type="submit" name="set_random_representant" value="{'cat_representant'|@translate}" {$TAG_INPUT_ENABLED}/></p>
136        {/if}
137
138        {if isset($representant.ALLOW_DELETE) }
139        <p><input class="submit" type="submit" name="delete_representant" value="{'Delete Representant'|@translate}" /></p>
140        {/if}
141      </td>
142    </tr>
143  </table>
144</fieldset>
145{/if}
146
147</form>
148
149<form action="{$F_ACTION}" method="POST" id="links">
150
151<fieldset id="linkAllNew">
152  <legend>{'Link all category elements to a new category'|@translate}</legend>
153
154  <table>
155    <tr>
156      <td>{'Virtual category name'|@translate}</td>
157      <td><input type="text" name="virtual_name"></td>
158    </tr>
159
160    <tr>
161      <td>{'Parent category'|@translate}</td>
162      <td>
163        <select class="categoryDropDown" name="parent">
164          <option value="0">------------</option>
165          {html_options options=$create_new_parent_options }
166        </select>
167      </td>
168    </tr>
169  </table>
170
171  <p>
172    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd" {$TAG_INPUT_ENABLED}/>
173    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
174  </p>
175
176</fieldset>
177
178<fieldset id="linkAllExist">
179  <legend>{'Link all category elements to some existing categories'|@translate}</legend>
180
181  <table>
182    <tr>
183      <td>{'Categories'|@translate}</td>
184      <td>
185        <select class="categoryList" name="destinations[]" multiple="multiple" size="5">
186          {html_options options=$category_destination_options }
187        </select>
188      </td>
189    </tr>
190  </table>
191
192  <p>
193    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitDestinations" {$TAG_INPUT_ENABLED}/>
194    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
195  </p>
196
197</fieldset>
198
199{if isset($group_mail_options)}
200<fieldset id="emailCatInfo">
201  <legend>{'Send an information email to group members'|@translate}</legend>
202
203  <table>
204    <tr>
205      <td><strong>{'Group'|@translate}</strong></td>
206      <td>
207        <select name="group">
208          {html_options options=$group_mail_options}
209        </select>
210      </td>
211    </tr>
212    <tr>
213      <td><strong>{'mail_content'|@translate}</strong></td>
214      <td>
215        <textarea cols="50" rows="5" name="mail_content" class="description">{$MAIL_CONTENT}</textarea>
216      </td>
217    </tr>
218
219  </table>
220
221  <p>
222    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitEmail" {$TAG_INPUT_ENABLED}/>
223    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
224  </p>
225
226</fieldset>
227{/if}
228
229</form>
Note: See TracBrowser for help on using the repository browser.