2021-03-16 15:00:08 -04:00
|
|
|
{% extends base_template %}
|
|
|
|
{% load form_helpers %}
|
|
|
|
|
|
|
|
{% block title %}{{ block.super }} - Journal{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% if perms.extras.add_journalentry %}
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<strong>New Journal Entry</strong>
|
|
|
|
</div>
|
|
|
|
<form action="{% url 'extras:journalentry_add' %}" method="post" enctype="multipart/form-data" class="form form-horizontal">
|
|
|
|
{% csrf_token %}
|
|
|
|
{% for field in form.hidden_fields %}
|
|
|
|
{{ field }}
|
|
|
|
{% endfor %}
|
|
|
|
<div class="row panel-body">
|
2021-04-05 14:35:09 -04:00
|
|
|
<div class="col-md-10 col-md-offset-1">
|
2021-03-17 12:51:39 -04:00
|
|
|
{% render_field form.kind %}
|
2021-03-16 15:00:08 -04:00
|
|
|
{% render_field form.comments %}
|
2021-04-05 14:35:09 -04:00
|
|
|
<div class="text-right">
|
|
|
|
<button type="submit" class="btn btn-primary">Save</button>
|
|
|
|
<a href="{{ object.get_absolute_url }}" class="btn btn-default">Cancel</a>
|
2021-03-29 09:43:21 -04:00
|
|
|
</div>
|
2021-03-16 15:00:08 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% include 'panel_table.html' %}
|
2021-03-16 15:57:23 -04:00
|
|
|
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
|
2021-03-16 15:00:08 -04:00
|
|
|
{% endblock %}
|