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

Merge pull request #9700 from PieterL75/issue9656_journalviewlayout

Fixes: #9656 Re-order journal list and form
This commit is contained in:
Jeremy Stretch
2022-07-11 09:54:48 -04:00
committed by GitHub

View File

@ -5,11 +5,19 @@
{% render_errors form %} {% render_errors form %}
{% block content %} {% block content %}
<div class="card">
<div class="card-body table-responsive">
{% render_table table 'inc/table.html' %}
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
</div>
</div>
{% if perms.extras.add_journalentry %} {% if perms.extras.add_journalentry %}
<div class="card">
<div class="card-body table-responsive">
<h4 class="card-header">New Journal Entry</h4>
<form action="{% url 'extras:journalentry_add' %}" method="post" enctype="multipart/form-data"> <form action="{% url 'extras:journalentry_add' %}" method="post" enctype="multipart/form-data">
<div class="container"> <div class="container">
<div class="field-group"> <div class="field-group">
<h4>New Journal Entry</h4>
{% csrf_token %} {% csrf_token %}
{% render_form form %} {% render_form form %}
</div> </div>
@ -19,11 +27,7 @@
</div> </div>
</div> </div>
</form> </form>
</div>
</div>
{% endif %} {% endif %}
<div class="card">
<div class="card-body table-responsive">
{% render_table table 'inc/table.html' %}
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
</div>
</div>
{% endblock %} {% endblock %}