2018-08-29 22:52:32 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% load bootstrap3 %}
|
|
|
|
|
2018-11-20 16:12:32 +00:00
|
|
|
{% block title %}
|
|
|
|
{% if object %}Update{% else %}Create{% endif %} Expense | {{ block.super }}
|
|
|
|
{% endblock %}
|
|
|
|
|
2018-08-29 22:52:32 +00:00
|
|
|
{% block content %}
|
2018-11-20 16:12:32 +00:00
|
|
|
<h3>{% if object %}Update{% else %}Create{% endif %} {{ camp.title }} Expense</h3>
|
2018-08-29 22:52:32 +00:00
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
|
|
{% csrf_token %}
|
|
|
|
{% bootstrap_form form %}
|
2018-11-20 16:12:32 +00:00
|
|
|
<button class="btn btn-success" type="submit"><i class="fas fa-plus"></i> Save</button>
|
|
|
|
<a href="{% url 'economy:expense_list' camp_slug=camp.slug %}" class="btn btn-primary"><i class="fas fa-undo"></i> Cancel</a>
|
2018-08-29 22:52:32 +00:00
|
|
|
</form>
|
|
|
|
{% endblock %}
|