From 04a4c7df2dd12ae768e94be71cb36bb9d8e55206 Mon Sep 17 00:00:00 2001 From: detraz Date: Sun, 2 Sep 2018 18:07:43 +0200 Subject: [PATCH] Corrections de front buttons et labels cotisations --- cotisations/locale/fr/LC_MESSAGES/django.mo | Bin 16996 -> 16926 bytes cotisations/locale/fr/LC_MESSAGES/django.po | 22 +++++++----------- .../templates/cotisations/control.html | 2 +- cotisations/templates/cotisations/delete.html | 2 +- .../templates/cotisations/edit_facture.html | 4 ++-- .../templates/cotisations/facture.html | 8 +++---- .../templates/cotisations/payment.html | 2 +- cotisations/views.py | 4 ++-- 8 files changed, 20 insertions(+), 24 deletions(-) diff --git a/cotisations/locale/fr/LC_MESSAGES/django.mo b/cotisations/locale/fr/LC_MESSAGES/django.mo index b5a65357c7cdca3510ade884242d8b729da0eb65..3a1671bbfcbedf829e2923ff601b75f00d441560 100644 GIT binary patch delta 4591 zcmYk;dr*|u8OQOnAcz;_Vz@j8dL-5ds|)YtuFuV*nWEq*a#kyo0pZF?{3)%P&g7{7TyC4z>*T=8e(_=v)EjK@4o!a1mccyI`A$9}jU z2Ve(=;W5+zPoX;c7&Y*#7>74d1N#<7)4vI4_$f4GqB@w3%7hm+fNki;x2>1(QLcM2 z8UJUmlSzl#^HDRNhZ^7#R7RE~eVSV9I*g)!v%}udjvDz9^FP;PjRHc+#K;vQZsO z!EsoQ>Rbbk9nf9SN{I6|~NOZnWL`@_e_1+1Iy?!4xfQzV1^q@B5Z7jlG)I?M1L>-SqO=Oavie6ZRRX86Rv^j?( zum{PO`7>(m!`Wexn25a7q@wPhhWwd@d@RQX)Y5*5TFQT-mM)TY)@C1tBhf#Die6N0 zZ9%lC0NeUsMGiOJq%@(dSNbV$)3W;u>tkoc2ovBF%=)6_KusIb9Mgb zP|2oY6KZYFIA54gQA_Z5RO%j}Qs$yJWnvI6#u4blW>m-bk+GU2w=o$w5p~{|VHv)N z8o-x0Pv<{`Jmk=@5Ou>=)D6GKJRHc=`B;okVhhg2>!^XJk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83}_^(-R>IsXWy<3id+I1W!@IVSVFIv7_Wzq+OkwMf55o~DW7 zP2G1S=Hg8K{!$h5Bp0&rxHWQ!(@`F3O)NtOZ<Mqe|S4Q}8!jfY%M> zA1ZtkRk`1hE{yvsr{Ad_PV|NQP$T>rXJOPZ=ZiHsjrLZg`sN=TgBe#l|NJgOeg6Qe z#Bt1mVwqah_qL%X=o)SeA2FH8ax-&rG_Ga ztA8^F;&zP2=TIFSK&|fMsLy?h8pvtXqdJRvls}_B{}+a7|3|SBdT}8UwQq-^ZafY( zkQwO0k>o}4BzcMSBrAxvu8x`HL9$Z~4o#*Dd5FZ4`Gnsp-wwGM^;_{W{rk!ZW)az} z6ArEB?nJA2Eh!>8RKjMWXRG5%(n{V|gX0~d+07>ZKQzHdiPp|uvW8qj)W7d|fY+`> zrLFf}G3F_3Br4}1qT_M0#COIo9J0_&4be87M79t&$st;3UXn+q5dU$IlT@nBi_Nccc0_@J+jqa8*A0#J52O!b-YV5NGGC|ek<`Gqc~YeHj+6+k5xyh=6|nq zZr-=Pfvil^K+1@}L{*&o5B-W|k{d`1(Ux0BCJ-I94!+k!UiXn18>zPKTd<8hOX|pYGMOADI-V!T$YpBSV>{kP z68snNcJdn8O|B&mYxZw(QcRW-9Zh7Y?~MOB;xc<4ZWS-s^AXnTa0l5#3djbsn9L#z z$Pu!N=tw3NeR)Y`nY(_`T<@OfZZ7Z9n4SUNvvH3Egr(N`->qw@OZXt9ym~=Rc}bb~>aHI~ zh1l<{NlWyONXv71pX%!l2pLsVJ*T|3s^xI{cyCz$(7-M^&fV+WrDg8QBKMr4lKT0z UWi4?7KMSp-Q>X21A9z*tzulzVyZ`_I diff --git a/cotisations/locale/fr/LC_MESSAGES/django.po b/cotisations/locale/fr/LC_MESSAGES/django.po index 129d4d72..15f6a057 100644 --- a/cotisations/locale/fr/LC_MESSAGES/django.po +++ b/cotisations/locale/fr/LC_MESSAGES/django.po @@ -681,8 +681,9 @@ msgstr "" #: templates/cotisations/delete.html:38 #: templates/cotisations/edit_facture.html:60 +#: views.py:181 views.py:235 msgid "Confirm" -msgstr "Confirmer" +msgstr "Valider" #: templates/cotisations/edit_facture.html:31 #: templates/cotisations/facture.html:30 @@ -695,12 +696,13 @@ msgstr "Modifier la facture" #: templates/cotisations/edit_facture.html:41 #: templates/cotisations/facture.html:56 -msgid "Invoice's articles" -msgstr "Articles de la facture" +#: templates/cotisations/index_article.html:30 +msgid "Articles" +msgstr "Articles" #: templates/cotisations/facture.html:37 -msgid "New invoice" -msgstr "Nouvelle facture" +msgid "Buy" +msgstr "Acheter une cotisation" #: templates/cotisations/facture.html:40 #, python-format @@ -713,8 +715,8 @@ msgid "Current balance: %(balance)s €" msgstr "Solde actuel : %(balance)s €" #: templates/cotisations/facture.html:70 -msgid "Add an article" -msgstr "Ajouter un article" +msgid "Add an extra article" +msgstr "Ajouter un article supplémentaire" #: templates/cotisations/facture.html:72 msgid "Total price: 0,00 €" @@ -728,9 +730,6 @@ msgstr "Factures" msgid "Subscriptions" msgstr "Cotisations" -#: templates/cotisations/index_article.html:30 -msgid "Articles" -msgstr "Articles" #: templates/cotisations/index_article.html:33 msgid "Article types list" @@ -812,9 +811,6 @@ msgstr "Contrôler les factures" msgid "You need to choose at least one article." msgstr "Vous devez choisir au moins un article." -#: views.py:181 views.py:235 -msgid "Create" -msgstr "Créer" #: views.py:228 msgid "The custom invoice was created." diff --git a/cotisations/templates/cotisations/control.html b/cotisations/templates/cotisations/control.html index 6a4a5cca..483c150c 100644 --- a/cotisations/templates/cotisations/control.html +++ b/cotisations/templates/cotisations/control.html @@ -105,7 +105,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endfor %} {% trans "Edit" as tr_edit %} - {% bootstrap_button tr_edit button_type='submit' icon='star' %} + {% bootstrap_button tr_edit button_type='submit' icon='ok' button_class='btn-success' %} {% endblock %} diff --git a/cotisations/templates/cotisations/delete.html b/cotisations/templates/cotisations/delete.html index dc06e5a5..58ce8ad2 100644 --- a/cotisations/templates/cotisations/delete.html +++ b/cotisations/templates/cotisations/delete.html @@ -36,7 +36,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% blocktrans %}Warning: are you sure you really want to delete this {{ object_name }} object ( {{ objet }} )?{% endblocktrans %} {% trans "Confirm" as tr_confirm %} - {% bootstrap_button tr_confirm button_type='submit' icon='trash' %} + {% bootstrap_button tr_confirm button_type='submit' icon='trash' button_class='btn-danger' %} {% endblock %} diff --git a/cotisations/templates/cotisations/edit_facture.html b/cotisations/templates/cotisations/edit_facture.html index 9ddcac8c..a00084f6 100644 --- a/cotisations/templates/cotisations/edit_facture.html +++ b/cotisations/templates/cotisations/edit_facture.html @@ -38,7 +38,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,

{% trans "Edit the invoice" %}

{% massive_bootstrap_form factureform 'user' %} {{ venteform.management_form }} -

{% trans "Invoice's articles" %}

+

{% trans "Articles" %}

@@ -58,7 +58,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endfor %}
{% trans "Confirm" as tr_confirm %} - {% bootstrap_button tr_confirm button_type='submit' icon='star' %} + {% bootstrap_button tr_confirm button_type='submit' icon='ok' button_class='btn-success' %} {% endblock %} diff --git a/cotisations/templates/cotisations/facture.html b/cotisations/templates/cotisations/facture.html index 4f905160..1f87f579 100644 --- a/cotisations/templates/cotisations/facture.html +++ b/cotisations/templates/cotisations/facture.html @@ -34,7 +34,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% if title %}

{{ title }}

{% else %} -

{% trans "New invoice" %}

+

{% trans "Buy" %}

{% endif %} {% if max_balance %}

{% blocktrans %}Maximum allowed balance: {{ max_balance }} €{% endblocktrans %}

@@ -53,7 +53,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endif %} {% if articlesformset %} -

{% trans "Invoice's articles" %}

+

{% trans "Articles" %}

{{ articlesformset.management_form }} {% for articlesform in articlesformset.forms %} @@ -67,12 +67,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endfor %} - +

{% blocktrans %}Total price: 0,00 €{% endblocktrans %}

{% endif %} - {% bootstrap_button action_name button_type='submit' icon='star' %} + {% bootstrap_button action_name button_type='submit' icon='ok' button_class='btn-success' %} {% if articlesformset or payment_method%} diff --git a/cotisations/templates/cotisations/payment.html b/cotisations/templates/cotisations/payment.html index 997168fd..ecd90ed8 100644 --- a/cotisations/templates/cotisations/payment.html +++ b/cotisations/templates/cotisations/payment.html @@ -40,7 +40,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% bootstrap_form form %} {% endif %} {% trans "Pay" as tr_pay %} - {% bootstrap_button tr_pay button_type='submit' icon='piggy-bank' %} + {% bootstrap_button tr_pay button_type='submit' icon='piggy-bank' button_class='btn-success' %} {% endblock %} diff --git a/cotisations/views.py b/cotisations/views.py index 35a97545..9241f209 100644 --- a/cotisations/views.py +++ b/cotisations/views.py @@ -169,7 +169,7 @@ def new_facture(request, user, userid): 'articlesformset': article_formset, 'articlelist': article_list, 'balance': balance, - 'action_name': _('Create'), + 'action_name': _('Confirm'), }, 'cotisations/facture.html', request ) @@ -218,7 +218,7 @@ def new_custom_invoice(request): return form({ 'factureform': invoice_form, - 'action_name': _("Create"), + 'action_name': _("Confirm"), 'articlesformset': articles_formset, 'articlelist': articles }, 'cotisations/facture.html', request)