security/acme-client: update tooltip style, closes #2188

This commit is contained in:
Frank Wall
2021-08-04 12:48:58 +02:00
parent 1e0e4dc323
commit e4684ec47e
2 changed files with 11 additions and 8 deletions
+1
View File
@@ -18,6 +18,7 @@ Changed:
* rename "Let's Encrypt Environment" to "ACME CA" (#2361) * rename "Let's Encrypt Environment" to "ACME CA" (#2361)
* preserve old LE accounts/certs by adding a compatibility layer (#2361) * preserve old LE accounts/certs by adding a compatibility layer (#2361)
* remove the legacy log file and only rely on syslog logging (#2366) * remove the legacy log file and only rely on syslog logging (#2366)
* update tooltip style for 21.7 (#2188)
Removed: Removed:
* remove obsolete account parameters: certificateAuthority, lastUpdate * remove obsolete account parameters: certificateAuthority, lastUpdate
@@ -59,13 +59,13 @@ POSSIBILITY OF SUCH DAMAGE.
url: '/api/acmeclient/certificates/search', url: '/api/acmeclient/certificates/search',
formatters: { formatters: {
"commands": function (column, row) { "commands": function (column, row) {
return "<button type=\"button\" title=\"{{ lang._('edit certificate') }}\" class=\"btn btn-xs btn-default command-edit\" data-row-id=\"" + row.uuid + "\"><span class=\"fa fa-pencil\"></span></button> " + return "<button type=\"button\" title=\"{{ lang._('edit certificate') }}\" class=\"btn btn-xs btn-default command-edit bootgrid-tooltip\" data-row-id=\"" + row.uuid + "\"><span class=\"fa fa-pencil\"></span></button> " +
"<button type=\"button\" title=\"{{ lang._('copy certificate') }}\" class=\"btn btn-xs btn-default command-copy\" data-row-id=\"" + row.uuid + "\"><span class=\"fa fa-clone\"></span></button>" + "<button type=\"button\" title=\"{{ lang._('copy certificate') }}\" class=\"btn btn-xs btn-default command-copy bootgrid-tooltip\" data-row-id=\"" + row.uuid + "\"><span class=\"fa fa-clone\"></span></button>" +
"<button type=\"button\" title=\"{{ lang._('issue or renew certificate') }}\" class=\"btn btn-xs btn-default command-sign\" data-row-id=\"" + row.uuid + "\"><span class=\"fa fa-repeat\"></span></button>" + "<button type=\"button\" title=\"{{ lang._('issue or renew certificate') }}\" class=\"btn btn-xs btn-default command-sign bootgrid-tooltip\" data-row-id=\"" + row.uuid + "\"><span class=\"fa fa-repeat\"></span></button>" +
"<button type=\"button\" title=\"{{ lang._('run automations') }}\" class=\"btn btn-xs btn-default command-automation\" data-row-id=\"" + row.uuid + "\"><span class=\"fa fa-paper-plane\"></span></button>" + "<button type=\"button\" title=\"{{ lang._('run automations') }}\" class=\"btn btn-xs btn-default command-automation bootgrid-tooltip\" data-row-id=\"" + row.uuid + "\"><span class=\"fa fa-paper-plane\"></span></button>" +
"<button type=\"button\" title=\"{{ lang._('revoke certificate') }}\" class=\"btn btn-xs btn-default command-revoke\" data-row-id=\"" + row.uuid + "\"><span class=\"fa fa-power-off\"></span></button>" + "<button type=\"button\" title=\"{{ lang._('revoke certificate') }}\" class=\"btn btn-xs btn-default command-revoke bootgrid-tooltip\" data-row-id=\"" + row.uuid + "\"><span class=\"fa fa-power-off\"></span></button>" +
"<button type=\"button\" title=\"{{ lang._('reset certificate') }}\" class=\"btn btn-xs btn-default command-removekey\" data-row-id=\"" + row.uuid + "\"><span class=\"fa fa-history\"></span></button>" + "<button type=\"button\" title=\"{{ lang._('reset certificate') }}\" class=\"btn btn-xs btn-default command-removekey bootgrid-tooltip\" data-row-id=\"" + row.uuid + "\"><span class=\"fa fa-history\"></span></button>" +
"<button type=\"button\" title=\"{{ lang._('remove certificate') }}\" class=\"btn btn-xs btn-default command-delete\" data-row-id=\"" + row.uuid + "\"><span class=\"fa fa-trash-o\"></span></button>"; "<button type=\"button\" title=\"{{ lang._('remove certificate') }}\" class=\"btn btn-xs btn-default command-delete bootgrid-tooltip\" data-row-id=\"" + row.uuid + "\"><span class=\"fa fa-trash-o\"></span></button>";
}, },
"rowtoggle": function (column, row) { "rowtoggle": function (column, row) {
if (parseInt(row[column.id], 2) == 1) { if (parseInt(row[column.id], 2) == 1) {
@@ -140,6 +140,9 @@ POSSIBILITY OF SUCH DAMAGE.
*/ */
var grid_certificates = $("#grid-certificates").bootgrid(gridopt).on("loaded.rs.jquery.bootgrid", function (e) var grid_certificates = $("#grid-certificates").bootgrid(gridopt).on("loaded.rs.jquery.bootgrid", function (e)
{ {
// toggle all rendered tooltips (once for all)
$('.bootgrid-tooltip').tooltip();
// scale footer on resize // scale footer on resize
$(this).find("tfoot td:first-child").attr('colspan',$(this).find("th").length - 1); $(this).find("tfoot td:first-child").attr('colspan',$(this).find("th").length - 1);
$(this).find('tr[data-row-id]').each(function(){ $(this).find('tr[data-row-id]').each(function(){
@@ -209,7 +212,6 @@ POSSIBILITY OF SUCH DAMAGE.
* copy actions for items from opnsense_bootgrid_plugin.js * copy actions for items from opnsense_bootgrid_plugin.js
*/ */
grid_certificates.on("loaded.rs.jquery.bootgrid", function(){ grid_certificates.on("loaded.rs.jquery.bootgrid", function(){
// edit dialog id to use // edit dialog id to use
var editDlg = $(this).attr('data-editDialog'); var editDlg = $(this).attr('data-editDialog');
var gridId = $(this).attr('id'); var gridId = $(this).attr('id');