diff --git a/Netdisco/share/public/css/netdisco.css b/Netdisco/share/public/css/netdisco.css index bbddc9e4..e603a95f 100644 --- a/Netdisco/share/public/css/netdisco.css +++ b/Netdisco/share/public/css/netdisco.css @@ -152,6 +152,11 @@ div.content > div.tab-content table.nd_floatinghead thead { text-align: center; } +/* undo nd_center-cell when in a modial dialog (which lives in table cell) */ +.table .nd_center-cell .modal-body { + text-align: left; +} + /* fix layout of form fields inside the (topology) table */ td div.input-append { margin-bottom: 0px; diff --git a/Netdisco/share/views/ajax/admintask/topology.tt b/Netdisco/share/views/ajax/admintask/topology.tt index cef965d4..b7a4e84f 100644 --- a/Netdisco/share/views/ajax/admintask/topology.tt +++ b/Netdisco/share/views/ajax/admintask/topology.tt @@ -38,7 +38,9 @@ + [% SET count = 0 %] [% WHILE (row = results.next) %] + [% SET count = count + 1 %] [% (row.device1.dns || row.device1.name || row.device1.ip) | html_entity %] @@ -48,11 +50,31 @@ [% (row.device2.dns || row.device2.name || row.device2.ip) | html_entity %] [% row.port2 | html_entity %] - - - - - + + + [% END %] diff --git a/Netdisco/share/views/ajax/device/details.tt b/Netdisco/share/views/ajax/device/details.tt index 95cd4b0b..1dae59e1 100644 --- a/Netdisco/share/views/ajax/device/details.tt +++ b/Netdisco/share/views/ajax/device/details.tt @@ -106,7 +106,7 @@ + data-toggle="modal" data-target="#nd_devdel" type="button">Delete