Commit 433ee298 authored by Maël Kervella's avatar Maël Kervella

Translation: Mark all strings in templates of cotisation

parent ccab7ff7
...@@ -23,15 +23,16 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -23,15 +23,16 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endcomment %} {% endcomment %}
{% load acl %} {% load acl %}
{% load i18n %}
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>Article</th> <th>{% trans "Article" %}</th>
<th>Prix</th> <th>{% trans "Price" %}</th>
<th>Type Cotisation</th> <th>{% trans "Cotisation type" %}</th>
<th>Durée (mois)</th> <th>{% trans "Duration (month)" %}</th>
<th>Article pour</th> <th>{% trans "Concerned users" %}</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
...@@ -44,11 +45,11 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -44,11 +45,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<td>{{ article.type_user }}</td> <td>{{ article.type_user }}</td>
<td class="text-right"> <td class="text-right">
{% can_edit article %} {% can_edit article %}
<a class="btn btn-primary btn-sm" role="button" title="Éditer" href="{% url 'cotisations:edit-article' article.id %}"> <a class="btn btn-primary btn-sm" role="button" title="{% trans "Edit" %}" href="{% url 'cotisations:edit-article' article.id %}">
<i class="fa fa-edit"></i> <i class="fa fa-edit"></i>
</a> </a>
{% acl_end %} {% acl_end %}
<a class="btn btn-info btn-sm" role="button" title="Historique" href="{% url 'cotisations:history' 'article' article.id %}"> <a class="btn btn-info btn-sm" role="button" title="{% trans "Historique" %}" href="{% url 'cotisations:history' 'article' article.id %}">
<i class="fa fa-history"></i> <i class="fa fa-history"></i>
</a> </a>
</td> </td>
......
...@@ -23,11 +23,12 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -23,11 +23,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endcomment %} {% endcomment %}
{% load acl %} {% load acl %}
{% load i18n %}
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>Banque</th> <th>{% trans "Bank" %}</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
...@@ -36,11 +37,11 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -36,11 +37,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<td>{{ banque.name }}</td> <td>{{ banque.name }}</td>
<td class="text-right"> <td class="text-right">
{% can_edit banque %} {% can_edit banque %}
<a class="btn btn-primary btn-sm" role="button" title="Éditer" href="{% url 'cotisations:edit-banque' banque.id %}"> <a class="btn btn-primary btn-sm" role="button" title="{% trans "Edit" %}" href="{% url 'cotisations:edit-banque' banque.id %}">
<i class="fa fa-edit"></i> <i class="fa fa-edit"></i>
</a> </a>
{% acl_end %} {% acl_end %}
<a class="btn btn-info btn-sm" role="button" title="Historique" href="{% url 'cotisations:history' 'banque' banque.id %}"> <a class="btn btn-info btn-sm" role="button" title="{% trans "Historique" %}" href="{% url 'cotisations:history' 'banque' banque.id %}">
<i class="fa fa-history"></i> <i class="fa fa-history"></i>
</a> </a>
</td> </td>
......
...@@ -23,20 +23,34 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -23,20 +23,34 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endcomment %} {% endcomment %}
{% load acl %} {% load acl %}
{% load i18n %}
<div class="table-responsive"> <div class="table-responsive">
{% if facture_list.paginator %} {% if facture_list.paginator %}
{% include "pagination.html" with list=facture_list %} {% include 'pagination.html' with list=facture_list %}
{% endif %} {% endif %}
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>{% include "buttons/sort.html" with prefix='cotis' col='user' text='Utilisateur' %}</th> <th>
<th>Designation</th> {% trans "User" as tr_user %}
<th>Prix total</th> {% include 'buttons/sort.html' with prefix='cotis' col='user' text=tr_user %}
<th>{% include "buttons/sort.html" with prefix='cotis' col='paiement' text='Moyen de paiement' %}</th> </th>
<th>{% include "buttons/sort.html" with prefix='cotis' col='date' text='Date' %}</th> <th>{% trans "Designation" %}</th>
<th>{% include "buttons/sort.html" with prefix='cotis' col='id' text='Id facture' %}</th> <th>{% trans "Total price" %}</th>
<th>
{% trans "Payment method" as tr_payment_method %}
{% include 'buttons/sort.html' with prefix='cotis' col='paiement' text=tr_payment_method %}
</th>
<th>
{% trans "Date" as tr_date %}
{% include 'buttons/sort.html' with prefix='cotis' col='date' text=tr_date %}
</th>
<th>
{% trans "Invoice id" as tr_invoice_id %}
{% include 'buttons/sort.html' with prefix='cotis' col='id' text=tr_invoice_id %}
</th>
<th></th> <th></th>
<th></th> <th></th>
</tr> </tr>
...@@ -50,39 +64,49 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -50,39 +64,49 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<td>{{ facture.date }}</td> <td>{{ facture.date }}</td>
<td>{{ facture.id }}</td> <td>{{ facture.id }}</td>
<td> <td>
<div class="dropdown"> <div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="editionfacture" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> <button class="btn btn-default dropdown-toggle" type="button" id="editinvoice" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
Edition {% trans "Edit" %}<span class="caret"></span>
<span class="caret"></span> </button>
</button> <ul class="dropdown-menu" aria-labelledby="editinvoice">
<ul class="dropdown-menu" aria-labelledby="editionfacture"> {% can_edit facture %}
{% can_edit facture %} <li>
<li><a href="{% url 'cotisations:edit-facture' facture.id %}"><i class="fa fa-dollar-sign"></i> Modifier</a></li> <a href="{% url 'cotisations:edit-facture' facture.id %}">
{% acl_else %} <i class="fa fa-dollar-sign"></i> {% trans "Edit" %}
<li>Facture controlée</li> </a>
{% acl_end %} </li>
{% can_delete facture %} {% acl_else %}
<li><a href="{% url 'cotisations:del-facture' facture.id %}"><i class="fa fa-trash"></i> Supprimer</a></li> <li>{% trans "Controlled invoice" %}</li>
{% acl_end %} {% acl_end %}
<li><a href="{% url 'cotisations:history' 'facture' facture.id %}"><i class="fa fa-history"></i> Historique</a></li> {% can_delete facture %}
</ul> <li>
</div> <a href="{% url 'cotisations:del-facture' facture.id %}">
<i class="fa fa-trash"></i> {% trans "Delete" %}
</a>
</li>
{% acl_end %}
<li>
<a href="{% url 'cotisations:history' 'facture' facture.id %}">
<i class="fa fa-history"></i> {% trans "Historique" %}
</a>
</li>
</ul>
</div>
</td> </td>
<td> <td>
{% if facture.valid %} {% if facture.valid %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:facture-pdf' facture.id %}"> <a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:facture-pdf' facture.id %}">
<i class="fa fa-file-pdf"></i> <i class="fa fa-file-pdf"></i> {% trans "PDF" %}
PDF
</a> </a>
{% else %} {% else %}
<i class="text-danger">Facture invalide</i> <i class="text-danger">{% trans "Invalidated invoice" %}</i>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
{% if facture_list.paginator %} {% if facture_list.paginator %}
{% include "pagination.html" with list=facture_list %} {% include 'pagination.html' with list=facture_list %}
{% endif %} {% endif %}
</div> </div>
...@@ -23,11 +23,12 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -23,11 +23,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endcomment %} {% endcomment %}
{% load acl %} {% load acl %}
{% load i18n %}
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>Moyen de paiement</th> <th>{% trans "Payment method" %}</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
...@@ -35,12 +36,12 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -35,12 +36,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<tr> <tr>
<td>{{ paiement.moyen }}</td> <td>{{ paiement.moyen }}</td>
<td class="text-right"> <td class="text-right">
{% can_edit paiement %} {% can_edit paiement %}
<a class="btn btn-primary btn-sm" role="button" title="Éditer" href="{% url 'cotisations:edit-paiement' paiement.id %}"> <a class="btn btn-primary btn-sm" role="button" title="{% trans "Edit" %}" href="{% url 'cotisations:edit-paiement' paiement.id %}">
<i class="fa fa-edit"></i> <i class="fa fa-edit"></i>
</a> </a>
{% acl_end %} {% acl_end %}
<a class="btn btn-info btn-sm" role="button" title="Historique" href="{% url 'cotisations:history' 'paiement' paiement.id %}"> <a class="btn btn-info btn-sm" role="button" title="{% trans "Historique" %}" href="{% url 'cotisations:history' 'paiement' paiement.id %}">
<i class="fa fa-history"></i> <i class="fa fa-history"></i>
</a> </a>
</td> </td>
......
...@@ -25,13 +25,14 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -25,13 +25,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %} {% load bootstrap3 %}
{% load staticfiles%} {% load staticfiles%}
{% load i18n %}
{% block title %}Controle des factures{% endblock %} {% block title %}{% trans "Invoice control" %}{% endblock %}
{% block content %} {% block content %}
<h2>Controle et validité des factures</h2> <h2>{% trans "Invoice control and validation" %}</h2>
{% if facture_list.paginator %} {% if facture_list.paginator %}
{% include "pagination.html" with list=facture_list %} {% include 'pagination.html' with list=facture_list %}
{% endif %} {% endif %}
<form class="form" method="post"> <form class="form" method="post">
{% csrf_token %} {% csrf_token %}
...@@ -39,24 +40,50 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -39,24 +40,50 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>Profil</th> <th>{% trans "Profil" %}</th>
<th>{% include "buttons/sort.html" with prefix='control' col='name' text='Nom' %}</th> <th>
<th>{% include "buttons/sort.html" with prefix='control' col='surname' text='Prénom' %}</th> {% trans "Last name" as tr_last_name %}
<th>{% include "buttons/sort.html" with prefix='control' col='id' text='Id facture' %}</th> {% include 'buttons/sort.html' with prefix='control' col='name' text=tr_last_name %}
<th>{% include "buttons/sort.html" with prefix='control' col='user-id' text='Id user' %}</th> </th>
<th>Designation</th> <th>
<th>Prix total</th> {% trans "First name" as tr_first_name %}
<th>{% include "buttons/sort.html" with prefix='control' col='paiement' text='Moyen de paiement' %}</th> {% include 'buttons/sort.html' with prefix='control' col='surname' text=tr_first_name %}
<th>{% include "buttons/sort.html" with prefix='control' col='date' text='Date' %}</th> </th>
<th>{% include "buttons/sort.html" with prefix='control' col='valid' text='Valide' %}</th> <th>
<th>{% include "buttons/sort.html" with prefix='control' col='control' text='Contrôlée' %}</th> {% trans "Invoice id" as tr_invoice_id %}
{% include 'buttons/sort.html' with prefix='control' col='id' text=tr_invoice_id %}
</th>
<th>
{% trans "User id" as tr_user_id %}
{% include 'buttons/sort.html' with prefix='control' col='user-id' text=tr_user_id %}
</th>
<th>{% trans "Designation" %}</th>
<th>{% trans "Total price" %}</th>
<th>
{% trans "Payment method" as tr_payment_method %}
{% include 'buttons/sort.html' with prefix='control' col='paiement' text=tr_payment_method %}
</th>
<th>
{% trans "Date" as tr_date %}
{% include 'buttons/sort.html' with prefix='control' col='date' text=tr_date %}<
/th>
<th>
{% trans "Validated" as tr_validated %}
{% include 'buttons/sort.html' with prefix='control' col='valid' text=tr_validated %}<
/th>
<th>
{% trans "Controlled" as tr_controlled %}
{% include 'buttons/sort.html' with prefix='control' col='control' text=tr_controlled %}
</th>
</tr> </tr>
</thead> </thead>
{% for form in controlform.forms %} {% for form in controlform.forms %}
{% bootstrap_form_errors form %} {% bootstrap_form_errors form %}
<tr> <tr>
<td>
<td><a href="{% url "users:profil" form.instance.user.id%}" class="btn btn-primary btn-sm" role="button"><i class="fa fa-user"></i></a> <a href="{% url 'users:profil' form.instance.user.id%}" class="btn btn-primary btn-sm" role="button">
<i class="fa fa-user"></i>
</a>
</td> </td>
<td>{{ form.instance.user.name }}</td> <td>{{ form.instance.user.name }}</td>
<td>{{ form.instance.user.surname }}</td> <td>{{ form.instance.user.surname }}</td>
...@@ -74,10 +101,11 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -74,10 +101,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
{% bootstrap_button "Modifier" button_type="submit" icon="star" %} {% trans "Edit" as tr_edit %}
{% bootstrap_button tr_edit button_type='submit' icon='star' %}
</form> </form>
{% endblock %} {% endblock %}
{% if facture_list.paginator %} {% if facture_list.paginator %}
{% include "pagination.html" with list=facture_list %} {% include 'pagination.html' with list=facture_list %}
{% endif %} {% endif %}
...@@ -24,17 +24,20 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -24,17 +24,20 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endcomment %} {% endcomment %}
{% load bootstrap3 %} {% load bootstrap3 %}
{% load i18n %}
{% block title %}Création et modification de machines{% endblock %} {% block title %}{% trans "Deletion of cotisations" %}{% endblock %}
{% block content %} {% block content %}
<form class="form" method="post"> <form class="form" method="post">
{% csrf_token %} {% csrf_token %}
<h4>Attention, voulez-vous vraiment supprimer cet objet {{ objet_name }} ( {{ objet }} ) ?</h4> <h4>
{% bootstrap_button "Confirmer" button_type="submit" icon="trash" %} {% blocktrans %}
Warning. Are you sure you really want te delete this this {{ object_name }} object ( {{ objet }} ) ?
{% endblocktrans %}
</h4>
{% trans "Confirm" as tr_confirm %}
{% bootstrap_button tr_confirm button_type='submit' icon='trash' %}
</form> </form>
<br />
<br />
<br />
{% endblock %} {% endblock %}
...@@ -26,27 +26,28 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -26,27 +26,28 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %} {% load bootstrap3 %}
{% load staticfiles%} {% load staticfiles%}
{% load massive_bootstrap_form %} {% load massive_bootstrap_form %}
{% load i18n %}
{% block title %}Création et modification de factures{% endblock %} {% block title %}{% trans "Invoices creation and edition" %}{% endblock %}
{% block content %} {% block content %}
{% bootstrap_form_errors factureform %} {% bootstrap_form_errors factureform %}
<form class="form" method="post"> <form class="form" method="post">
{% csrf_token %} {% csrf_token %}
<h3>Editer la facture</h3> <h3>{% trans "Edit the invoice" %}</h3>
{% massive_bootstrap_form factureform 'user' %} {% massive_bootstrap_form factureform 'user' %}
{{ venteform.management_form }} {{ venteform.management_form }}
<h3>Articles de la facture</h3> <h3>{% trans "Invoice's articles" %}</h3>
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>Désignation</th> <th>{% trans "Designation" %}</th>
<th>Quantité</th> <th>{% trans "Quantity" %}</th>
</tr> </tr>
</thead> </thead>
{% for form in venteform.forms %} {% for form in venteform.forms %}
{% bootstrap_form_errors form %} {% bootstrap_form_errors form %}
<tr> <tr>
<td>{{ form.name }}</td> <td>{{ form.name }}</td>
<td>{{ form.number }}</td> <td>{{ form.number }}</td>
...@@ -56,7 +57,8 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -56,7 +57,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
{% bootstrap_button "Créer ou modifier" button_type="submit" icon="star" %} {% trans "Confirm" as tr_confirm %}
{% bootstrap_button tr_confirm button_type='submit' icon='star' %}
</form> </form>
{% endblock %} {% endblock %}
...@@ -25,8 +25,9 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -25,8 +25,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %} {% load bootstrap3 %}
{% load staticfiles%} {% load staticfiles%}
{% load i18n %}
{% block title %}Création et modification de factures{% endblock %} {% block title %}{% trans "invoices creation and edition" %}{% endblock %}
{% block content %} {% block content %}
{% bootstrap_form_errors factureform %} {% bootstrap_form_errors factureform %}
...@@ -34,7 +35,7 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -34,7 +35,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<form class="form" method="post"> <form class="form" method="post">
{% csrf_token %} {% csrf_token %}
{% bootstrap_form factureform %} {% bootstrap_form factureform %}
{% bootstrap_button action_name button_type="submit" icon="star" %} {% bootstrap_button action_name button_type='submit' icon='star' %}
</form> </form>
{% endblock %} {% endblock %}
...@@ -24,14 +24,12 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -24,14 +24,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endcomment %} {% endcomment %}
{% load bootstrap3 %} {% load bootstrap3 %}
{% load i18n %}
{% block title %}Facture{% endblock %} {% block title %}{% trans "Invoices" %}{% endblock %}
{% block content %} {% block content %}
<h2>Cotisations</h2> <h2>{% trans "Cotisations" %}</h2>
{% include "cotisations/aff_cotisations.html" with facture_list=facture_list %} {% include 'cotisations/aff_cotisations.html' with facture_list=facture_list %}
<br />
<br />
<br />
{% endblock %} {% endblock %}
...@@ -25,18 +25,20 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -25,18 +25,20 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %} {% load bootstrap3 %}
{% load acl %} {% load acl %}
{% load i18n %}
{% block title %}Articles{% endblock %} {% block title %}{% trans "Articles" %}{% endblock %}
{% block content %} {% block content %}
<h2>Liste des types d'articles</h2> <h2>{% trans "Article type list" %}</h2>
{% can_create Article %} {% can_create Article %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:add-article' %}"><i class="fa fa-cart-plus"></i> Ajouter un type d'articles</a> <a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:add-article' %}">
{% acl_end %} <i class="fa fa-cart-plus"></i> {% trans "Add an article type" %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'cotisations:del-article' %}"><i class="fa fa-trash"></i> Supprimer un ou plusieurs types d'articles</a> </a>
{% include "cotisations/aff_article.html" with article_list=article_list %} {% acl_end %}
<br /> <a class="btn btn-danger btn-sm" role="button" href="{% url 'cotisations:del-article' %}">
<br /> <i class="fa fa-trash"></i> {% trans "Delete article types" %}
<br /> </a>
{% include 'cotisations/aff_article.html' with article_list=article_list %}
{% endblock %} {% endblock %}
...@@ -25,18 +25,20 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -25,18 +25,20 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %} {% load bootstrap3 %}
{% load acl %} {% load acl %}
{% load i18n %}
{% block title %}Banques{% endblock %} {% block title %}{% trans "Banks" %}{% endblock %}
{% block content %} {% block content %}
<h2>Liste des banques</h2> <h2>{% trans "Banks list" %}</h2>
{% can_create Banque %} {% can_create Banque %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:add-banque' %}"><i class="fa fa-cart-plus"></i> Ajouter une banque</a> <a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:add-banque' %}">
{% acl_end %} <i class="fa fa-cart-plus"></i> {% trans "Add a bank" %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'cotisations:del-banque' %}"><i class="fa fa-trash"></i> Supprimer une ou plusieurs banques</a> </a>
{% include "cotisations/aff_banque.html" with banque_list=banque_list %} {% acl_end %}
<br /> <a class="btn btn-danger btn-sm" role="button" href="{% url 'cotisations:del-banque' %}">
<br /> <i class="fa fa-trash"></i> {% trans "Delete banks" %}
<br /> </a>
{% include 'cotisations/aff_banque.html' with banque_list=banque_list %}
{% endblock %} {% endblock %}
...@@ -25,18 +25,20 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -25,18 +25,20 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %} {% load bootstrap3 %}
{% load acl %} {% load acl %}
{% load i18n %}
{% block title %}Paiements{% endblock %} {% block title %}{% trans "Payments" %}{% endblock %}
{% block content %} {% block content %}
<h2>Liste des types de paiements</h2> <h2>{% trans "Payment types list" %}</h2>
{% can_create Paiement %} {% can_create Paiement %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:add-paiement' %}"><i class="fa fa-cart-plus"></i> Ajouter un type de paiement</a> <a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:add-paiement' %}">
{% acl_end %} <i class="fa fa-cart-plus"></i> {% trans "Add a payment type" %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'cotisations:del-paiement' %}"><i class="fa fa-trash"></i> Supprimer un ou plusieurs types de paiements</a> </a>
{% include "cotisations/aff_paiement.html" with paiement_list=paiement_list %} {% acl_end %}
<br /> <a class="btn btn-danger btn-sm" role="button" href="{% url 'cotisations:del-paiement' %}">
<br /> <i class="fa fa-trash"></i> {% trans "Delete payment types" %}
<br /> </a>
{% include 'cotisations/aff_paiement.html' with paiement_list=paiement_list %}
{% endblock %} {% endblock %}
...@@ -25,40 +25,45 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -25,40 +25,45 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %} {% load bootstrap3 %}
{% load staticfiles%} {% load staticfiles%}
{% load i18n %}
{% block title %}Création et modification de factures{% endblock %} {% block title %}{% trans "Invoices creation and edition" %}{% endblock %}
{% block content %} {% block content %}
{% bootstrap_form_errors factureform %} {% bootstrap_form_errors factureform %}
<form class="form" method="post"> <form class="form" method="post">
{% csrf_token %} {% csrf_token %}
<h3>Nouvelle facture</h3> <h3>{% trans "New invoice" %}</h3>
<p> <p>
Solde de l'utilisateur : {{ user.solde }} € {% blocktrans %}
User's balance : {{ user.solde }} €
{% endblocktrans %}
</p> </p>
{% bootstrap_form factureform %} {% bootstrap_form factureform %}
{{ venteform.management_form }} {{ venteform.management_form }}
<!-- TODO: FIXME to include data-type="check" for right option in id_cheque select --> <!-- TODO: FIXME to include data-type="check" for right option in id_cheque select -->
<h3>Articles de la facture</h3> <h3>{% trans "Invoice's articles" %}</h3>
<div id="form_set" class="form-group"> <div id="form_set" class="form-group">
{% for form in venteform.forms %} {% for form in venteform.forms %}
<div class='product_to_sell form-inline'> <div class='product_to_sell form-inline'>
Article : &nbsp; {% trans "Article" %} : &nbsp;
{% bootstrap_form form label_class='sr-only' %} {% bootstrap_form form label_class='sr-only' %}
&nbsp; &nbsp;
<button class="btn btn-danger btn-sm" <button class="btn btn-danger btn-sm" id="id_form-0-article-remove" type="button">
id="id_form-0-article-remove" type="button"> <span class="fa fa-times"></span>
<span class="fa fa-times"></span> </button>
</button>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
<input class="btn btn-primary btn-sm" role="button" value="Ajouter un article" id="add_one"> <input class="btn btn-primary btn-sm" role="button" value="{% trans "Add an article"%}" id="add_one">
<p> <p>
Prix total : <span id="total_price">0,00</span> {% blocktrans %}
Total price : <span id="total_price">0,00</span>
{% endblocktrans %}
</p> </p>
{% bootstrap_button "Créer" button_type="submit" icon="star" %} {% trans "Create" as tr_create %}
{% bootstrap_button tr_create button_type='submit' icon='star' %}
</form> </form>
<script type="text/javascript"> <script type="text/javascript">
...@@ -72,9 +77,9 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -72,9 +77,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% bootstrap_form venteform.empty_form label_class='sr-only' %} {% bootstrap_form venteform.empty_form label_class='sr-only' %}
&nbsp; &nbsp;
<button class="btn btn-danger btn-sm" <button class="btn btn-danger btn-sm"
id="id_form-__prefix__-article-remove" type="button">