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

33 lines
1.1 KiB
HTML
Raw Normal View History

{% extends base_template %}
{% load form_helpers %}
{% block title %}{{ block.super }} - Journal{% endblock %}
2021-03-17 22:37:13 -07:00
{% render_errors form %}
{% block content %}
{% if perms.extras.add_journalentry %}
2021-03-17 22:37:13 -07:00
<div class="col-md-9 col-md-offset-3">
<div class="field-group">
<h4>New Journal Entry</h4>
<form action="{% url 'extras:journalentry_add' %}" method="post" enctype="multipart/form-data">
{% csrf_token %}
{% for field in form.hidden_fields %}
{{ field }}
{% endfor %}
2021-03-17 22:37:13 -07:00
{% render_field form.kind %}
{% render_field form.comments %}
</form>
</div>
2021-03-17 22:37:13 -07:00
<div class="col-md-12 col-md-offset-3 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>
{% endif %}
2021-03-17 22:37:13 -07:00
<div class="col-md-9 col-md-offset-3 mb-3">
{% include 'panel_table.html' %}
</div>
2021-03-16 15:57:23 -04:00
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
{% endblock %}