-
Notifications
You must be signed in to change notification settings - Fork 33
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 #175 from nautobot/dpb-issue-174
Changed extends base.html to extends generic/object_list.html for list templates
- Loading branch information
Showing
5 changed files
with
21 additions
and
62 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
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 @@ | ||
Change list views to use generic/object_list.html template. |
23 changes: 3 additions & 20 deletions
23
nautobot_chatops/templates/nautobot/access_grant_list.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 |
---|---|---|
@@ -1,21 +1,4 @@ | ||
{% extends 'base.html' %} | ||
{% load buttons %} | ||
{% load helpers %} | ||
<!-- TODO: Delete file once minimum Nautobot version is 1.5 --> | ||
{% extends 'generic/object_list.html' %} | ||
|
||
{% block content %} | ||
<div class="pull-right noprint"> | ||
{% if permissions.add %}{% add_button "plugins:nautobot_chatops:accessgrant_add" %}{% endif %} | ||
<!-- TODO: "configure", "import", "export" buttons once functionality is implemented --> | ||
</div> | ||
|
||
<h1>{% block title %}Nautobot Access Grants{% endblock %}</h1> | ||
|
||
<div class="row"> | ||
<div class="col-md-9"> | ||
{% include 'utilities/obj_table.html' with bulk_delete_url="plugins:nautobot_chatops:accessgrant_bulk_delete" %} | ||
</div> | ||
<div class="col-md-3 noprint"> | ||
{% include 'inc/search_panel.html' %} | ||
</div> | ||
</div> | ||
{% endblock %} | ||
{% block title %}{{ title }}{% endblock %} |
23 changes: 3 additions & 20 deletions
23
nautobot_chatops/templates/nautobot/command_token_list.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 |
---|---|---|
@@ -1,21 +1,4 @@ | ||
{% extends 'base.html' %} | ||
{% load buttons %} | ||
{% load helpers %} | ||
<!-- TODO: Delete file once minimum Nautobot version is 1.5 --> | ||
{% extends 'generic/object_list.html' %} | ||
|
||
{% block content %} | ||
<div class="pull-right noprint"> | ||
{% if permissions.add %}{% add_button "plugins:nautobot_chatops:commandtoken_add" %}{% endif %} | ||
<!-- TODO: "configure", "import", "export" buttons once functionality is implemented --> | ||
</div> | ||
|
||
<h1>{% block title %}Nautobot Command Tokens{% endblock %}</h1> | ||
|
||
<div class="row"> | ||
<div class="col-md-9"> | ||
{% include 'utilities/obj_table.html' with bulk_delete_url="plugins:nautobot_chatops:commandtoken_bulk_delete" %} | ||
</div> | ||
<div class="col-md-3 noprint"> | ||
{% include 'inc/search_panel.html' %} | ||
</div> | ||
</div> | ||
{% endblock %} | ||
{% block title %}{{ title }}{% 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