edit_facture.html 2.13 KB
Newer Older
1
{% extends "cotisations/sidebar.html" %}
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
{% comment %}
Re2o est un logiciel d'administration développé initiallement au rezometz. Il
se veut agnostique au réseau considéré, de manière à être installable en
quelques clics.

Copyright © 2017  Gabriel Détraz
Copyright © 2017  Goulven Kermarec
Copyright © 2017  Augustin Lemesle

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
{% endcomment %}

26 27
{% load bootstrap3 %}
{% load staticfiles%}
28
{% load massive_bootstrap_form %}
29
{% load i18n %}
30

31
{% block title %}{% trans "Creation and editing of invoices" %}{% endblock %}
32 33 34 35 36 37

{% block content %}
{% bootstrap_form_errors factureform %}

<form class="form" method="post">
    {% csrf_token %}
38
    <h3>{% trans "Edit the invoice" %}</h3>
39
    {% massive_bootstrap_form factureform 'user' %}
40
    {{ venteform.management_form }}
41
    <h3>{% trans "Articles" %}</h3>
42 43 44
    <table class="table table-striped">
        <thead>
            <tr>
45 46
                <th>{% trans "Designation" %}</th>
                <th>{% trans "Quantity" %}</th>
47 48
            </tr>
        </thead>
49 50
        {% for form in venteform.forms %}
        {% bootstrap_form_errors form %}
51 52 53 54 55 56 57 58 59
        <tr>
            <td>{{ form.name }}</td>
            <td>{{ form.number }}</td>
            {% for hidden in form.hidden_fields %}
            {{ hidden }}
            {% endfor %}
         </tr>
         {% endfor %}
    </table>
60
    {% trans "Confirm" as tr_confirm %}
61
    {% bootstrap_button tr_confirm button_type='submit' icon='ok' button_class='btn-success' %}
62 63 64
</form>

{% endblock %}
65