wip
This commit is contained in:
parent
254593d260
commit
0a99abb52d
4 changed files with 279 additions and 148 deletions
|
@ -71,14 +71,14 @@
|
|||
<th>PORT</th>
|
||||
<th>PROTOCOL</th>
|
||||
<th>DESCRIPTION</th>
|
||||
<th width="40"></th>
|
||||
<th class="w-1"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for port in app.ports %}
|
||||
<tr>
|
||||
<td>{{ port.port_number }}</td>
|
||||
<td>{{ port.protocol }}</td>
|
||||
<td><span class="badge bg-blue">{{ port.protocol }}</span></td>
|
||||
<td>{{ port.description }}</td>
|
||||
<td>
|
||||
<button type="button" class="btn btn-sm btn-ghost-danger"
|
||||
|
@ -97,12 +97,10 @@
|
|||
<span class="ti ti-plug"></span>
|
||||
</div>
|
||||
<p class="empty-title">No ports configured</p>
|
||||
<p class="empty-subtitle text-muted">
|
||||
Add port information to track which ports this application uses.
|
||||
</p>
|
||||
<p class="empty-subtitle text-muted">Add ports to document what this application uses</p>
|
||||
<div class="empty-action">
|
||||
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#addPortModal">
|
||||
<span class="ti ti-plus me-2"></span> Add Port
|
||||
<span class="ti ti-plus me-1"></span> Add Port
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -355,7 +353,8 @@
|
|||
const appId = {{ app.id }};
|
||||
let portToDelete = null;
|
||||
|
||||
// Function to handle port delete confirmation
|
||||
// IMPORTANT: Define confirmDeletePort outside the DOMContentLoaded event
|
||||
// so it's available in the global scope
|
||||
function confirmDeletePort(portId) {
|
||||
portToDelete = portId;
|
||||
const modal = new bootstrap.Modal(document.getElementById('deletePortModal'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue