]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac-new/myopac/list/update.tt2
LP#1778972: (follow-up) remove a NFPL-specific template
[Evergreen.git] / Open-ILS / src / templates / opac-new / 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
12   <div>
13     <strong>[% l("Problem with list management:") %]</strong>
14   </div>
15
16   <div>
17     <ul>
18     [% IF ctx.bucket_action == 'create' %]
19       [% IF ctx.bucket_failure_noname %]         
20         <li>[% l('A list name is required') %]</li>
21       [% END %]   
22     [% END %]   
23     </ul>
24   </div>
25
26   <div>
27     [% url = ctx.referer;
28       # The return link should return the user to the page where the edit
29       # failure occurred.
30       # mkurl() does not support 'page' params w/ existing CGI params.
31       # build the URL manually.
32       IF ctx.where_from;
33         from = ctx.where_from | uri;
34         IF url.match('\?');
35           url = url _ ';where_from=' _ from;
36         ELSE;
37           url = url _ '?where_from=' _ from;
38         END;
39       END; %]
40     <a href="[% url %]">[% l('Return') %]</a>
41   </div>
42 </div>
43 [% END %]
44 [% END %]