-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from knobix/fix-runtime-with-netbox-3.3-and-later
Fix runtime with NetBox 3.3 and later
- Loading branch information
Showing
4 changed files
with
137 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
phonebox_plugin/templates/phonebox_plugin/list_view_3.4.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{% extends 'base/layout.html' %} | ||
{% load buttons %} | ||
{% load static %} | ||
{% load plugins %} | ||
{% load helpers %} | ||
|
||
|
||
{% block controls %} | ||
|
||
<div class="pull-right noprint"> | ||
{% if perms.phonebox_plugin.add_number %} | ||
<a href="/plugins/phonebox/add_number/" type="button" class="btn btn-sm btn-success"> | ||
<i class="mdi mdi-plus-thick"></i> Add | ||
</a> | ||
{% endif %} | ||
{% if perms.phonebox_plugin.add_number %} | ||
<a href="/plugins/phonebox/import_numbers/" type="button" class="btn btn-sm btn-info"> | ||
<i class="mdi mdi-upload"></i> Import | ||
</a> | ||
{% endif %} | ||
</div> | ||
|
||
{% endblock %} | ||
|
||
|
||
{% block content %} | ||
|
||
<ul class="nav nav-tabs px-3"> | ||
<li class="nav-item" role="presentation"> | ||
<button class="nav-link active" id="numbers-tab" data-bs-toggle="tab" data-bs-target="#numbers" type="button" role="tab" aria-controls="numbers" aria-selected="true"> | ||
Numbers | ||
</button> | ||
</li> | ||
<li class="nav-item" role="presentation"> | ||
<button class="nav-link" id="filters-form-tab" data-bs-toggle="tab" data-bs-target="#filters-form" type="button" role="tab" aria-controls="filters-form" aria-selected="false"> | ||
Filters | ||
{% if filter_form %}{% badge filter_form.changed_data|length %}{% endif %} | ||
</button> | ||
</li> | ||
</ul> | ||
|
||
<div class="tab-content"> | ||
<div class="tab-pane active" id="numbers" role="tabpanel" aria-labelledby="numbers-tab"> | ||
|
||
{# Applied filters #} | ||
{% if filter_form %} | ||
{% applied_filters model filter_form request.GET %} | ||
{% endif %} | ||
|
||
<h2>{% block title %}Numbers{% endblock %}</h2> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
{% include 'phonebox_plugin/obj_table.html' with bulk_delete_url="plugins:phonebox_plugin:number_bulk_delete" bulk_edit_url="plugins:phonebox_plugin:number_bulk_edit" %} | ||
</div> | ||
</div> | ||
</div> | ||
<div class="tab-pane" id="filters-form" role="tabpanel" aria-labelledby="filters-form-tab"> | ||
{% include 'inc/filter_list.html' %} | ||
</div> | ||
</div> | ||
|
||
{% endblock %} |
62 changes: 62 additions & 0 deletions
62
phonebox_plugin/templates/phonebox_plugin/voice_circuit_list_view_3.4.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{% extends 'base/layout.html' %} | ||
{% load buttons %} | ||
{% load static %} | ||
{% load plugins %} | ||
{% load helpers %} | ||
|
||
|
||
{% block controls %} | ||
|
||
<div class="pull-right noprint"> | ||
{% if perms.phonebox_plugin.add_voice_circuit %} | ||
<a href="{% url 'plugins:phonebox_plugin:add_voice_circuit' %}" type="button" class="btn btn-sm btn-success"> | ||
<i class="mdi mdi-plus-thick"></i> Add | ||
</a> | ||
{% endif %} | ||
{% if perms.phonebox_plugin.add_voice_circuit %} | ||
<a href="{% url 'plugins:phonebox_plugin:import_voice_circuits' %}" type="button" class="btn btn-sm btn-info"> | ||
<i class="mdi mdi-upload"></i> Import | ||
</a> | ||
{% endif %} | ||
</div> | ||
|
||
{% endblock %} | ||
|
||
|
||
{% block content %} | ||
|
||
<ul class="nav nav-tabs px-3"> | ||
<li class="nav-item" role="presentation"> | ||
<button class="nav-link active" id="voice_circuits-tab" data-bs-toggle="tab" data-bs-target="#voice_circuits" type="button" role="tab" aria-controls="voice_circuits" aria-selected="true"> | ||
Voice Circuits | ||
</button> | ||
</li> | ||
<li class="nav-item" role="presentation"> | ||
<button class="nav-link" id="filters-form-tab" data-bs-toggle="tab" data-bs-target="#filters-form" type="button" role="tab" aria-controls="filters-form" aria-selected="false"> | ||
Filters | ||
{% if filter_form %}{% badge filter_form.changed_data|length %}{% endif %} | ||
</button> | ||
</li> | ||
</ul> | ||
|
||
<div class="tab-content"> | ||
<div class="tab-pane active" id="voice_circuits" role="tabpanel" aria-labelledby="voice_circuits-tab"> | ||
|
||
{# Applied filters #} | ||
{% if filter_form %} | ||
{% applied_filters model filter_form request.GET %} | ||
{% endif %} | ||
|
||
<h2>{% block title %}Voice Circuits{% endblock %}</h2> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
{% include 'phonebox_plugin/obj_table.html' with bulk_delete_url="plugins:phonebox_plugin:voice_circuit_bulk_delete" bulk_edit_url="plugins:phonebox_plugin:voice_circuit_bulk_edit" %} | ||
</div> | ||
</div> | ||
</div> | ||
<div class="tab-pane" id="filters-form" role="tabpanel" aria-labelledby="filters-form-tab"> | ||
{% include 'inc/filter_list.html' %} | ||
</div> | ||
</div> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters