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:
@ -5,25 +5,29 @@
|
|||||||
{% render_errors form %}
|
{% render_errors form %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if perms.extras.add_journalentry %}
|
|
||||||
<form action="{% url 'extras:journalentry_add' %}" method="post" enctype="multipart/form-data">
|
|
||||||
<div class="container">
|
|
||||||
<div class="field-group">
|
|
||||||
<h4>New Journal Entry</h4>
|
|
||||||
{% csrf_token %}
|
|
||||||
{% render_form form %}
|
|
||||||
</div>
|
|
||||||
<div class="col col-md-12 text-end my-3">
|
|
||||||
<a href="{{ object.get_absolute_url }}" class="btn btn-outline-danger">Cancel</a>
|
|
||||||
<button type="submit" class="btn btn-primary">Save</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
{% endif %}
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body table-responsive">
|
<div class="card-body table-responsive">
|
||||||
{% render_table table 'inc/table.html' %}
|
{% render_table table 'inc/table.html' %}
|
||||||
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
|
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% 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">
|
||||||
|
<div class="container">
|
||||||
|
<div class="field-group">
|
||||||
|
{% csrf_token %}
|
||||||
|
{% render_form form %}
|
||||||
|
</div>
|
||||||
|
<div class="col col-md-12 text-end my-3">
|
||||||
|
<a href="{{ object.get_absolute_url }}" class="btn btn-outline-danger">Cancel</a>
|
||||||
|
<button type="submit" class="btn btn-primary">Save</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Reference in New Issue
Block a user