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

Transactions {% if object %} Edit {{ object.title }} {% else %} Add new {{ submenu }} {% endif %}

{% endblock %} {% block content %}

{% trans 'Transaction Details' %}

{% csrf_token %} {% for field in form %}
{{ field|add_class:"form-control" }} {% 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 'account' in field.name %} {{ field|add_class:"form-control account-input" }} {% else %} {{ field|add_class:"form-control" }} {% endif %}
{% trans 'Add Split' %}
{% endblock %} {% block stylesheets %} {% endblock %} {% block scripts %} {% endblock %}