1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Template cleanup (#6421)

* Clean up & comment base templates

* Clean up login template & form

* Use SVG file for NetBox logo

* Simplify breadcrumbs

* Merge changelog.html into home.html

* Rename title_container block to header

* Move breadcrumbs block to object.html

* Attach names to endblock template tags

* Reorganize root-level templates into base/ and inc/

* Remove obsolete reference to Bootstrap 3.4.1
This commit is contained in:
Jeremy Stretch
2021-05-17 16:27:27 -04:00
committed by GitHub
parent 744792452f
commit 805892f623
73 changed files with 426 additions and 468 deletions

View File

@@ -1,4 +1,4 @@
{% extends 'layout.html' %} {% load form_helpers %} {% load helpers %}
{% extends 'base/layout.html' %} {% load form_helpers %} {% load helpers %}
{% block title %}{% if obj.pk %}Editing {{ obj_type }} {{ obj }}{% else %}Add a new {{ obj_type }}{% endif %}{% endblock %}
@@ -8,7 +8,7 @@
<i class="mdi mdi-help-circle"></i>
</button>
{% endif %}
{% endblock %}
{% endblock controls %}
{% block content %}
<form action="" method="post" enctype="multipart/form-data">
@@ -47,7 +47,7 @@
{% block form_fields %}{% render_form form %}{% endblock %}
</div>
{% endif %}
{% endblock %}
{% endblock form %}
</div>
</div>
<div class="row my-3">
@@ -66,11 +66,11 @@
Create
</button>
{% endif %}
{% endblock %}
{% endblock buttons %}
</div>
</div>
</form>
{% if obj and settings.DOCS_ROOT %}
{% include 'inc/modal.html' with name='docs' content=obj|get_docs %}
{% endif %}
{% endblock %}
{% endblock content %}