Bug 17162: Moving MARC tags structure actions into a drop down menu
To test: 1) Go to Admin -> MARC bibliographic framework 2) Go to Actions -> MARC structure for any framework 3) Confirm that three links, Subfields, Edit and Delete, now show in drop-down menu with appropriate font awesome icons 4) Confirm that Subfields takes you to the right page and Edit and Delete work as expected Sponsored-by: Catalyst IT Patch behaves as expected. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
8abf2e5a40
commit
b9cabb23c3
1 changed files with 24 additions and 10 deletions
|
@ -15,7 +15,7 @@
|
|||
$(document).ready(function() {
|
||||
$("#table_marctagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
],
|
||||
"sPaginationType": "four_button"
|
||||
}));
|
||||
|
@ -194,9 +194,7 @@ $(document).ready(function() {
|
|||
<th>Repeatable</th>
|
||||
<th>Mandatory</th>
|
||||
<th>Auth value</th>
|
||||
<th>Subfields</th>
|
||||
<th>Edit</th>
|
||||
<th>Delete</th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -216,9 +214,17 @@ $(document).ready(function() {
|
|||
<td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
|
||||
<td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
|
||||
<td>[% loo.authorised_value %]</td>
|
||||
<td><a href="[% loo.subfield_link %]">subfields</a></td>
|
||||
<td><a href="[% loo.edit %]">Edit</a></td>
|
||||
<td><a href="[% loo.delete %]">Delete</a></td>
|
||||
<td>
|
||||
<div class="dropdown">
|
||||
<a class="btn btn-mini dropdown-toggle" id="marctagactions[% loo.tagfield %]" role="button" data-toggle="dropdown" href="#">
|
||||
Actions <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="marctagactions[% loo.tagfield %]">
|
||||
<li><a href="[% loo.subfield_link %]"><i class="fa fa-eye"></i> Subfields</a></li>
|
||||
<li><a href="[% loo.edit %]"><i class="fa fa-pencil"></i> Edit</a></li>
|
||||
<li><a href="[% loo.delete %]"><i class="fa fa-trash"></i> Delete</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
|
@ -229,9 +235,17 @@ $(document).ready(function() {
|
|||
<td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
|
||||
<td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
|
||||
<td>[% loo.authorised_value %]</td>
|
||||
<td><a href="[% loo.subfield_link %]">Subfields</a></td>
|
||||
<td><a href="[% loo.edit %]">Edit</a></td>
|
||||
<td><a href="[% loo.delete %]">Delete</a></td>
|
||||
<td>
|
||||
<div class="dropdown">
|
||||
<a class="btn btn-mini dropdown-toggle" id="marctagactions[% loo.tagfield %]" role="button" data-toggle="dropdown" href="#">
|
||||
Actions <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="marctagactions[% loo.tagfield %]">
|
||||
<li><a href="[% loo.subfield_link %]"><i class="fa fa-eye"></i> Subfields</a></li>
|
||||
<li><a href="[% loo.edit %]"><i class="fa fa-pencil"></i> Edit</a></li>
|
||||
<li><a href="[% loo.delete %]"><i class="fa fa-trash"></i> Delete</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
|
Loading…
Reference in a new issue