aboutsummaryrefslogtreecommitdiffstats
path: root/BSF/template/yoga/admin/cat_modify.tpl
blob: 88e07e329991f91fbcfd406d7903f4cbb160fcff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
{* $Id$ *}
<div class="titrePage">
  <ul class="categoryActions">
    <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>
  </ul>
  <h2>{'title_edit_cat'|@translate}</h2>
</div>

<h3>{$CATEGORIES_NAV}</h3>

<ul class="categoryActions">
  <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>
  {if isset($U_MANAGE_ELEMENTS) }
  <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>
  {/if}
  <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>
  {if isset($U_MANAGE_PERMISSIONS) }
  <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>
  {/if}
  {if isset($U_DELETE) }
  <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>
  {/if}
</ul>

<form action="{$F_ACTION}" method="POST" id="catModify">

<fieldset>
  <legend>{'Informations'|@translate}</legend>
  <table>

    {if isset($CAT_FULL_DIR) }
    <tr>
      <td><strong>{'storage'|@translate}</strong></td>
      <td class="row1">{$CAT_FULL_DIR}</td>
    </tr>
    {/if}
    
    <tr>
      <td><strong>{'name'|@translate}</strong></td>
      <td>
        <input type="text" name="name" value="{$CAT_NAME}" maxlength="60"/>
      </td>
    </tr>
    <tr>
      <td><strong>{'description'|@translate}</strong></td>
      <td>
        <textarea cols="50" rows="5" name="comment" class="description">{$CAT_COMMENT}</textarea>
      </td>
    </tr>
  </table>
</fieldset>

{if isset($move_cat_options) }
<fieldset id="move">
  <legend>{'Move'|@translate}</legend>
  {'Parent category'|@translate}
  <select class="categoryDropDown" name="parent">
    <option value="0">------------</option>
    {html_options options=$move_cat_options selected=$move_cat_options_selected }
  </select>
</fieldset>
{/if}

<fieldset id="options">
  <legend>{'Options'|@translate}</legend>
  <table>
    <tr>
      <td><strong>{'conf_access'|@translate}</strong>
      <td>
        {html_radios name='status' values=$status_values output=$status_values|translate selected=$CAT_STATUS}
      </td>
    </tr>
    <tr>
      <td><strong>{'lock'|@translate}</strong>
      <td>
        {html_radios name='visible' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_VISIBLE}
      </td>
    </tr>
    <tr>
      <td><strong>{'comments'|@translate}</strong>
      <td>
        {html_radios name='commentable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_COMMENTABLE}
      </td>
    </tr>
    {if isset($SHOW_UPLOADABLE) }
    <tr>
      <td><strong>{'editcat_uploadable'|@translate}</strong>
      <td>
        {html_radios name='uploadable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_UPLOADABLE}
      </td>
    </tr>
    {/if}
  </table>
</fieldset>

<fieldset id="image_order">
  <legend>{'Sort order'|@translate}</legend>
  <input type="checkbox" name="image_order_default" id="image_order_default" {$IMG_ORDER_DEFAULT} />
  <label for="image_order_default">{'Use default sort order'|@translate}</label>
  <br/>
  <input type="checkbox" name="image_order_subcats" id="image_order_subcats" />
  <label for="image_order_subcats">{'Apply to subcategories'|@translate}</label>
  <br/>
  
  {foreach from=$image_orders item=order}
    <select name="order_field_{$order.ID}">
      {html_options options=$image_order_field_options selected=$order.FIELD }}
    </select>
    <select name="order_direction_{$order.ID}">
      {html_options options=$image_order_direction_options selected=$order.DIRECTION }}
    </select><br/>
  {/foreach}
  
</fieldset>

<p style="text-align:center;">
  <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}/>
  <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
</p>

{if isset($representant) }
<fieldset id="representant">
  <legend>{'Representant'|@translate}</legend>
  <table>
    <tr>
      <td align="center">
        {if isset($representant.picture) }
        <a href="{$representant.picture.URL}"><img src="{$representant.picture.SRC}" alt="" class="miniature" /></a>
        {else}
        <img src="{$ROOT_URL}{$themeconf.icon_dir}/category_representant_random.png" class="button" alt="{'Random picture'|@translate}" class="miniature" />
        {/if}
      </td>
      <td>
        {if $representant.ALLOW_SET_RANDOM }
        <p><input class="submit" type="submit" name="set_random_representant" value="{'cat_representant'|@translate}" {$TAG_INPUT_ENABLED}/></p>
        {/if}

        {if isset($representant.ALLOW_DELETE) }
        <p><input class="submit" type="submit" name="delete_representant" value="{'Delete Representant'|@translate}" /></p>
        {/if}
      </td>
    </tr>
  </table>
</fieldset>
{/if}

</form>

<form action="{$F_ACTION}" method="POST" id="links">

<fieldset id="linkAllNew">
  <legend>{'Link all category elements to a new category'|@translate}</legend>

  <table>
    <tr>
      <td>{'Virtual category name'|@translate}</td>
      <td><input type="text" name="virtual_name"></td>
    </tr>

    <tr>
      <td>{'Parent category'|@translate}</td>
      <td>
        <select class="categoryDropDown" name="parent">
          <option value="0">------------</option>
          {html_options options=$create_new_parent_options }
        </select>
      </td>
    </tr>
  </table>

  <p>
    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd" {$TAG_INPUT_ENABLED}/>
    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
  </p>

</fieldset>

<fieldset id="linkAllExist">
  <legend>{'Link all category elements to some existing categories'|@translate}</legend>

  <table>
    <tr>
      <td>{'Categories'|@translate}</td>
      <td>
        <select class="categoryList" name="destinations[]" multiple="multiple" size="5">
          {html_options options=$category_destination_options }
        </select>
      </td>
    </tr>
  </table>

  <p>
    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitDestinations" {$TAG_INPUT_ENABLED}/>
    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
  </p>

</fieldset>

{if isset($group_mail_options)}
<fieldset id="emailCatInfo">
  <legend>{'Send an information email to group members'|@translate}</legend>

  <table>
    <tr>
      <td><strong>{'Group'|@translate}</strong></td>
      <td>
        <select name="group">
          {html_options options=$group_mail_options}
        </select>
      </td>
    </tr>
    <tr>
      <td><strong>{'mail_content'|@translate}</strong></td>
      <td>
        <textarea cols="50" rows="5" name="mail_content" class="description">{$MAIL_CONTENT}</textarea>
      </td>
    </tr>

  </table>

  <p>
    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitEmail" {$TAG_INPUT_ENABLED}/>
    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
  </p>

</fieldset>
{/if}

</form>