Bug 16511: Making contracts actions buttons
To test:
1) Go to Acqui -> find a vendor
2) On Vendor details page (supplier.pl) confirm that Contracts table now
has one column called Actions
3) Confirm that Edit and Delete show as buttons
4) Confirm that buttons don't wrap on a narrower browser
5) Click Contracts tab
6) Confirm Actions column, Edit and Delete buttons, and button's don't
wrap
Sponsored-by: Catalyst IT
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 23c8dc0e63)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
parent
ddf80b2003
commit
92c08a6a4e
|
|
@ -117,7 +117,7 @@ function delete_contact(ev) {
|
|||
$(document).ready(function() {
|
||||
var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
{ "sType": "title-string", "aTargets" : [ "title-string" ] }
|
||||
],
|
||||
'sDom': 't'
|
||||
|
|
@ -369,8 +369,7 @@ function delete_contact(ev) {
|
|||
<th scope="col">Description</th>
|
||||
<th scope="col" class="title-string">Start date</th>
|
||||
<th scope="col" class="title-string">End date</th>
|
||||
<th scope="col"> </th>
|
||||
<th scope="col"> </th>
|
||||
<th scope="col">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -382,8 +381,10 @@ function delete_contact(ev) {
|
|||
<td>[% contract.contractdescription %]</td>
|
||||
<td><span title="[% contract.contractstartdate %]">[% contract.contractstartdate | $KohaDates %]</span></td>
|
||||
<td><span title="[% contract.contractenddate %]">[% contract.contractenddate | $KohaDates %]</span></td>
|
||||
<td><a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=[% contract.contractnumber %]&booksellerid=[% contract.booksellerid %]">Edit</a></td>
|
||||
<td><a href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&contractnumber=[% contract.contractnumber %]&booksellerid=[% contract.booksellerid %]">Delete</a></td>
|
||||
<td class="actions">
|
||||
<a class="btn btn-mini" href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=[% contract.contractnumber %]&booksellerid=[% contract.booksellerid %]"><i class="fa fa-pencil"></i> Edit</a>
|
||||
<a class="btn btn-mini" href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&contractnumber=[% contract.contractnumber %]&booksellerid=[% contract.booksellerid %]"><i class="fa fa-trash"></i> Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ function Check(ff) {
|
|||
<th scope="col">Description</th>
|
||||
<th scope="col">Start date</th>
|
||||
<th scope="col">End date</th>
|
||||
<th scope="col" colspan="2"> </th>
|
||||
<th scope="col">Actions</th>
|
||||
</tr>
|
||||
[% FOREACH loo IN loop %]
|
||||
<tr>
|
||||
|
|
@ -191,8 +191,10 @@ function Check(ff) {
|
|||
<td>[% loo.contractdescription %]</td>
|
||||
<td>[% loo.contractstartdate %]</td>
|
||||
<td>[% loo.contractenddate %]</td>
|
||||
<td><a href="[% loo.script_name %]?op=add_form&contractnumber=[% loo.contractnumber %]&booksellerid=[% loo.booksellerid %]">Edit</a></td>
|
||||
<td><a href="[% loo.script_name %]?op=delete_confirm&contractnumber=[% loo.contractnumber %]&booksellerid=[% loo.booksellerid %]">Delete</a></td>
|
||||
<td class="actions">
|
||||
<a href="[% loo.script_name %]?op=add_form&contractnumber=[% loo.contractnumber %]&booksellerid=[% loo.booksellerid %]" class="btn btn-mini"><i class="fa fa-pencil"></i> Edit</a>
|
||||
<a href="[% loo.script_name %]?op=delete_confirm&contractnumber=[% loo.contractnumber %]&booksellerid=[% loo.booksellerid %]" class="btn btn-mini"><i class="fa fa-trash"></i> Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</table>
|
||||
|
|
|
|||
Loading…
Reference in New Issue