|
Lines 1-142
Link Here
|
| 1 |
[% USE raw %] |
|
|
| 2 |
[% USE Asset %] |
| 3 |
[% INCLUDE 'doc-head-open.inc' %] |
| 4 |
<title>Koha › Web installer › |
| 5 |
[% IF all_done %] |
| 6 |
Complete |
| 7 |
[% ELSE %] |
| 8 |
Create circulation rule |
| 9 |
[% END %] |
| 10 |
</title> |
| 11 |
[% INCLUDE 'installer-doc-head-close.inc' %] |
| 12 |
</head> |
| 13 |
|
| 14 |
<body id="installer" class="installer"> |
| 15 |
<div class="container-fluid"> |
| 16 |
<div class="row"> |
| 17 |
<div id="onboarding-step7" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2"> |
| 18 |
<h1 id="logo"><a href="#">Koha</a></h1> |
| 19 |
|
| 20 |
[% IF all_done %] |
| 21 |
<h2>Web installer › Complete</h2> |
| 22 |
[% INCLUDE 'onboarding_messages.inc' %] |
| 23 |
<h3>Congratulations, you have finished and are ready to use Koha</h3> |
| 24 |
<a class="btn btn-success" href="/cgi-bin/koha/mainpage.pl">Start using Koha</a> |
| 25 |
[% ELSE %] |
| 26 |
|
| 27 |
<h2>Web installer › Create a new circulation rule </h2> |
| 28 |
|
| 29 |
[% INCLUDE 'onboarding_messages.inc' %] |
| 30 |
|
| 31 |
<form name="createcirculationrule" method="post" action="onboarding.pl"> |
| 32 |
<fieldset class="rows"> |
| 33 |
<input type="hidden" name="step" value="7"/> |
| 34 |
<input type="hidden" name="op" value="add_validate_circ_rule" /> |
| 35 |
<ol> |
| 36 |
<li> |
| 37 |
<label for="branchname" class="required"> Library branch</label> |
| 38 |
<select name="branch" id="branchname" required="required"> |
| 39 |
<option value=""> Choose</option> |
| 40 |
<option value="*" selected="selected">All</option> |
| 41 |
[% FOREACH library IN libraries %] |
| 42 |
<option value="[% library.branchcode | html %]"> [% library.branchname | html %]</option> |
| 43 |
[% END %] |
| 44 |
</select> |
| 45 |
<span class="required">Required</span> |
| 46 |
</li> |
| 47 |
<li> |
| 48 |
<label for="categorycode" class="required">Patron category: </label> |
| 49 |
<select name="categorycode" id="categorycode" required="required"> |
| 50 |
<option value=""> Choose</option> |
| 51 |
<option value="*" selected="selected">All</option> |
| 52 |
[% FOREACH category IN categories %] |
| 53 |
<option value = "[% category.categorycode | html %]"> [% category.description | html %]</option> |
| 54 |
[%END%] |
| 55 |
</select> |
| 56 |
<span class="required">Required</span> |
| 57 |
</li> |
| 58 |
|
| 59 |
<li> |
| 60 |
<label for="itemtype"> Item type: </label> |
| 61 |
<select id="itemtype" name="itemtype" required="required"> |
| 62 |
<option value=""> Choose </option> |
| 63 |
<option value="*" selected="selected">All</option> |
| 64 |
[% FOREACH item IN itemtypes %] |
| 65 |
<option value = "[% item.itemtype | html %]"> [% item.itemtype | html %] |
| 66 |
[%END%] |
| 67 |
</select> |
| 68 |
<span class="required"> Required</span> |
| 69 |
</li> |
| 70 |
<li> |
| 71 |
<label for="maxissueqty" class="required">Current checkouts allowed: </label> |
| 72 |
<input type="number" min="0" name="maxissueqty" id="maxissueqty" size="10" value="50" class="required" required="required" /> |
| 73 |
<span class="required">Required</span> |
| 74 |
</li> |
| 75 |
|
| 76 |
<li> |
| 77 |
<label for="issuelength" class="required">Loan period: </label> |
| 78 |
<input type="number" min="0" name="issuelength" id="issuelength" size="10" value="14" class="required" required="required" /> |
| 79 |
<span class="required">Required</span> |
| 80 |
</li> |
| 81 |
<li> |
| 82 |
<label for="lengthunit">Units: </label> |
| 83 |
<select name="lengthunit" id="lengthunit" required="required"> |
| 84 |
<option value=""> Choose </option> |
| 85 |
[% SET units = 'days' %] |
| 86 |
[% IF category %] |
| 87 |
[% SET default_privacy = category.default_privacy %] |
| 88 |
[% END %] |
| 89 |
|
| 90 |
[% SWITCH units %] |
| 91 |
[% CASE 'days' %] |
| 92 |
<option value="days" selected="selected">Days</option> |
| 93 |
<option value="hours">Hours</option> |
| 94 |
[% CASE 'hours' %] |
| 95 |
<option value="days">Days</option> |
| 96 |
<option value="hours" selected="selected">Hours</option> |
| 97 |
[% END %] |
| 98 |
</select> |
| 99 |
</li> |
| 100 |
<li> |
| 101 |
<label for="renewalsallowed" class="required">Renewals allowed: </label> |
| 102 |
<input type="number" min="0" name="renewalsallowed" id="renewalsallowed" size="10" max="10" value="10" class="required" required="required" /> |
| 103 |
<span class="required">Required</span> |
| 104 |
</li> |
| 105 |
|
| 106 |
<li> |
| 107 |
<label for="renewalperiod" class="required">Renewals period: </label> |
| 108 |
<input type="number" min="0" name="renewalperiod" id="renewalperiod" size="10" value="14" class="required" required="required" /> |
| 109 |
<span class="required">Required</span> |
| 110 |
</li> |
| 111 |
|
| 112 |
<li> |
| 113 |
<label for="onshelfholds">On shelf holds allowed: </label> |
| 114 |
<select name="onshelfholds" id="onshelfholds" required="required"> |
| 115 |
<option value="">Choose</option> |
| 116 |
<option value="1" selected="selected">Yes</option> |
| 117 |
<option value="0">If any unavailable</option> |
| 118 |
<option value="2">If all unavailable</option> |
| 119 |
</select> |
| 120 |
</li> |
| 121 |
</ol> |
| 122 |
<p> |
| 123 |
To create another circulation rule, go to: |
| 124 |
<span class="breadcrumbs">Administration › Circulation and fine rules </span> |
| 125 |
</p> |
| 126 |
|
| 127 |
</fieldset> |
| 128 |
|
| 129 |
<input type="submit" class="btn btn-primary" value="Submit" /> |
| 130 |
</form> |
| 131 |
[% END %] |
| 132 |
</div> <!-- / #onboarding-step7 --> |
| 133 |
</div> <!-- / .row --> |
| 134 |
</div><!-- / .container-fluid --> |
| 135 |
|
| 136 |
[% MACRO jsinclude BLOCK %] |
| 137 |
[% INCLUDE 'validator-strings.inc' %] |
| 138 |
[% INCLUDE 'installer-strings.inc' %] |
| 139 |
[% Asset.js("js/onboarding.js") | $raw %] |
| 140 |
[% END %] |
| 141 |
|
| 142 |
[% INCLUDE 'installer-intranet-bottom.inc' %] |
| 143 |
- |