|
Lines 21-39
Link Here
|
| 21 |
<li> |
21 |
<li> |
| 22 |
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
22 |
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
| 23 |
</li> |
23 |
</li> |
| 24 |
<li> |
|
|
| 25 |
<a href="/cgi-bin/koha/admin/restrictions.pl">Patron restrictions</a> |
| 26 |
</li> |
| 27 |
|
24 |
|
| 28 |
[% IF op == 'list' %] |
25 |
[% IF op == 'list' %] |
| 29 |
<li> |
26 |
<li> |
| 30 |
<a href="#" aria-current="page"> |
27 |
<a href="#" aria-current="page"> |
| 31 |
All restrictions |
28 |
Patron restrictions |
| 32 |
</a> |
29 |
</a> |
| 33 |
</li> |
30 |
</li> |
| 34 |
[% END %] |
31 |
[% END %] |
| 35 |
|
32 |
|
| 36 |
[% IF op == 'add_form' %] |
33 |
[% IF op == 'add_form' %] |
|
|
34 |
<li> |
| 35 |
<a href="/cgi-bin/koha/admin/restrictions.pl">Patron restrictions</a> |
| 36 |
</li> |
| 37 |
[% IF restriction %] |
37 |
[% IF restriction %] |
| 38 |
<li> |
38 |
<li> |
| 39 |
<a href="#" aria-current="page"> |
39 |
<a href="#" aria-current="page"> |
|
Lines 50-55
Link Here
|
| 50 |
[% END %] |
50 |
[% END %] |
| 51 |
|
51 |
|
| 52 |
[% IF op == 'delete_confirm' %] |
52 |
[% IF op == 'delete_confirm' %] |
|
|
53 |
<li> |
| 54 |
<a href="/cgi-bin/koha/admin/restrictions.pl">Patron restrictions</a> |
| 55 |
</li> |
| 53 |
<li> |
56 |
<li> |
| 54 |
<a href="#" aria-current="page"> |
57 |
<a href="#" aria-current="page"> |
| 55 |
Delete restriction? |
58 |
Delete restriction? |
|
Lines 99-104
Link Here
|
| 99 |
<input type="text" value="[% restriction.display_text | html %]" name="display_text" id="display_text" size="50" maxlength="50" class="required" required="required" /> |
102 |
<input type="text" value="[% restriction.display_text | html %]" name="display_text" id="display_text" size="50" maxlength="50" class="required" required="required" /> |
| 100 |
<span class="required">Required</span> |
103 |
<span class="required">Required</span> |
| 101 |
</li> |
104 |
</li> |
|
|
105 |
<li> |
| 106 |
<label for="can_be_added_manually">Can be manually added?</label> |
| 107 |
[% IF restriction && restriction.is_system %] |
| 108 |
[% IF restriction.can_be_added_manually %]Yes[% ELSE %]No[% END %] |
| 109 |
[% ELSIF restriction.can_be_added_manually %] |
| 110 |
<input type="checkbox" name="can_be_added_manually" id="can_be_added_manually" checked="checked" value="1" /> |
| 111 |
[% ELSE %] |
| 112 |
<input type="checkbox" name="can_be_added_manually" id="can_be_added_manually" value="1" /> |
| 113 |
[% END %] |
| 114 |
</li> |
| 102 |
[% ELSE %] |
115 |
[% ELSE %] |
| 103 |
<li> |
116 |
<li> |
| 104 |
<label for="code" class="required">Code: </label> |
117 |
<label for="code" class="required">Code: </label> |
|
Lines 110-115
Link Here
|
| 110 |
<input type="text" name="display_text" id="display_text" size="50" maxlength="50" class="required" required="required" /> |
123 |
<input type="text" name="display_text" id="display_text" size="50" maxlength="50" class="required" required="required" /> |
| 111 |
<span class="required">Required</span> |
124 |
<span class="required">Required</span> |
| 112 |
</li> |
125 |
</li> |
|
|
126 |
<li> |
| 127 |
<label for="can_be_added_manually">Can be manually added?</label> |
| 128 |
[% IF restriction && restriction.is_system %] |
| 129 |
[% IF restriction.can_be_added_manually %]Yes[% ELSE %]No[% END %] |
| 130 |
[% ELSIF restriction.can_be_added_manually %] |
| 131 |
<input type="checkbox" name="can_be_added_manually" id="can_be_added_manually" checked="checked" value="1" /> |
| 132 |
[% ELSE %] |
| 133 |
<input type="checkbox" name="can_be_added_manually" id="can_be_added_manually" value="1" /> |
| 134 |
[% END %] |
| 135 |
</li> |
| 113 |
[% END %] |
136 |
[% END %] |
| 114 |
</ol> |
137 |
</ol> |
| 115 |
</fieldset> |
138 |
</fieldset> |
|
Lines 156-161
Link Here
|
| 156 |
<tr> |
179 |
<tr> |
| 157 |
<th scope="col">Code</th> |
180 |
<th scope="col">Code</th> |
| 158 |
<th scope="col">Label</th> |
181 |
<th scope="col">Label</th> |
|
|
182 |
<th scope="col">Manual</th> |
| 159 |
<th scope="col">Default</th> |
183 |
<th scope="col">Default</th> |
| 160 |
<th scope="col">Actions</th> |
184 |
<th scope="col">Actions</th> |
| 161 |
</tr> |
185 |
</tr> |
|
Lines 170-180
Link Here
|
| 170 |
[% restriction.display_text | html %] |
194 |
[% restriction.display_text | html %] |
| 171 |
</td> |
195 |
</td> |
| 172 |
<td> |
196 |
<td> |
| 173 |
[% IF restriction.is_system %]Yes[% END %] |
197 |
[% IF restriction.can_be_added_manually %]Yes[% END %] |
|
|
198 |
</td> |
| 199 |
<td> |
| 200 |
[% IF restriction.default_value %]Yes[% END %] |
| 174 |
</td> |
201 |
</td> |
| 175 |
<td class="actions"> |
202 |
<td class="actions"> |
| 176 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/restrictions.pl?op=add_form&code=[% restriction.code | uri %]"><i class="fa fa-pencil"></i> Edit</a> |
203 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/restrictions.pl?op=add_form&code=[% restriction.code | uri %]"><i class="fa fa-pencil"></i> Edit</a> |
| 177 |
[% IF !restriction.readonly %] |
204 |
[% IF !restriction.is_system %] |
| 178 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/restrictions.pl?op=delete_confirm&code=[% restriction.code | uri %]"><i class="fa fa-trash"></i> Delete</a> |
205 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/restrictions.pl?op=delete_confirm&code=[% restriction.code | uri %]"><i class="fa fa-trash"></i> Delete</a> |
| 179 |
[% END %] |
206 |
[% END %] |
| 180 |
</td> |
207 |
</td> |