From 197a3abd372d0ae5e56b5fd045814e8fb5984fdb Mon Sep 17 00:00:00 2001 From: Dan Bridson Date: Tue, 31 Jan 2023 21:33:20 +0000 Subject: [PATCH 1/2] Changed extends base.html to extends generic/object_edit.html for create peering template and removed unnecessary rules from .gitignore --- .gitignore | 23 ------------------- .../nautobot_bgp_models/peering_create.html | 5 +--- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index 240931e..437d245 100644 --- a/.gitignore +++ b/.gitignore @@ -195,29 +195,6 @@ $RECYCLE.BIN/ # Jetbrains IDE configs .idea/ -# User-specific stuff -.idea/**/workspace.xml -.idea/**/tasks.xml -.idea/**/usage.statistics.xml -.idea/**/dictionaries -.idea/**/shelf - -# Generated files -.idea/**/contentModel.xml - -# Sensitive or high-churn files -.idea/**/dataSources/ -.idea/**/dataSources.ids -.idea/**/dataSources.local.xml -.idea/**/sqlDataSources.xml -.idea/**/dynamic.xml -.idea/**/uiDesigner.xml -.idea/**/dbnavigator.xml - -# Gradle -.idea/**/gradle.xml -.idea/**/libraries - # Gradle and Maven with auto-import # When using Gradle or Maven with auto-import, you should exclude module files, # since they will be recreated, and may cause churn. Uncomment if using diff --git a/nautobot_bgp_models/templates/nautobot_bgp_models/peering_create.html b/nautobot_bgp_models/templates/nautobot_bgp_models/peering_create.html index 4541a0f..be7dec7 100644 --- a/nautobot_bgp_models/templates/nautobot_bgp_models/peering_create.html +++ b/nautobot_bgp_models/templates/nautobot_bgp_models/peering_create.html @@ -1,7 +1,4 @@ -{% extends 'generic/object_list.html' %} -{% load static %} -{% load helpers %} -{% load form_helpers %} +{% extends 'generic/object_edit.html' %} {% block content %}
{% csrf_token %} From 580be84f563ff8a3670e50c45a4a489bc1c08c3c Mon Sep 17 00:00:00 2001 From: Dan Bridson Date: Wed, 1 Feb 2023 20:02:03 +0000 Subject: [PATCH 2/2] Added back in required template helpers --- .../templates/nautobot_bgp_models/peering_create.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nautobot_bgp_models/templates/nautobot_bgp_models/peering_create.html b/nautobot_bgp_models/templates/nautobot_bgp_models/peering_create.html index 4c5fe9b..410c9fc 100644 --- a/nautobot_bgp_models/templates/nautobot_bgp_models/peering_create.html +++ b/nautobot_bgp_models/templates/nautobot_bgp_models/peering_create.html @@ -1,4 +1,6 @@ {% extends 'generic/object_edit.html' %} +{% load helpers %} +{% load form_helpers %} {% block content %}