aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/goto/element_set_global.tpl
blob: c34c33e0640c202efdda3ef871891827588705b0 (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
{* $Id$ *}

{include file='include/datepicker.inc.tpl'}

{literal}
<script type="text/javascript">
  pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set");
</script>
{/literal}

<h2>{'Batch management'|@translate}</h2>

<h3>{$CATEGORIES_NAV}</h3>

{if !empty($thumbnails)}
  <p style="text-align:center;">
    {'global mode'|@translate}
    | <a href="{$U_UNIT_MODE}">{'unit mode'|@translate}</a>
  </p>

  <fieldset>

    <legend>{'Display options'|@translate}</legend>

    <p>{'elements per page'|@translate}:
        <a href="{$U_DISPLAY}&amp;display=20">20</a>
      | <a href="{$U_DISPLAY}&amp;display=50">50</a>
      | <a href="{$U_DISPLAY}&amp;display=100">100</a>
      | <a href="{$U_DISPLAY}&amp;display=all">{'all'|@translate}</a>
    </p>

  </fieldset>

  <form action="{$F_ACTION}" method="post">

  <fieldset>

    <legend>{'Elements'|@translate}</legend>

    {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}

  {if !empty($thumbnails)}
    <ul class="thumbnails">
      {foreach from=$thumbnails item=thumbnail}
      <li><span class="wrap1">
          <label>
            <span class="wrap2">
        {if $thumbnail.LEVEL > 0}
        <em class="levelIndicatorB">{$thumbnail.LEVEL}</em>
        <em class="levelIndicatorF" title="{$pwg->l10n($pwg->sprintf('Level %d',$thumbnail.LEVEL))}">{$thumbnail.LEVEL}</em>
        {/if}
            <span>
              <img src="{$thumbnail.TN_SRC}"
                 alt="{$thumbnail.FILE}"
                 title="{$thumbnail.TITLE}"
                 class="thumbnail">
            </span></span>
            <input type="checkbox" name="selection[]" value="{$thumbnail.ID}">
          </label>
          </span>
      </li>
      {/foreach}
    </ul>
  {/if}

  </fieldset>

  {if $show_delete_form}
  <fieldset>
    <legend>{'Deletions'|@translate}</legend>
    <p style="font-style:italic">{'Note: Only deletes photos added with pLoader'|@translate}</p>
    <p>
      {'target'|@translate}
      <label><input type="radio" name="target_deletion" value="all"> {'all'|@translate}</label>
      <label><input type="radio" name="target_deletion" value="selection" checked="checked"> {'selection'|@translate}</label>
    </p>
    <p>
    <label><input type="checkbox" name="confirm_deletion" value="1"> {'confirm'|@translate}</label>
    <input class="submit" type="submit" value="{'Delete selected photos'|@translate}" name="delete" {$TAG_INPUT_ENABLED}>
    </p>
  </fieldset>
  {/if}

  <fieldset>

    <legend>{'Form'|@translate}</legend>

    <table>

      <tr>
        <td>{'associate to category'|@translate}</td>
        <td>
          <select style="width:400px" name="associate" size="1">
            <option value="0">------------</option>
            {html_options options=$associate_options }
         </select>
        </td>
      </tr>

      <tr>
        <td>{'dissociate from category'|@translate}</td>
        <td>
          <select style="width:400px" name="dissociate" size="1">
            <option value="0">------------</option>
            {if !empty($dissociate_options)}{html_options options=$dissociate_options }{/if}
          </select>
        </td>
      </tr>

      <tr>
        <td>{'add tags'|@translate}</td>
        <td>{if !empty($ADD_TAG_SELECTION)}{$ADD_TAG_SELECTION}{else}<p>{'No tag defined. Use Administration>Pictures>Tags'|@translate}</p>{/if}</td>
      </tr>

      {if !empty($DEL_TAG_SELECTION)}
      <tr>
        <td>{'remove tags'|@translate}</td>
        <td>{$DEL_TAG_SELECTION}</td>
      </tr>
      {/if}

      <tr>
        <td>{'Author'|@translate}</td>
        <td>
          <label><input type="radio" name="author_action" value="leave" checked="checked"> {'leave'|@translate}</label>
          <label><input type="radio" name="author_action" value="unset"> {'unset'|@translate}</label>
          <label><input type="radio" name="author_action" value="set" id="author_action_set"> {'set to'|@translate}</label>
          <input onchange="document.getElementById('author_action_set').checked = true;" type="text" class="large" name="author" value="">
        </td>
      </tr>

      <tr>
        <td>{'title'|@translate}</td>
        <td>
          <label><input type="radio" name="name_action" value="leave" checked="checked"> {'leave'|@translate}</label>
          <label><input type="radio" name="name_action" value="unset"> {'unset'|@translate}</label>
          <label><input type="radio" name="name_action" value="set" id="name_action_set"> {'set to'|@translate}</label>
          <input onchange="document.getElementById('name_action_set').checked = true;" type="text" class="large" name="name" value="">
        </td>
      </tr>

      <tr>
        <td>{'Creation date'|@translate}</td>
        <td>
          <label><input type="radio" name="date_creation_action" value="leave" checked="checked"> {'leave'|@translate}</label>
          <label><input type="radio" name="date_creation_action" value="unset"> {'unset'|@translate}</label>
          <label><input type="radio" name="date_creation_action" value="set" id="date_creation_action_set"> {'set to'|@translate}</label>
          <select id="date_creation_day" name="date_creation_day">
             <option value="0">--</option>
            {section name=day start=1 loop=32}
              <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY}selected="selected"{/if}>{$smarty.section.day.index}</option>
            {/section}
          </select>
          <select id="date_creation_month" name="date_creation_month">
            {html_options options=$month_list selected=$DATE_CREATION_MONTH}
          </select>
          <input id="date_creation_year"
                 name="date_creation_year"
                 type="text"
                 size="4"
                 maxlength="4"
                 value="{$DATE_CREATION_YEAR}">
          <input id="date_creation_linked_date" name="date_creation_linked_date" type="hidden" size="10" disabled="disabled">
        </td>
      </tr>

    <tr>
      <td>{'Minimum privacy level'|@translate}</td>
      <td>
        <label><input type="radio" name="level_action" value="leave" checked="checked">{'leave'|@translate}</label>
        <label><input type="radio" name="level_action" value="set" id="level_action_set">{'set to'|@translate}</label>
        <select onchange="document.getElementById('level_action_set').checked = true;" name="level" size="1">
          {html_options options=$level_options}
        </select>
      </td>
    </tr>

    </table>

    <p>
      {'target'|@translate}
      <label><input type="radio" name="target" value="all"> {'all'|@translate}</label>
      <label><input type="radio" name="target" value="selection" checked="checked"> {'selection'|@translate}</label>
    </p>


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

  </fieldset>

  <fieldset>

    <legend>{'Caddie management'|@translate}</legend>

    <ul style="list-style-type:none;">
      {if ($IN_CADDIE)}
      <li><label><input type="radio" name="caddie_action" value="empty_all"> {'Empty caddie'|@translate}</label></li>
      <li><label><input type="radio" name="caddie_action" value="empty_selected"> {'Take selected elements out of caddie'|@translate}</label></li>
      {else}
      <li><label><input type="radio" name="caddie_action" value="add_selected"> {'Add selected elements to caddie'|@translate}</label></li>
      {/if}
    </ul>

    <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit_caddie"></p>

  </fieldset>

  </form>

{else}
  <div class="infos"><p>{'Caddie is currently empty'|@translate}</p></div>
{/if}