Bug 30719: ILL Batches
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / ill-batch-modal.inc
1 <div id="ill-batch-details" style="display:none"></div>
2 <div id="ill-batch-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="ill-batch-modal-label" aria-hidden="true">
3     <div class="modal-dialog modal-lg">
4         <div class="modal-content">
5             <div class="modal-header">
6                 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
7                 <h3 id="ill-batch-modal-label"></h3>
8             </div>
9             <div class="modal-body">
10                 <div id="batch-form">
11                     <form id="new-batch-form">
12                         <fieldset class="rows">
13                             <legend id="legend">Batch details</legend>
14                             <ol>
15                                 <li id="batch_name">
16                                     <label class="required" for="name">Batch name:</label>
17                                     <input type="text" autocomplete="off" name="name" id="name" type="text"
18                                     value="" />
19                                 </li>
20                                 <li id="batch_patron">
21                                     <label class="required" for="batchcardnumber">Card number, username or surname:</label>
22                                     <input type="text" autocomplete="off" name="batchcardnumber" id="batchcardnumber" type="text" value="" />
23                                     <span id="patron_link"></span>
24                                 </li>
25                                 <li id="batch_branch">
26                                     <label class="required" for="branchcode">Library:</label>
27                                     <select id="branchcode" name="branchcode">
28                                         [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
29                                     </select>
30                                 </li>
31                                 <li id="batch_statuscode" style="display:none">
32                                     <label class="required" for="statuscode">Status:</label>
33                                     <select id="statuscode" name="statuscode"></select>
34                                 </li>
35                             </ol>
36                         </fieldset>
37                         <fieldset id="add_batch_items" class="rows" style="display:none">
38                             <legend id="legend">Add batch items</legend>
39                             <div id="textarea-metadata">
40                                 <div id="supported">Supported identifiers: <span id="supported_identifiers"></span></div>
41                                 <div id="row_count">Row count: <span id="row_count_value"></span></div>
42                             </div>
43                             <div id="textarea-errors" style="display:none" class="error">
44                                 <div id="duplicates" style="display:none">The following duplicates were found, these have been de-duplicated: <span id="dupelist"></span></div>
45                                 <div id="badidentifiers" style="display:none">The following unknown identifiers were found, it was not possible to establish their type: <span id="badids"></span></div>
46                             </div>
47                             <ol>
48                                 <li>
49                                     <textarea id="identifiers_input" placeholder="Enter identifiers, one per line"></textarea>
50                                 </li>
51                                 <li id="process-button">
52                                     <button id="process_button" disabled aria-disabled="true" type="button">Process identifiers</button>
53                                 </li>
54                             </ol>
55                         </fieldset>
56                     </form>
57                     <div id="create-progress" class="alert alert-info" role="alert" style="display:none">
58                         <span id="progress-label"><strong></strong></span> -
59                         Items processed: <span id="processed_count">0</span> out of <span id="processed_total">0</span>.
60                         Items failed: <span id="processed_failed">0</span>.
61                         <div class="progress">
62                             <div id="processed_progress_bar" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em;">
63                                 0%
64                             </div>
65                         </div>
66                     </div>
67                     <table id="identifier-table" style="display:none">
68                         <thead>
69                             <tr id="identifier-table-header">
70                                 <th scope="col">Identifier type</th>
71                                 <th scope="col">Identifier value</th>
72                                 <th scope="col">Metadata</th>
73                                 <th scope="col">Request ID</th>
74                                 <th scope="col">Request Status</th>
75                                 <th scope="col"></th>
76                             </tr>
77                         </thead>
78                         <tbody id="identifier-table-body">
79                         </tbody>
80                     </table>
81                 </div>
82                 <div id="create-requests" style="display:none">
83                     <button id="create-requests-button" type="button" class="btn btn-primary" aria-label="Add items to batch">Add items to batch</button>
84                 </div>
85             </div>
86             <div class="modal-footer">
87                 <div id="lhs">
88                     <button class="btn btn-default" data-dismiss="modal" aria-hidden="false">Cancel</button>
89                 </div>
90                 <div id="rhs">
91                     <button id="button_create_batch" class="btn btn-default" aria-hidden="true" disabled>Continue</button>
92                     <button id="button_finish" disabled type="button" class="btn btn-default" aria-hidden="true">Finish and view batch</button>
93                 </div>
94             </div>
95         </div>
96     </div>
97 </div>