Lucas Gass
b6a662848b
Further testing: 1. Turn off UseCirculationDesks, make sure everything still works. 2. Turn off UseCashRegisters, make sure everthing still works. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
122 lines
5.3 KiB
Text
122 lines
5.3 KiB
Text
[% USE raw %]
|
|
[% USE Asset %]
|
|
[% USE Branches %]
|
|
[% USE Desks %]
|
|
[% USE Registers %]
|
|
[% USE Koha %]
|
|
[% PROCESS 'i18n.inc' %]
|
|
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>[% FILTER collapse %]
|
|
[% IF Koha.Preference('UseCirculationDesks') %]
|
|
[% t("Set library and desk") | html %] ›
|
|
[% ELSE %]
|
|
[% t("Set library") | html %] ›
|
|
[% END %]
|
|
[% t("Circulation") | html %] ›
|
|
[% t("Koha") | html %]
|
|
[% END %]</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<style>
|
|
.noshow {display: none;}
|
|
</style>
|
|
</head>
|
|
<body id="circ_set-library" class="circ">
|
|
[% WRAPPER 'header.inc' %]
|
|
[% INCLUDE 'circ-search.inc' %]
|
|
[% END %]
|
|
|
|
[% WRAPPER 'sub-header.inc' %]
|
|
[% WRAPPER breadcrumbs %]
|
|
[% WRAPPER breadcrumb_item %]
|
|
<a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
|
|
[% END %]
|
|
[% WRAPPER breadcrumb_item bc_active= 1 %]
|
|
<span>Set library</span>
|
|
[% END %]
|
|
[% END #/ WRAPPER breadcrumbs %]
|
|
[% END #/ WRAPPER sub-header.inc %]
|
|
|
|
<div class="main container-fluid">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<main>
|
|
<div class="row">
|
|
[% IF Koha.Preference('CircSidebar') %]
|
|
<div class="col-sm-10 col-sm-push-2">
|
|
[% ELSE %]
|
|
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
|
|
[% END %]
|
|
[% INCLUDE 'messages.inc' %]
|
|
<h1>Set library</h1>
|
|
<form method="post" action="set-library.pl">
|
|
[% INCLUDE 'csrf-token.inc' %]
|
|
<input type="hidden" name="op" value="cud-set-library" />
|
|
[% IF ( CAN_user_superlibrarian || CAN_user_loggedinlibrary ) %]
|
|
<fieldset class="rows">
|
|
<legend>Set library</legend>
|
|
<ol>
|
|
<li><label for="branch">Choose library:</label>
|
|
<select name="branch" id="branch">
|
|
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch, unfiltered => 1 ) %]
|
|
</select></li>
|
|
</ol>
|
|
</fieldset>
|
|
[% ELSE %]
|
|
<select name="branch" id="branch" style="visibility:hidden;">
|
|
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
|
|
</select>
|
|
[% END %]
|
|
|
|
[% IF Koha.Preference('UseCirculationDesks') && Desks.all %]
|
|
<fieldset class="rows">
|
|
<legend>Set desk</legend>
|
|
<ol>
|
|
<li><label for="desk_id">Choose desk:</label>
|
|
<select name="desk_id" id="desk_id">
|
|
[% PROCESS options_for_desks desks => Desks.all(), selected => desk_id %]
|
|
</select></li>
|
|
</ol>
|
|
</fieldset>
|
|
[% END %]
|
|
[% IF Koha.Preference('UseCashRegisters') %]
|
|
<fieldset class="rows">
|
|
<legend>Set cash register</legend>
|
|
<ol>
|
|
<li>
|
|
<label for="register_id">Choose cash register:</label>
|
|
<select name="register_id" id="register_id">
|
|
<option id="noregister" selected="selected" value="">-- None --</option>
|
|
[% PROCESS options_for_registers registers => Registers.all() %]
|
|
</select>
|
|
</li>
|
|
</ol>
|
|
</fieldset>
|
|
[% END %]
|
|
<fieldset class="action">
|
|
<input type="submit" class="btn btn-primary" value="Submit" />
|
|
<a class="cancel" id="cancel_set_library" href="[% referer or '/cgi-bin/koha/mainpage.pl' %]">Cancel</a>
|
|
</fieldset>
|
|
<div class="noshow">
|
|
<input type="hidden" name="oldreferer" value="[% referer or "/cgi-bin/koha/mainpage.pl" %]" />
|
|
</div>
|
|
</form>
|
|
<!-- /updated -->
|
|
[% IF Koha.Preference('CircSidebar') %]
|
|
</div> <!-- /.col-sm-10.col-sm-push-2 -->
|
|
<div class="col-sm-2 col-sm-pull-10">
|
|
<aside>
|
|
[% INCLUDE 'circ-nav.inc' %]
|
|
</aside>
|
|
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
|
|
</div> <!-- /.row -->
|
|
[% END %]
|
|
</main>
|
|
</div> <!-- /.col-sm-12 -->
|
|
</div> <!-- /.row -->
|
|
[% MACRO jsinclude BLOCK %]
|
|
[% Asset.js("js/desk_selection.js") | $raw %]
|
|
[% Asset.js("js/register_selection.js") | $raw %]
|
|
[% END %]
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|