Lines 213-219
Link Here
|
213 |
</div> |
213 |
</div> |
214 |
|
214 |
|
215 |
<input type="submit" class="btn btn-default" value="Claim order" /> |
215 |
<input type="submit" class="btn btn-default" value="Claim order" /> |
216 |
<input type="button" value="Print claim" id="print-claim" /> |
216 |
<input type="button" value="Print claim" id="print-claim" data-toggle="modal" data-target="#print-claim-confirm"/> |
217 |
</fieldset> |
217 |
</fieldset> |
218 |
</form> |
218 |
</form> |
219 |
[% ELSE %]<p>There are no late orders.</p> |
219 |
[% ELSE %]<p>There are no late orders.</p> |
Lines 285-290
Link Here
|
285 |
</div> |
285 |
</div> |
286 |
</div> |
286 |
</div> |
287 |
|
287 |
|
|
|
288 |
<!-- Modal for to confirm claims printing. --> |
289 |
<div class="modal" tabindex="-1" role="dialog" id="print-claim-confirm"> |
290 |
<div class="modal-dialog" role="document"> |
291 |
<div class="modal-content"> |
292 |
<div class="modal-header"> |
293 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
294 |
<h4 class="modal-title">Print claim</h4> |
295 |
</div> |
296 |
<div class="modal-body"> |
297 |
<input type="checkbox" id="claim-increment" name="claim-increment"> |
298 |
<label for="claim-increment">Update claims count and claimed date ?</label> |
299 |
</div> |
300 |
<div class="modal-footer"> |
301 |
<button type="button" id="print-claim-confirmed" class="btn btn-default approve">Print</button> |
302 |
<button type="button" class="btn btn-default deny" data-dismiss="modal">Cancel</button> |
303 |
</div> |
304 |
</div><!-- /.modal-content --> |
305 |
</div><!-- /.modal-dialog --> |
306 |
</div><!-- /.modal --> |
307 |
|
288 |
[% MACRO jsinclude BLOCK %] |
308 |
[% MACRO jsinclude BLOCK %] |
289 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
309 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
290 |
[% INCLUDE 'datatables.inc' %] |
310 |
[% INCLUDE 'datatables.inc' %] |
Lines 371-383
Link Here
|
371 |
$("#type").val(""); |
391 |
$("#type").val(""); |
372 |
}); |
392 |
}); |
373 |
|
393 |
|
374 |
$('#print-claim').on('click', function(e) { |
394 |
$('#print-claim-confirmed').on('click', function(e) { |
375 |
e.preventDefault(); |
395 |
e.preventDefault(); |
376 |
var form = $(this).parents('form') |
396 |
var form = $('form[name="claim"]'); |
377 |
var op = form.find('input[name="op"]'); |
397 |
var op = form.find('input[name="op"]'); |
|
|
398 |
if( $('#claim-increment').is(':checked') ){ |
399 |
form.append('<input type="hidden" name="claim-increment" value="1"/>'); |
400 |
} |
378 |
|
401 |
|
379 |
op.val('print_alert'); |
402 |
op.val('print_alert'); |
380 |
form.submit(); |
403 |
form.submit(); |
|
|
404 |
$('#print-claim-confirm').modal('hide'); |
381 |
op.val('send_alert'); |
405 |
op.val('send_alert'); |
382 |
}); |
406 |
}); |
383 |
}); |
407 |
}); |
384 |
- |
|
|