Lines 103-118
Link Here
|
103 |
<input type="text" value="[% restriction.display_text | html %]" name="display_text" id="display_text" size="50" maxlength="50" class="required" required="required" /> |
103 |
<input type="text" value="[% restriction.display_text | html %]" name="display_text" id="display_text" size="50" maxlength="50" class="required" required="required" /> |
104 |
<span class="required">Required</span> |
104 |
<span class="required">Required</span> |
105 |
</li> |
105 |
</li> |
106 |
<li> |
|
|
107 |
<label for="can_be_added_manually">Can be manually added?</label> |
108 |
[% IF restriction && restriction.is_system %] |
109 |
[% IF restriction.can_be_added_manually %]Yes[% ELSE %]No[% END %] |
110 |
[% ELSIF restriction.can_be_added_manually %] |
111 |
<input type="checkbox" name="can_be_added_manually" id="can_be_added_manually" checked="checked" value="1" /> |
112 |
[% ELSE %] |
113 |
<input type="checkbox" name="can_be_added_manually" id="can_be_added_manually" value="1" /> |
114 |
[% END %] |
115 |
</li> |
116 |
[% ELSE %] |
106 |
[% ELSE %] |
117 |
<li> |
107 |
<li> |
118 |
<label for="code" class="required">Code: </label> |
108 |
<label for="code" class="required">Code: </label> |
Lines 124-139
Link Here
|
124 |
<input type="text" name="display_text" id="display_text" size="50" maxlength="50" class="required" required="required" /> |
114 |
<input type="text" name="display_text" id="display_text" size="50" maxlength="50" class="required" required="required" /> |
125 |
<span class="required">Required</span> |
115 |
<span class="required">Required</span> |
126 |
</li> |
116 |
</li> |
127 |
<li> |
|
|
128 |
<label for="can_be_added_manually">Can be manually added?</label> |
129 |
[% IF restriction && restriction.is_system %] |
130 |
[% IF restriction.can_be_added_manually %]Yes[% ELSE %]No[% END %] |
131 |
[% ELSIF restriction.can_be_added_manually %] |
132 |
<input type="checkbox" name="can_be_added_manually" id="can_be_added_manually" checked="checked" value="1" /> |
133 |
[% ELSE %] |
134 |
<input type="checkbox" name="can_be_added_manually" id="can_be_added_manually" value="1" /> |
135 |
[% END %] |
136 |
</li> |
137 |
[% END %] |
117 |
[% END %] |
138 |
</ol> |
118 |
</ol> |
139 |
</fieldset> |
119 |
</fieldset> |
Lines 180-186
Link Here
|
180 |
<tr> |
160 |
<tr> |
181 |
<th scope="col">Code</th> |
161 |
<th scope="col">Code</th> |
182 |
<th scope="col">Label</th> |
162 |
<th scope="col">Label</th> |
183 |
<th scope="col">Manual</th> |
|
|
184 |
<th scope="col">Default</th> |
163 |
<th scope="col">Default</th> |
185 |
<th scope="col">Actions</th> |
164 |
<th scope="col">Actions</th> |
186 |
</tr> |
165 |
</tr> |
Lines 195-210
Link Here
|
195 |
[% PROCESS restriction_type_description %] |
174 |
[% PROCESS restriction_type_description %] |
196 |
</td> |
175 |
</td> |
197 |
<td> |
176 |
<td> |
198 |
[% IF restriction.can_be_added_manually %]Yes[% END %] |
177 |
[% IF restriction.is_default %]Yes[% END %] |
199 |
</td> |
|
|
200 |
<td> |
201 |
[% IF restriction.default_value %]Yes[% END %] |
202 |
</td> |
178 |
</td> |
203 |
<td class="actions"> |
179 |
<td class="actions"> |
204 |
<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> |
180 |
<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> |
205 |
[% IF !restriction.is_system %] |
181 |
[% IF !restriction.is_system && !restriction.is_default %] |
206 |
<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> |
182 |
<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> |
207 |
[% END %] |
183 |
[% END %] |
|
|
184 |
[% IF !restriction.is_system && !restriction.is_default %] |
185 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/restrictions.pl?op=make_default&code=[% restriction.code | uri %]"><i class="fa fa-archive"></i> Make default</a> |
186 |
[% END %] |
208 |
</td> |
187 |
</td> |
209 |
</tr> |
188 |
</tr> |
210 |
[% END %] |
189 |
[% END %] |
211 |
- |
|
|