Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion netbox/templates/dcim/device/consoleports.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
{% load static %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceConsolePortTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceConsolePortTable_config" %}

<div class="card">
<div class="card-body" id="object_list">
Expand Down
3 changes: 2 additions & 1 deletion netbox/templates/dcim/device/consoleserverports.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
{% load static %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceConsoleServerPortTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceConsoleServerPortTable_config" %}

<div class="card">
<div class="card-body" id="object_list">
Expand Down
3 changes: 2 additions & 1 deletion netbox/templates/dcim/device/devicebays.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
{% load static %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceDeviceBayTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceDeviceBayTable_config" %}

<div class="card">
<div class="card-body" id="object_list">
Expand Down
3 changes: 2 additions & 1 deletion netbox/templates/dcim/device/frontports.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
{% load static %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceFrontPortTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceFrontPortTable_config" %}

<div class="card">
<div class="card-body" id="object_list">
Expand Down
70 changes: 36 additions & 34 deletions netbox/templates/dcim/device/interfaces.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,46 @@
{% load static %}

{% block content %}
<form method="post">
{% csrf_token %}
<div class="row mb-3 justify-content-between">
<div class="col col-12 col-lg-4 my-3 my-lg-0 d-flex noprint table-controls">
<div class="input-group input-group-sm">
<input
type="text"
name="q"
class="form-control"
placeholder="Quick search"
hx-get="{{ request.full_path }}"
hx-target="#object_list"
hx-trigger="keyup changed delay:500ms"
/>
</div>
<div class="row mb-3 justify-content-between">
<div class="col col-12 col-lg-4 my-3 my-lg-0 d-flex noprint table-controls">
<div class="input-group input-group-sm">
<input
type="text"
name="q"
class="form-control"
placeholder="Quick search"
hx-get="{{ request.full_path }}"
hx-target="#object_list"
hx-trigger="keyup changed delay:500ms"
/>
</div>
<div class="col col-md-3 mb-0 d-flex noprint table-controls">
<div class="input-group input-group-sm justify-content-end">
{% if request.user.is_authenticated %}
<button
type="button"
class="btn btn-sm btn-outline-dark"
data-bs-toggle="modal"
data-bs-target="#DeviceInterfaceTable_config"
title="Configure Table">
<i class="mdi mdi-cog"></i> Configure Table
</button>
{% endif %}
<button class="btn btn-sm btn-outline-dark dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="mdi mdi-eye"></i>
</div>
<div class="col col-md-3 mb-0 d-flex noprint table-controls">
<div class="input-group input-group-sm justify-content-end">
{% if request.user.is_authenticated %}
<button
type="button"
class="btn btn-sm btn-outline-dark"
data-bs-toggle="modal"
data-bs-target="#DeviceInterfaceTable_config"
title="Configure Table">
<i class="mdi mdi-cog"></i> Configure Table
</button>
<ul class="dropdown-menu">
<button type="button" class="dropdown-item toggle-enabled" data-state="show">Hide Enabled</button>
<button type="button" class="dropdown-item toggle-disabled" data-state="show">Hide Disabled</button>
</ul>
</div>
{% endif %}
<button class="btn btn-sm btn-outline-dark dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="mdi mdi-eye"></i>
</button>
<ul class="dropdown-menu">
<button type="button" class="dropdown-item toggle-enabled" data-state="show">Hide Enabled</button>
<button type="button" class="dropdown-item toggle-disabled" data-state="show">Hide Disabled</button>
</ul>
</div>
</div>
</div>

<form method="post">
{% csrf_token %}


<div class="card">
<div class="card-body" id="object_list">
Expand Down
3 changes: 2 additions & 1 deletion netbox/templates/dcim/device/inventory.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
{% load static %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceInventoryItemTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceInventoryItemTable_config" %}

<div class="card">
<div class="card-body" id="object_list">
Expand Down
3 changes: 2 additions & 1 deletion netbox/templates/dcim/device/modulebays.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
{% load static %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceModuleBayTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceModuleBayTable_config" %}

<div class="card">
<div class="card-body" id="object_list">
Expand Down
3 changes: 2 additions & 1 deletion netbox/templates/dcim/device/poweroutlets.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
{% load static %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="DevicePowerOutletTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="DevicePowerOutletTable_config" %}

<div class="card">
<div class="card-body" id="object_list">
Expand Down
3 changes: 2 additions & 1 deletion netbox/templates/dcim/device/powerports.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
{% load static %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="DevicePowerPortTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="DevicePowerPortTable_config" %}

<div class="card">
<div class="card-body" id="object_list">
Expand Down
3 changes: 2 additions & 1 deletion netbox/templates/dcim/device/rearports.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
{% load helpers %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceRearPortTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceRearPortTable_config" %}

<div class="card">
<div class="card-body" id="object_list">
Expand Down
3 changes: 2 additions & 1 deletion netbox/templates/ipam/aggregate/prefixes.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
{% endblock %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="PrefixTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="PrefixTable_config" %}

<div class="card">
<div class="card-body" id="object_list">
Expand Down
3 changes: 2 additions & 1 deletion netbox/templates/ipam/iprange/ip_addresses.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
{% endblock %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="IPAddressTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="IPAddressTable_config" %}

<div class="card">
<div class="card-body" id="object_list">
Expand Down
3 changes: 2 additions & 1 deletion netbox/templates/ipam/prefix/ip_addresses.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
{% endblock %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="IPAddressTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="IPAddressTable_config" %}

<div class="card">
<div class="card-body" id="object_list">
Expand Down
3 changes: 2 additions & 1 deletion netbox/templates/ipam/prefix/ip_ranges.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
{% endblock %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="IPRangeTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="IPRangeTable_config" %}

<div class="card">
<div class="card-body" id="object_list">
Expand Down
3 changes: 2 additions & 1 deletion netbox/templates/ipam/prefix/prefixes.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
{% endblock %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="PrefixTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="PrefixTable_config" %}

<div class="card">
<div class="card-body" id="object_list">
Expand Down
3 changes: 2 additions & 1 deletion netbox/templates/ipam/vlan/interfaces.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
{% load helpers %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="VLANDevicesTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="VLANDevicesTable_config" %}
<div class="card">
<div class="card-body" id="object_list">
{% include 'htmx/table.html' %}
Expand Down
3 changes: 2 additions & 1 deletion netbox/templates/ipam/vlan/vminterfaces.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
{% load helpers %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="VLANVirtualMachinesTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="VLANVirtualMachinesTable_config" %}
<div class="card">
<div class="card-body" id="object_list">
{% include 'htmx/table.html' %}
Expand Down
3 changes: 2 additions & 1 deletion netbox/templates/virtualization/cluster/devices.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
{% load render_table from django_tables2 %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceTable_config" %}

<form action="{% url 'virtualization:cluster_remove_devices' pk=object.pk %}" method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceTable_config" %}
<div class="card">
<div class="card-body" id="object_list">
{% include 'htmx/table.html' %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
{% load render_table from django_tables2 %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="VirtualMachineTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="VirtualMachineTable_config" %}
<div class="card">
<div class="card-body" id="object_list">
{% include 'htmx/table.html' %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
{% load helpers %}

{% block content %}
{% include 'inc/table_controls_htmx.html' with table_modal="VirtualMachineVMInterfaceTable_config" %}

<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="VirtualMachineVMInterfaceTable_config" %}

<div class="card">
<div class="card-body" id="object_list">
Expand Down