Lines 464-498
Link Here
|
464 |
<form id="mainform" action="/cgi-bin/koha/sco/sco-main.pl" name="mainform" method="post"> |
464 |
<form id="mainform" action="/cgi-bin/koha/sco/sco-main.pl" name="mainform" method="post"> |
465 |
[% INCLUDE 'csrf-token.inc' %] |
465 |
[% INCLUDE 'csrf-token.inc' %] |
466 |
<fieldset> |
466 |
<fieldset> |
467 |
[% IF ( Koha.Preference('SelfCheckoutByLogin') ) %] |
467 |
<legend>Log in to your account</legend> |
468 |
<legend>Log in to your account</legend> |
468 |
<div class="row"> |
469 |
[% PROCESS login_label for="patronlogin" %] |
469 |
<div class="col-md-6"> |
470 |
<input type="text" id="patronlogin" class="focus noEnterSubmit" size="20" name="patronlogin" autocomplete="off"/> |
470 |
[% IF ( Koha.Preference('SelfCheckoutByLogin') ) %] |
471 |
<label for="patronpw">Password:</label> |
471 |
<div class="row"> |
472 |
<input type="password" id="patronpw" size="20" name="patronpw" autocomplete="off"/> |
472 |
<div class="col-md-12"> |
473 |
<fieldset class="action"> |
473 |
[% PROCESS login_label for="patronlogin" %] |
474 |
<button type="submit" class="btn btn-primary">Log in</button> |
474 |
</div> |
475 |
</fieldset> |
475 |
<div class="col-md-12"> |
476 |
[% ELSE %] |
476 |
<input type="text" id="patronlogin" class="form-control focus noEnterSubmit" size="20" name="patronlogin" autocomplete="off"/> |
477 |
<div class="form-row"> |
477 |
</div> |
478 |
<div class="col-auto"> |
478 |
<div class="col-md-12"> |
479 |
<label for="patronid">Please enter your card number:</label> |
479 |
<label for="patronpw">Password:</label> |
480 |
</div> |
480 |
</div> |
481 |
<div class="col-3"> |
481 |
<div class="col-md-12"> |
482 |
<input type="text" id="patronid" class="form-control focus" size="20" name="patronid" autocomplete="off" /> |
482 |
<input type="password" id="patronpw" class="form-control" size="20" name="patronpw" autocomplete="off"/> |
483 |
</div> |
483 |
</div> |
484 |
<div class="col-auto"> |
484 |
<div class="col-md-12"> |
485 |
<button type="submit" class="btn btn-primary">Submit</button> |
485 |
<button type="submit" class="btn btn-primary">Log in</button> |
486 |
</div> |
486 |
</div> |
487 |
</div> <!-- /.form-row --> |
487 |
</div> <!-- /.row --> |
488 |
[% END %] |
488 |
[% ELSE %] |
489 |
|
489 |
<div class="row"> |
|
|
490 |
<div class="col-md-12"> |
491 |
<label for="patronid">Please enter your card number:</label> |
492 |
</div> |
493 |
<div class="col-md-12"> |
494 |
<input type="text" id="patronid" class="form-control focus" size="20" name="patronid" autocomplete="off" /> |
495 |
</div> |
496 |
<div class="col-md-12"> |
497 |
<button type="submit" class="btn btn-primary">Submit</button> |
498 |
</div> |
499 |
</div> <!-- /.row --> |
500 |
[% END %] |
501 |
</div> <!-- /.col-md-6 --> |
502 |
</div> <!-- /.row --> |
490 |
[% FOREACH INPUT IN INPUTS %] |
503 |
[% FOREACH INPUT IN INPUTS %] |
491 |
<input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]"> |
504 |
<input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]"> |
492 |
[% END %] |
505 |
[% END %] |
493 |
<input type="hidden" name="op" value="cud-login" /> |
506 |
<input type="hidden" name="op" value="cud-login" /> |
494 |
</fieldset> |
507 |
</fieldset> |
495 |
</form> |
508 |
</form> <!-- /#mainform --> |
496 |
</div> <!-- / .sco_entry --> |
509 |
</div> <!-- / .sco_entry --> |
497 |
[% END # / IF validuser %] |
510 |
[% END # / IF validuser %] |
498 |
[% END # / UNLESS ( hide_main %] |
511 |
[% END # / UNLESS ( hide_main %] |
499 |
- |
|
|