confirm_action.tt2 21.3 KB
Newer Older
1
<!-- confirm_action.tt2 -->
2
3
4
[%#
  # Set h2 title and text of confirmation page
  #%]
5
[% IF confirm_action == 'add' ~%]
Luc Didry's avatar
Luc Didry committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
    [% IF previous_action == 'show_exclude' ~%]
        <h2>
            <i class="fa fa-check-circle"></i>
            [%|loc%]Restore selected email addresses[%END%]"
        </h2>
        <p>
            <strong>
                [%|loc%]Do you really want to restore subscription for ALL selected addresses?[%END%]
            </strong>
        </p>
    [%~ ELSE ~%]
        <h2>
            <i class="fa fa-check-circle"></i>
            [%|loc%]Add subscribers[%END%]
        </h2>
        <p>
            <strong>
                [%|loc(email.0)%]Do you really want to add %1?[%END%]
            </strong>
        </p>
    [%~ END %]
27
[%~ ELSIF confirm_action == 'add_frommod' ~%]
Luc Didry's avatar
Luc Didry committed
28
29
30
31
32
33
34
35
36
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Add subscribers[%END%]
    </h2>
    <p>
        <strong>
            [%|loc(email.0.email)%]Do you really want to add %1?[%END%]
        </strong>
    </p>
37
[%~ ELSIF confirm_action == 'arc' || confirm_action == 'arcsearch_id' ~%]
Luc Didry's avatar
Luc Didry committed
38
39
40
41
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]List archive[%END%]
    </h2>
42
[%~ ELSIF confirm_action == 'arc_delete' ~%]
Luc Didry's avatar
Luc Didry committed
43
44
45
46
47
48
49
50
51
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Delete Selected Month(s)[%END%]
    </h2>
    <p>
        <strong>
            [%|loc%]Do you really want to delete Selected Archives?[%END%]
        </strong>
    </p>
52
[%~ ELSIF confirm_action == 'auth' ~%]
Luc Didry's avatar
Luc Didry committed
53
54
55
56
57
58
    <h2>
        <i class="fa fa-check-square"></i>
        [% IF heldaction == 'add' ~%]
            [%|loc%]Add subscribers[%END%]
        [%~ ELSIF heldaction == 'del' ~%]
            [%|loc%]Delete selected email addresses[%END%]
59
60
        [%~ ELSIF heldaction == 'family_signoff' ~%]
            [%|loc%]Global unsubscription[%END%]
Luc Didry's avatar
Luc Didry committed
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
        [%~ ELSIF heldaction == 'move_user' ~%]
            [%|loc%]Changing user's email[%END%]
        [%~ ELSIF heldaction == 'remind' || heldaction == 'global_remind' ~%]
            [%|loc%]Remind all subscribers[%END%]
        [%~ ELSIF heldaction == 'signoff' ~%]
            [%|loc%]Unsubscribe[%END%]
        [%~ ELSIF heldaction == 'subscribe' ~%]
            [%|loc%]Subscribe[%END%]
        [%~ ELSE ~%]
            [% heldaction %]
        [%~ END %]
    </h2>
    <p>
        <strong>
            [% IF heldaction == 'add' && request.email ~%]
                [%IF request.gecos ~%]
                    [% SET target="${request.gecos} &lt;${request.email}&gt;" %]
                [%~ELSE~%]
                    [% SET target="&lt;${request.email}&gt;" %]
                [%~END~%]
                [%|loc(target)%]Do you really want to add %1?[%END%]
            [%~ ELSIF heldaction == 'del' && request.email ~%]
                [% SET target = "&lt;${request.email}&gt;" ~%]
                [%|loc(target)%]Do you really want to delete %1?[%END%]
            [%~ ELSE ~%]
                [%|loc%]Do you really want this action to be taken?[%END%]
            [%~ END %]
        </strong>
    </p>
90
[%~ ELSIF confirm_action == 'auto_signoff' ~%]
Luc Didry's avatar
Luc Didry committed
91
92
93
94
95
96
97
98
99
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Unsubscribe[%END%]
    </h2>
    <p>
        <strong>
            [%|loc(list)%]Do you really want to unsubscribe from list %1?[%END%]
        </strong>
    </p>
100
[%~ ELSIF confirm_action == 'close_list' ~%]
Luc Didry's avatar
Luc Didry committed
101
102
103
104
105
106
107
108
109
110
111
112
113
    <h2>
        <i class="fa fa-check-circle"></i>
        [%~ IF mode == 'install' ~%]
            [%|loc%]Reject List[%END%]
        [%~ ELSE ~%]
            [%|loc%]Remove List[%END%]
        [%~ END %]
    </h2>
    <p>
        <strong>
            [%|loc(list)%]Are you sure you wish to close the %1 list?[%END%]
        </strong>
    </p>
114
[%~ ELSIF confirm_action == 'del' ~%]
Luc Didry's avatar
Luc Didry committed
115
116
117
118
119
120
121
122
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Delete selected email addresses[%END%]
    </h2>
    <p>
        <strong>
            [%|loc%]Do you really want to unsubscribe ALL selected subscribers?[%END%]
        </strong>
123
124
125
126
127
        <ul>
            [% FOREACH e = email ~%]
                <li>[% e %]</li>
            [%~ END %]
        </ul>
Luc Didry's avatar
Luc Didry committed
128
    </p>
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[%~ ELSIF confirm_action == 'mass_del' ~%]
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Delete email address from selected lists[%END%]
    </h2>
    <p>
        <strong>
            [% SET target = "&lt;${email}&gt;" ~%]
            [%|loc(target)%]Do you really want to unsubscribe %1 from the following lists?[%END%]
        </strong>
    </p>
    <ul>
        [%~ FOREACH list = lists %]
            <li>[% list %]</li>
        [%~ END %]
    </ul>
145
[%~ ELSIF confirm_action == 'delete_account' ~%]
Luc Didry's avatar
Luc Didry committed
146
147
148
149
150
151
152
153
154
155
156
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Delete my account[%END%]
    </h2>
    <p>
        <strong>
            [%|loc%]Do you really want to unsubscribe you from all your lists, remove your ownership of your lists and permanently delete your account?[%END%]
            <br />
            [%|loc%]Please, note that you will not be able to delete your account if you are the only owner of one or more lists.[%END%]
        </strong>
    </p>
157
[%~ ELSIF confirm_action == 'auth_add' ~%]
Luc Didry's avatar
Luc Didry committed
158
159
160
161
162
163
164
165
166
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Add subscribers[%END%]
    </h2>
    <p>
        <strong>
            [%|loc%]Do you really want to add selected users?[%END%]
        </strong>
    </p>
167
[%~ ELSIF confirm_action == 'auth_del' ~%]
Luc Didry's avatar
Luc Didry committed
168
169
170
171
172
173
174
175
176
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Delete selected email addresses[%END%]
    </h2>
    <p>
        <strong>
            [%|loc%]Do you really want to unsubscribe ALL selected subscribers?[%END%]
        </strong>
    </p>
177
[%~ ELSIF confirm_action == 'decl_add' ~%]
Luc Didry's avatar
Luc Didry committed
178
179
180
181
182
183
184
185
186
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Ignore subscription requests[%END%]
    </h2>
    <p>
        <strong>
            [%|loc%]Do you really want to ignore selected requests?[%END%]
        </strong>
    </p>
187
[%~ ELSIF confirm_action == 'decl_del' ~%]
Luc Didry's avatar
Luc Didry committed
188
189
190
191
192
193
194
195
196
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Ignore deletion requests[%END%]
    </h2>
    <p>
        <strong>
            [%|loc%]Do you really want to ignore selected requests?[%END%]
        </strong>
    </p>
197
[%~ ELSIF confirm_action == 'distribute' ~%]
Luc Didry's avatar
Luc Didry committed
198
199
200
201
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Distribute[%END%]
    </h2>
202
[%~ ELSIF confirm_action == 'd_admin' && d_admin == 'delete' ~%]
Luc Didry's avatar
Luc Didry committed
203
204
205
206
207
208
209
210
211
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Delete Shared[%END%]
    </h2>
    <p>
        <strong>
            [%|loc(listname)%]Are you sure you wish to delete the shared documents for list %1?[%END%]
        </strong>
    </p>
212
[%~ ELSIF confirm_action == 'd_delete' ~%]
Luc Didry's avatar
Luc Didry committed
213
214
215
216
217
218
219
220
221
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Delete[%END%]
    </h2>
    <p>
        <strong>
            [%|loc(shared_doc.name)%]Do you really want to delete %1?[%END%]
        </strong>
    </p>
222
223
224
225
226
227
228
229
230
231
[%~ ELSIF confirm_action == 'family_signoff' ~%]
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Global unsubscription[%END%]
    </h2>
    <p>
        <strong>
            [%|loc(family)%]Do you really want to unsubscribe from the lists in family %1?[%END%]
        </strong>
    </p>
232
[%~ ELSIF confirm_action == 'move_list' ~%]
Luc Didry's avatar
Luc Didry committed
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
    <h2>
        <i class="fa fa-check-circle"></i>
        [% IF mode == 'copy' ~%]
            [%|loc%]Copy List[%END%]
        [%~ ELSE ~%]
            [%|loc%]Rename List[%END%]
        [%~ END %]
    </h2>
    <p>
        <strong>
            [% IF mode == 'copy' ~%]
                [%|loc%]Do you really want to copy this list?[%END%]
            [%~ ELSE ~%]
                [%|loc%]Do you really want to rename this list?[%END%]
            [%~ END %]
        </strong>
    </p>
250
[%~ ELSIF confirm_action == 'move_user' ~%]
Luc Didry's avatar
Luc Didry committed
251
252
253
254
255
256
257
258
259
260
261
262
263
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Changing user's email[%END%]
    </h2>
    <p>
        <strong>
            [% IF user.email == current_email ~%]
                [%|loc(email)%]Are you sure you wish to change your email to %1?[%END%]
            [%~ ELSE ~%]
                [%|loc(current_email,email)%]Are you sure you wish to change a user's email %1 to %2?[%END%]
            [%~ END %]
        </strong>
    </p>
264
[%~ ELSIF confirm_action == 'open_list' ~%]
Luc Didry's avatar
Luc Didry committed
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
    <h2>
        <i class="fa fa-check-circle"></i>
        [% IF mode == 'install' ~%]
            [%|loc%]Install List[%END%]
        [%~ ELSE ~%]
            [%|loc%]Restore List[%END%]
        [%~ END %]
    </h2>
    <p>
        <strong>
            [% IF mode == 'install' ~%]
                [%|loc(list)%]Are you sure you wish to install list %1?[%END%]
            [%~ ELSE ~%]
                [%|loc(list)%]Are you sure you wish to restore list %1?[%END%]
            [%~ END %]
        </strong>
    </p>
IKEDA Soji's avatar
IKEDA Soji committed
282
[%~ ELSIF confirm_action == 'purge_list' ~%]
Luc Didry's avatar
Luc Didry committed
283
284
285
286
287
288
289
290
291
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Purge selected lists[%END%]
    </h2>
    <p>
        <strong>
            [%|loc%]Are you sure you wish to purge selected lists?[%END%]
        </strong>
    </p>
292
[%~ ELSIF confirm_action == 'remind' ~%]
Luc Didry's avatar
Luc Didry committed
293
294
295
296
297
298
299
300
301
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Remind all subscribers[%END%]
    </h2>
    <p>
        <strong>
            [%|loc(total)%]Do you really want to send a subscription reminder message to the %1 subscribers?[%END%]
        </strong>
    </p>
302
[%~ ELSIF confirm_action == 'remove_arc' ~%]
Luc Didry's avatar
Luc Didry committed
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
    <h2>
        <i class="fa fa-check-circle"></i>
        [% IF 1 < msgid.size ~%]
            [%|loc%]Tag messages for deletion[%END%]
        [%~ ELSE ~%]
            [%|loc%]tag this mail for deletion[%END%]
        [%~ END %]
    </h2>
    <p>
        <strong>
            [% IF 1 < msgid.size ~%]
                [%|loc%]Do you really want to delete these messages?[%END%]
            [%~ ELSE ~%]
                [%|loc%]Do you really want to delete this message ?[%END%]
            [%~ END %]
        </strong>
    </p>
320
[%~ ELSIF confirm_action == 'remove_template' ~%]
Luc Didry's avatar
Luc Didry committed
321
322
323
324
325
326
327
328
329
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Delete[%END%]
    </h2>
    <p>
        <strong>
            [%|loc(template_name)%]Do you really want to remove %1?[%END%]
        </strong>
    </p>
330
[%~ ELSIF confirm_action == 'rt_delete' ~%]
Luc Didry's avatar
Luc Didry committed
331
332
333
334
335
336
337
338
339
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Delete[%END%]
    </h2>
    <p>
        <strong>
            [%|loc(message_template)%]Do you really want to delete this message?[%END%]
        </strong>
    </p>
340
[%~ ELSIF confirm_action == 'signoff' ~%]
Luc Didry's avatar
Luc Didry committed
341
342
343
344
345
346
347
348
349
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Unsubscribe[%END%]
    </h2>
    <p>
        <strong>
            [%|loc(list)%]Do you really want to unsubscribe from list %1?[%END%]
        </strong>
    </p>
350
[%~ ELSIF confirm_action == 'subscribe' ~%]
Luc Didry's avatar
Luc Didry committed
351
352
353
354
355
356
357
358
359
    <h2>
        <i class="fa fa-check-circle"></i>
        [%|loc%]Subscribe[%END%]
    </h2>
    <p>
        <strong>
            [%|loc(list)%]Do you really want to subscribe to list %1?[%END%]
        </strong>
    </p>
360
361
[%~ END %]

362
363
364
365
366

[%#
  # Create the form.
  # Add hidden fields containing the values of the form you want to confirm
  # %]
367
<form action="[% path_cgi %]" method="POST">
Luc Didry's avatar
Luc Didry committed
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
    [% IF confirm_action == 'add' ~%]
        [% FOREACH e = email ~%]
            <input type="hidden" name="email" value="[% e %]" />
        [%~ END %]
        [% IF conf.quiet_subscription == 'optional' %]
            <div>
                <input type="checkbox" id="quiet" type="checkbox" name="quiet" value="1"
                       [% IF quiet %]checked="checked"[%END%] />
                <label for="quiet">[%|loc%]Quiet (don't send welcome email)[%END%]</label>
            </div>
        [%~ END %]
    [%~ ELSIF confirm_action == 'add_frommod' ~%]
        [% FOREACH i = id ~%]
            <input type="hidden" name="id" value="[% i %]" />
        [%~ END %]
    [%~ ELSIF confirm_action == 'arc' ~%]
        <input type="hidden" name="month" value="[% month %]" />
        <input type="hidden" name="arc_file" value="[% arc_file %]" />
    [%~ ELSIF confirm_action == 'arcsearch_id' ~%]
        <input type="hidden" name="archive_name" value="[% archive_name %]" />
        <input type="hidden" name="msgid" value="[% msgid %]" />
    [%~ ELSIF confirm_action == 'arc_delete' ~%]
        [% FOREACH d = directories ~%]
            <input type="hidden" name="directories" value="[% d %]" />
        [%~ END %]
        <div>
            <input type="checkbox" id="zip" name="zip" value="1" checked="checked" />
            <label for="zip">[%|loc%]Download deleted archives[%END%]</label>
        </div>
    [%~ ELSIF confirm_action == 'auth' ~%]
        <input type="hidden" name="id" value="[% id %]" />
        <input type="hidden" name="heldaction" value="[% heldaction %]" />
        <input type="hidden" name="listname" value="[% listname %]" />
        <input type="hidden" name="email" value="[% email %]" />
402
403
404
        [% IF heldaction == 'family_signoff' ~%]
            <input type="hidden" name="family" value="[% family %]" />
        [%~ END %]
Luc Didry's avatar
Luc Didry committed
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
    [%~ ELSIF confirm_action == 'auth_add' ~%]
        [% FOREACH i = id ~%]
            <input type="hidden" name="id" value="[% i %]" />
        [%~ END %]
    [%~ ELSIF confirm_action == 'auth_del' ~%]
        [% FOREACH i = id ~%]
            <input type="hidden" name="id" value="[% i %]" />
        [%~ END %]
    [%~ ELSIF confirm_action == 'auto_signoff' ~%]
        <input type="hidden" name="email" value="[% email %]" />
    [%~ ELSIF confirm_action == 'close_list' ~%]
        <input type="hidden" name="mode" value="[% mode %]" />
        <input type="hidden" name="notify" value="[% notify %]" />
    [%~ ELSIF confirm_action == 'decl_add' ~%]
        [% FOREACH i = id ~%]
            <input type="hidden" name="id" value="[% i %]" />
        [%~ END %]
    [%~ ELSIF confirm_action == 'decl_del' ~%]
        [% FOREACH i = id ~%]
            <input type="hidden" name="id" value="[% i %]" />
        [%~ END %]
    [%~ ELSIF confirm_action == 'del' ~%]
        [% FOREACH e = email ~%]
            <input type="hidden" name="email" value="[% e %]" />
        [%~ END %]
        <div>
            <input type="checkbox" id="quiet" name="quiet" value="1"
                   [% IF quiet %]checked="checked"[%END%] />
            <label for="quiet">[%|loc%]Quiet (don't send deletion email)[%END%]</label>
        </div>
435
436
437
438
439
440
441
442
443
444
    [%~ ELSIF confirm_action == 'mass_del' ~%]
        [% FOREACH list = lists ~%]
            <input type="hidden" name="lists" value="[% list %]" />
        [%~ END %]
        <input type="hidden" name="email" value="[% email %]" />
        <div>
            <input type="checkbox" id="quiet" name="quiet" value="1"
                   [% IF quiet %]checked="checked"[%END%] />
            <label for="quiet">[%|loc%]Quiet (don't send deletion email)[%END%]</label>
        </div>
Luc Didry's avatar
Luc Didry committed
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
    [%~ ELSIF confirm_action == 'delete_account' ~%]
        <fieldset>
            <input type="hidden" name="passwd" value="x"/>
            <input type="hidden" name="i_understand_the_consequences" value="1"/>
        </fieldset>
    [%~ ELSIF confirm_action == 'distribute' ~%]
        [% FOREACH i = id ~%]
            <input type="hidden" name="id" value="[% i %]" />
        [%~ END %]
        [% IF topic_required ~%]
            <h3>[%|loc%]This list is configured to require topic(s).[%END%]</h3>
        [%~ END %]
        <p>[%|loc%]Please select one or more topic(s) that corresponds to the messages you wish to distribute:[%END%]</p>
        <ul>
            [% FOREACH t = listconf.msg_topic ~%]
                [% NEXT UNLESS t && t.name ~%]
                    <li>
                        <input type="checkbox" name="topic" id="topic_[%t.name%]" value="[% t.name %]" />
                        <label for="topic_[%t.name%]">[% t.title %] </label>
                    </li>
            [%~ END %]
        </ul>
    [%~ ELSIF confirm_action == 'd_admin' && d_admin == 'delete' ~%]
        <input type="hidden" name="d_admin" value="[% d_admin %]" />
    [%~ ELSIF confirm_action == 'd_delete' ~%]
        <input type="hidden" name="path" value="[% shared_doc.paths.join("/") %]" />
471
472
    [%~ ELSIF confirm_action == 'family_signoff' ~%]
        <input type="hidden" name="email" value="[% email %]" />
Luc Didry's avatar
Luc Didry committed
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
    [%~ ELSIF confirm_action == 'move_user' ~%]
        <input type="hidden" name="current_email" value="[% current_email %]" />
        <input type="hidden" name="email" value="[% email %]" />
        <div>
            [%|loc%]Changing your email address is an important operation. Therefore, we need to verify that it is really your email address.[%END%]
            [%|loc(email)%]To this end we will send you an email to this address: %1 with a validation link.[%END%]
            [%|loc%]Please check your mailbox now.[%END%]
        </div>
    [%~ ELSIF confirm_action == 'move_list' ~%]
        <input type="hidden" name="new_listname" value="[% new_listname %]" />
        <input type="hidden" name="new_robot" value="[% new_robot %]" />
        <input type="hidden" name="mode" value="[% mode %]" />
    [%~ ELSIF confirm_action == 'open_list' ~%]
        <input type="hidden" name="mode" value="[% mode %]" />
        <input type="hidden" name="notify" value="[% notify %]" />
    [%~ ELSIF confirm_action == 'purge_list' ~%]
        [% FOREACH l = selected_lists ~%]
            <input type="hidden" name="selected_lists" value="[% l %]" />
        [%~ END %]
    [%~ ELSIF confirm_action == 'remove_arc' ~%]
        <input type="hidden" name="yyyy" value="[% yyyy %]" />
        <input type="hidden" name="month" value="[% month %]" />
        [% FOREACH m = msgid ~%]
            <input type="hidden" name="msgid" value="[% m %]" />
        [%~ END %]
498
499
500
501
502
503
504
        [% IF is_listmaster || is_owner %]
            <input type="checkbox" name="signal_as_spam"
                   [% IF signal_as_spam %]checked[% END %] />
            <label for="signal_as_spam">
                [%|loc%]Report messages as undetected spam[%END%]
            </label>
        [%~ END %]
Luc Didry's avatar
Luc Didry committed
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
    [%~ ELSIF confirm_action == 'remove_template' ~%]
        <input type="hidden" name="webormail" value="[% webormail %]" />
        <input type="hidden" name="scope" value="[% scope %]" />
        <input type="hidden" name="template_name" value="[% template_name %]" />
        <input type="hidden" name="tpl_lang" value="[% tpl_lang %]" />
    [%~ ELSIF confirm_action == 'rt_delete' ~%]
        <input type="hidden" name="message_template" value="[% message_template %]" />
    [%~ ELSIF confirm_action == 'signoff' ~%]
        <input type="hidden" name="email" value="[% email %]" />
    [%~ ELSIF confirm_action == 'subscribe' ~%]
        <input type="hidden" name="email" value="[% email %]" />
        <input type="hidden" name="gecos" value="[% gecos %]" />
        [% FOREACH i = custom_attribute ~%]
            <input type="hidden" name="custom_attribute.[% i.key %]"
             value="[% i.value.value.replace('\n', '&#10;') %]" />
        [%~ END %]
    [%~ END %]
522

Luc Didry's avatar
Luc Didry committed
523
524
525
526
    [%#
    # Confirmation common hidden fields
    #%]
    <input type="hidden" name="action" value="[% confirm_action %]" />
527
    <input type="hidden" name="family" value="[% family %]" />
Luc Didry's avatar
Luc Didry committed
528
529
    <input type="hidden" name="list" value="[% list %]" />
    <input type="hidden" name="previous_action" value="[% previous_action %]" />
530

Luc Didry's avatar
Luc Didry committed
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
    [%#
    # Submit and cancel buttons
    #%]
    [% IF confirm_action == 'arc' || confirm_action == 'arcsearch_id' ~%]
        <div>
            <input class="MainMenuLinks" type="submit"
                   id="response_action_confirm" name="response_action_confirm"
                   value="[%|loc%]I am not a spammer[%END%]" />
        </div>
        <p>[%|loc%]This button tries to protect the mailing list archives against address harvesting by a spammer.[%END%]</p>
    [%~ ELSIF confirm_action == 'auth' ~%]
        <div>
            <input class="MainMenuLinks" type="submit"
                   id="response_action_confirm" name="response_action_confirm"
                   value="[%|loc%]Confirm[%END%]" />
            <input class="MainMenuLinks" type="submit"
                   id="response_action_cancel" name="response_action_cancel"
                   value="[%|loc%]Cancel[%END%]" />
        </div>
        [% IF listname ~%]
            <div>
                [% IF heldaction == 'add' ~%]
                    <a href="[% 'subindex' | url_rel([listname]) %]">
                        [%|loc%]Review subscription requests[%END%]
                    </a>
                [%~ ELSIF heldaction == 'del' ~%]
                    <a href="[% 'sigindex' | url_rel([listname]) %]">
                        [%|loc%]Review unsubscription requests[%END%]
                    </a>
                [%~ END %]
            </div>
        [%~ END %]
    [%~ ELSE ~%]
        <div>
            <input class="MainMenuLinks"        type="submit"
                   id="response_action_confirm" name="response_action_confirm"
                   value="[%|loc%]Confirm[%END%]" />
            <input class="MainMenuLinks"        type="submit"
                   id="response_action_cancel" name="response_action_cancel"
                   value="[%|loc%]Back[%END%]" />
        </div>
572
    [%~ END %]
573
</form>
574
575

[% IF confirm_action == 'arc_delete' ~%]
Luc Didry's avatar
Luc Didry committed
576
577
578
579
580
581
582
583
584
585
586
    [%# FIXME. ~%]
    <script>
    <!--
    $('#response_action_confirm').click(function(){
        if ($('#zip').prop('checked'))
            setTimeout(function(){
                window.location.href = '[% 'arc_manage' | url_rel([list]) %]';
            }, 1000);
    });
    //-->
    </script>
587
[%~ END %]
588
<!-- end confirm_action.tt2 -->