Skip to content

Commit

Permalink
Merge pull request #13 from p-rintz/Template_Cleanup
Browse files Browse the repository at this point in the history
Fix title & align custom fields in template
  • Loading branch information
robertlynch3 authored Jul 25, 2023
2 parents c07d5ce + 3bd9aa8 commit 4bf6acd
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions netbox_tunnels2/templates/netbox_tunnels2/tunnel_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
{% load static %}
{% load form_helpers %}

{% block title %}{% if obj.pk %}Editing {{ obj }}{% else %}Add a tunnel{% endif %}{% endblock %}

{% block form %}
{% render_errors form %}
<div class="field-group">
Expand Down Expand Up @@ -38,17 +36,15 @@ <h4>Side B Interface Assignment</h4>
</div>
</div>

{% if form.custom_fields %}
<div class="field-group">
<h4>Custom Fields</h4>
{% render_custom_fields form %}
</div>
{% endif %}

<div class="field-group">
<h4>Comments</h4>
{% render_field form.comments %}
</div>
{% if form.custom_fields %}
<div class="card">
<h5 class="card-header">Custom Fields</h5>
<div class="card-body">
{% render_custom_fields form %}
</div>
</div>
{% endif %}
{% endblock %}

0 comments on commit 4bf6acd

Please sign in to comment.