Bug 18857 - Add buttons to left hand side of circ rules table
To test: * Apply this patch * Define some rules in the interface using the left hand buttons * Define some rules in the interface using the right hand buttons (scroll to see) * Delete some rules in the interface using the left hand buttons * Delete some rules in the interface using the right hand buttons (scroll to see) * Choose a rule to edit using the left hand buttons * Edit the rule, saving using the left hand button * Edit a rule, but clear the values using the left hand buttons * Choose a rule to edit using the right hand buttons (scroll to see) * Edit the rule, saving using the right hand buttons (scroll to see) * Edit a rule, but clear the values using the right hand buttons (scroll to see) Signed-off-by: Guillaume <guillaume_lair@ville-limoges.fr> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
19eb17c789
commit
ffe659e92a
|
|
@ -168,6 +168,7 @@ $(document).ready(function() {
|
|||
<tr>
|
||||
<th>Patron category</th>
|
||||
<th>Item type</th>
|
||||
<th>Actions</th>
|
||||
<th>Current checkouts allowed</th>
|
||||
<th>Current on-site checkouts allowed</th>
|
||||
<th>Loan period</th>
|
||||
|
|
@ -211,6 +212,11 @@ $(document).ready(function() {
|
|||
[% rule.translated_description %]
|
||||
[% END %]
|
||||
</td>
|
||||
<td class="actions">
|
||||
<a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
|
||||
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype %]&categorycode=[% rule.categorycode %]&branch=[% rule.current_branch %]"><i class="fa fa-trash"></i> Delete</a>
|
||||
</td>
|
||||
|
||||
<td>[% IF ( rule.unlimited_maxissueqty ) %]
|
||||
Unlimited
|
||||
[% ELSE %]
|
||||
|
|
@ -295,7 +301,8 @@ $(document).ready(function() {
|
|||
<td class="actions">
|
||||
<a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
|
||||
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype %]&categorycode=[% rule.categorycode %]&branch=[% rule.current_branch %]"><i class="fa fa-trash"></i> Delete</a>
|
||||
</td>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
[% END %]
|
||||
<tr id="edit_row">
|
||||
|
|
@ -315,6 +322,11 @@ $(document).ready(function() {
|
|||
[% END %]
|
||||
</select>
|
||||
</td>
|
||||
<td class="actions">
|
||||
<input type="hidden" name="branch" value="[% current_branch %]"/>
|
||||
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button>
|
||||
<button name="cancel" class="clear_edit btn btn-default btn-xs"><i class="fa fa-undo"></i> Clear</button>
|
||||
</td>
|
||||
<td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td>
|
||||
<td><input type="text" name="maxonsiteissueqty" id="maxonsiteissueqty" size="3" /></td>
|
||||
<td><input type="text" name="issuelength" id="issuelength" size="3" /> </td>
|
||||
|
|
@ -395,6 +407,7 @@ $(document).ready(function() {
|
|||
<tr>
|
||||
<th>Patron category</th>
|
||||
<th>Item type</th>
|
||||
<th> </th>
|
||||
<th>Current checkouts allowed</th>
|
||||
<th>Current on-site checkouts allowed</th>
|
||||
<th>Loan period</th>
|
||||
|
|
@ -420,7 +433,7 @@ $(document).ready(function() {
|
|||
<th>Item level holds</th>
|
||||
<th>Article requests</th>
|
||||
<th>Rental discount (%)</th>
|
||||
<th colspan="2"> </th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</tbody>
|
||||
|
|
|
|||
Loading…
Reference in New Issue