fix dupe delete table to delete the correct row
This commit is contained in:
@@ -16,7 +16,9 @@
|
||||
</tr>
|
||||
</thead>
|
||||
</tbody>
|
||||
[% SET count = 0 %]
|
||||
[% FOREACH row IN results %]
|
||||
[% SET count = count + 1 %]
|
||||
<tr>
|
||||
<td class="nd_center-cell"><a class="nd_linkcell"
|
||||
href="[% uri_for('/device') %]?tab=details&q=[% row.ip | uri %]">[% row.ip | html_entity %]</a>
|
||||
@@ -31,15 +33,15 @@
|
||||
|
||||
<td class="nd_center-cell">
|
||||
<button class="btn btn-danger btn-small"
|
||||
data-toggle="modal" data-target="#nd_devdel" type="button">
|
||||
data-toggle="modal" data-target="#nd_devdel-[% count %]" type="button">
|
||||
<i class="icon-trash text-danger"></i>
|
||||
</button>
|
||||
|
||||
<div id="nd_devdel" class="nd_modal nd_deep-horizon modal hide fade" tabindex="-1"
|
||||
role="dialog" aria-labelledby="nd_devdel-label" aria-hidden="true">
|
||||
<div id="nd_devdel-[% count %]" class="nd_modal nd_deep-horizon modal hide fade" tabindex="-1"
|
||||
role="dialog" aria-labelledby="nd_devdel-label-[% count %]" aria-hidden="true">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
|
||||
<h3 id="nd_devdel-label">Confirm Delete: [% row.ip || row.dns | html_entity %]</h3>
|
||||
<h3 id="nd_devdel-label-[% count %]">Confirm Delete: [% row.ip || row.dns | html_entity %]</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<blockquote>
|
||||
|
||||
Reference in New Issue
Block a user