Bug 27408: (follow-up) Updates to accommodate currency entry
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / mancredit.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE Branches %]
5 [% SET footerjs = 1 %]
6
7 [% PROCESS 'accounts.inc' %]
8
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Koha &rsaquo; Patrons &rsaquo; Create manual credit</title>
11 [% INCLUDE 'doc-head-close.inc' %]
12 </head>
13
14 <body id="pat_mancredit" class="pat">
15 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'patron-search.inc' %]
17
18 <div id="breadcrumbs">
19     <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
20     <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo;
21     Manual credit
22 </div>
23
24 <div class="main container-fluid">
25     <div class="row">
26         <div class="col-sm-10 col-sm-push-2">
27             <main>
28
29             [% INCLUDE 'members-toolbar.inc' %]
30
31             <!-- The manual invoice and credit buttons -->
32             <div class="statictabs">
33                 <ul>
34                     <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Transactions</a></li>
35                     <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | uri %]" >Make a payment</a></li>
36                     <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber | uri %]" >Create manual invoice</a></li>
37                     <li class="active"><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber | uri %]" >Create manual credit</a></li>
38                 </ul>
39                 <div class="tabs-container">
40
41                 <form action="/cgi-bin/koha/members/mancredit.pl" method="post" id="mancredit">
42                     <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
43                     <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
44
45                     <fieldset class="rows">
46                         <legend>Manual credit</legend>
47                         <ol>
48                             <li>
49                                 <label for="type">Credit type: </label>
50                                 <select name="type" id="type">
51                                     [% FOREACH credit_type IN credit_types %]
52                                     <option value="[% credit_type.code | html %]">[%- PROCESS credit_type_description credit_type=credit_type -%]</option>
53                                     [% END %]
54                                 </select>
55                             </li>
56                             <li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li>
57                             <li><label for="desc">Description: </label><input type="text" name="desc" size="50" id="desc" /></li>
58                             <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li>
59                             <li><label for="amount">Amount: </label><input type="text" inputmode="decimal" pattern="^\d+(\.\d{2})?$" name="amount" id="amount" required="required" value=""/> Example: 5.00</li>
60                         </ol>
61                     </fieldset>
62
63                     <fieldset class="action"><input type="submit" name="add" value="Add credit" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | html %]">Cancel</a></fieldset>
64                 </form>
65
66                 </div>
67             </div>
68
69             </main>
70         </div> <!-- /.col-sm-10.col-sm-push-2 -->
71
72         <div class="col-sm-2 col-sm-pull-10">
73             <aside>
74                 [% INCLUDE 'circ-menu.inc' %]
75             </aside>
76         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
77     </div> <!-- /.row -->
78
79 [% MACRO jsinclude BLOCK %]
80     [% INCLUDE 'str/members-menu.inc' %]
81     [% Asset.js("js/members-menu.js") | $raw %]
82     <script>
83         $(document).ready(function(){
84             $('#mancredit').preventDoubleFormSubmit();
85             $("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
86         });
87     </script>
88 [% END %]
89
90 [% INCLUDE 'intranet-bottom.inc' %]