Koha/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasketform.tt
Owen Leonard b291da995d
Bug 34873: Fix inconsistencies between "Sending your cart/list" headings
This patch modifies the templates for the popup windows which are shown
when you send a cart or a list via email in the staff interface.

To test, apply the patch and log into the staff interface.

- Perform a catalog search which will return results.
- Select one or more results and add them to the cart.
- Click the cart icon in the header menu to open the Cart popup.
- Click "Send". Compare this pop-up window to the version shown when
  sending a list:

- Open the Lists page and view the contents of a list.
- Click the "Send list" button in the toolbar.
- This popup should look correct and be consistent with the Cart
  version.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-09 11:41:23 -03:00

63 lines
2 KiB
Text

[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% FILTER collapse %]
[% t("Sending your cart") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="cart_sendbasketform" class="cart">
<div class="container">[% IF ( email_add ) %]
[% IF ( SENT ) %]
<div class="dialog message">
<h1>Message sent</h1>
<p>The cart was sent to: [% email_add | html %]</p>
</div>
[% END %]
[% IF ( error ) %]
<div class="dialog alert">Problem sending the cart...</div>
[% END %]
<nav class="navbar navbar-default navbar-fixed-bottom">
<div class="container-fluid">
<fieldset class="action">
<button type="button" class="btn btn-default close_window focus">Close window</button>
</fieldset>
</div>
</nav>
[% ELSE %]
[% INCLUDE 'blocking_errors.inc' %]
<form action="/cgi-bin/koha/basket/sendbasket.pl" method="post">
<h1>Sending your cart</h1>
<fieldset class="rows">
<legend class="sr-only">Enter message details</legend>
<ol> <li>
<label for="email_add">Email address:</label>
<input type="text" id="email_add" name="email_add" size="43" class="focus" />
</li>
<li>
<label for="comment">Comment:</label>
<textarea id="comment" name="comment" rows="4" cols="40"></textarea>
</li>
</ol>
</fieldset>
<input type="hidden" name="bib_list" value="[% bib_list | html %]" />
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
<nav class="navbar navbar-default navbar-fixed-bottom">
<div class="container-fluid">
<fieldset class="action">
<input type="submit" class="btn btn-primary" value="Send" />
<button type="button" class="btn btn-default close_window">Cancel</button>
</fieldset>
</div>
</nav>
</form>
[% END %]</div>
</body>
</html>