{% extends 'silverstrike/base.html' %} {% load i18n %} {% load static %} {% load widget_tweaks %} {% block content_header %}

Transactions {% if object %} {% blocktrans with object_name=object.title %}Edit {{ object.title }}{% endblocktrans %} {% else %} {% blocktrans %}Add new {{ submenu }}{% endblocktrans %} {% endif %}

{% endblock %} {% block content %}

{% trans 'Transaction Details' %}

{% csrf_token %} {% for field in form %}
{% if field|widget_type == 'dateinput' %} {{ field|add_class:"form-control dateinput" }} {% else %} {{ field|add_class:"form-control" }} {% endif %} {% for error in field.errors %} {{ error }} {% endfor %}
{% endfor %}
{% for error in form.non_field_errors %} {{ error }} {% endfor %} {{ formset.management_form }} {% for split in formset %} {% if forloop.first %} {% for field in split.visible_fields %} {% endfor %} {% endif %} {% for field in split.visible_fields %} {% if field|widget_type == 'checkboxinput' %} {% else %} {% endif %} {% endfor %} {% for field in split.hidden_fields %} {{ field }} {% endfor %} {% if split.errors %} {% for error in split.errors %} {{ error }} {% endfor %} {% endif %} {% endfor %}
{{ field.label }}
{{ field }} {% if field|widget_type == 'dateinput' %} {{ field|add_class:"form-control dateinput" }} {% else %} {{ field|add_class:"form-control" }} {% endif %}
{% trans 'Add Split' %}
{% endblock %} {% block stylesheets %} {% endblock %} {% block scripts %} {% endblock %}