]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates-bootstrap/opac/myopac/list/update.tt2
f12dade63d1baaa06b7ec0a84501c2d2d07ff4bc
[Evergreen.git] / Open-ILS / src / templates-bootstrap / opac / myopac / list / update.tt2
1 [%  PROCESS "opac/parts/header.tt2";
2     PROCESS "opac/parts/misc_util.tt2";
3     WRAPPER "opac/parts/myopac/base.tt2";
4     myopac_page = "lists/update"  
5 %]
6
7 <!-- we should never see this page on success -->
8
9 [% IF ctx.bucket_action_failed %]
10 <div id='bookbag_udpate_failures'>
11     <h3>[% l("Problem with list management:") %]</h3>
12       <div>
13         [% IF ctx.bucket_action == 'create' %]
14           [% IF ctx.bucket_failure_noname %]         
15             <h4 class="text-danger">[% l('A list name is required') %]</h4>
16           [% END %]   
17         [% END %]   
18       </div>
19       <div>
20         [% url = ctx.referer;
21           # The return link should return the user to the page where the edit
22           # failure occurred.
23           # mkurl() does not support 'page' params w/ existing CGI params.
24           # build the URL manually.
25           IF ctx.where_from;
26             from = ctx.where_from | uri;
27             IF url.match('\?');
28               url = url _ ';where_from=' _ from;
29             ELSE;
30               url = url _ '?where_from=' _ from;
31             END;
32           END; %]
33         <a class="btn btn-success" href="[% url %]"><i class="fas fa-undo"></i> [% l('Return') %]</a>
34       </div>
35 </div>
36 [% END %]
37 [% END %]