Bug 30335: Add classes to invoice/credit tabs on patron accouting pages
[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>Create manual credit &rsaquo; Patrons &rsaquo; Koha</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-header.inc' %]
17
18 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
19     <ol>
20         <li>
21             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
22         </li>
23         <li>
24             <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
25         </li>
26         <li>
27             <a href="#" aria-current="page">
28                 Manual credit
29             </a>
30         </li>
31     </ol>
32 </nav>
33
34 <div class="main container-fluid">
35     <div class="row">
36         <div class="col-sm-10 col-sm-push-2">
37             <main>
38
39             [% INCLUDE 'members-toolbar.inc' %]
40
41             <h1>Manual credit</h1>
42
43             <!-- The manual invoice and credit buttons -->
44             <div class="statictabs">
45                 <ul>
46                     <li class="transactions"><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Transactions</a></li>
47                     <li class="makepayment"><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | uri %]" >Make a payment</a></li>
48                     <li class="manualinvoice"><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber | uri %]" >Create manual invoice</a></li>
49                     <li class="active manualcredit"><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber | uri %]" >Create manual credit</a></li>
50                 </ul>
51                 <div class="tabs-container">
52
53                 <form action="/cgi-bin/koha/members/mancredit.pl" method="post" id="mancredit">
54                     <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
55                     <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
56
57                     <fieldset class="rows">
58                         <legend>Manual credit</legend>
59                         <ol>
60                             <li>
61                                 <label for="type">Credit type: </label>
62                                 <select name="type" id="type">
63                                     [% FOREACH credit_type IN credit_types %]
64                                     <option value="[% credit_type.code | html %]">[%- PROCESS credit_type_description credit_type=credit_type -%]</option>
65                                     [% END %]
66                                 </select>
67                             </li>
68                             <li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li>
69                             <li><label for="desc">Description: </label><input type="text" name="desc" size="50" id="desc" /></li>
70                             <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li>
71                             <li><label for="amount">Amount: </label><input type="text" inputmode="decimal" pattern="^\d+(\.\d{2})?$" name="amount" id="amount" required="required" min="0" value=""/> Example: 5.00</li>
72                         </ol>
73                     </fieldset>
74
75                     <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>
76                 </form>
77
78                 </div>
79             </div>
80
81             </main>
82         </div> <!-- /.col-sm-10.col-sm-push-2 -->
83
84         <div class="col-sm-2 col-sm-pull-10">
85             <aside>
86                 [% INCLUDE 'circ-menu.inc' %]
87             </aside>
88         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
89     </div> <!-- /.row -->
90
91 [% MACRO jsinclude BLOCK %]
92     [% INCLUDE 'str/members-menu.inc' %]
93     [% Asset.js("js/members-menu.js") | $raw %]
94     <script>
95         $(document).ready(function(){
96             $('#mancredit').preventDoubleFormSubmit();
97             $("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
98         });
99     </script>
100 [% END %]
101
102 [% INCLUDE 'intranet-bottom.inc' %]