Lines 78-101
export default {
Link Here
|
78 |
searchable: false, |
78 |
searchable: false, |
79 |
orderable: false, |
79 |
orderable: false, |
80 |
}, |
80 |
}, |
81 |
{ |
81 |
...(isUserPermitted( |
82 |
title: __("Actions"), |
82 |
"CAN_user_acquisition_contracts_manage" |
83 |
data: "contractnumber", |
83 |
) |
84 |
searchable: false, |
84 |
? [ |
85 |
orderable: false, |
85 |
{ |
86 |
render: function (data, type, row, meta) { |
86 |
title: __("Actions"), |
87 |
return ( |
87 |
data: "contractnumber", |
88 |
`<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=${row.contractnumber}&booksellerid=${row.booksellerid}"><i class="fa-solid fa-pencil" aria-hidden="true"></i>` + |
88 |
searchable: false, |
89 |
" " + |
89 |
orderable: false, |
90 |
__("Edit") + |
90 |
render: function (data, type, row, meta) { |
91 |
"</a>" + |
91 |
return ( |
92 |
`<a style="margin-left: 5px;" class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&contractnumber=${row.contractnumber}&booksellerid=${row.booksellerid}"><i class="fa-solid fa-trash-can" aria-hidden="true"></i>` + |
92 |
`<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=${row.contractnumber}&booksellerid=${row.booksellerid}"><i class="fa-solid fa-pencil" aria-hidden="true"></i>` + |
93 |
" " + |
93 |
" " + |
94 |
__("Delete") + |
94 |
__("Edit") + |
95 |
"</a>" |
95 |
"</a>" + |
96 |
) |
96 |
`<a style="margin-left: 5px;" class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&contractnumber=${row.contractnumber}&booksellerid=${row.booksellerid}"><i class="fa-solid fa-trash-can" aria-hidden="true"></i>` + |
97 |
}, |
97 |
" " + |
98 |
}, |
98 |
__("Delete") + |
|
|
99 |
"</a>" |
100 |
) |
101 |
}, |
102 |
}, |
103 |
] |
104 |
: []), |
99 |
], |
105 |
], |
100 |
}) |
106 |
}) |
101 |
) |
107 |
) |
102 |
- |
|
|