Browse Source

Corrections de front buttons et labels cotisations

add_link_port_search_results
detraz 7 years ago
parent
commit
32be355fd8
  1. BIN
      cotisations/locale/fr/LC_MESSAGES/django.mo
  2. 22
      cotisations/locale/fr/LC_MESSAGES/django.po
  3. 2
      cotisations/templates/cotisations/control.html
  4. 2
      cotisations/templates/cotisations/delete.html
  5. 4
      cotisations/templates/cotisations/edit_facture.html
  6. 8
      cotisations/templates/cotisations/facture.html
  7. 2
      cotisations/templates/cotisations/payment.html
  8. 4
      cotisations/views.py

BIN
cotisations/locale/fr/LC_MESSAGES/django.mo

Binary file not shown.

22
cotisations/locale/fr/LC_MESSAGES/django.po

@ -681,8 +681,9 @@ msgstr ""
#: templates/cotisations/delete.html:38 #: templates/cotisations/delete.html:38
#: templates/cotisations/edit_facture.html:60 #: templates/cotisations/edit_facture.html:60
#: views.py:181 views.py:235
msgid "Confirm" msgid "Confirm"
msgstr "Confirmer" msgstr "Valider"
#: templates/cotisations/edit_facture.html:31 #: templates/cotisations/edit_facture.html:31
#: templates/cotisations/facture.html:30 #: templates/cotisations/facture.html:30
@ -695,12 +696,13 @@ msgstr "Modifier la facture"
#: templates/cotisations/edit_facture.html:41 #: templates/cotisations/edit_facture.html:41
#: templates/cotisations/facture.html:56 #: templates/cotisations/facture.html:56
msgid "Invoice's articles" #: templates/cotisations/index_article.html:30
msgstr "Articles de la facture" msgid "Articles"
msgstr "Articles"
#: templates/cotisations/facture.html:37 #: templates/cotisations/facture.html:37
msgid "New invoice" msgid "Buy"
msgstr "Nouvelle facture" msgstr "Acheter une cotisation"
#: templates/cotisations/facture.html:40 #: templates/cotisations/facture.html:40
#, python-format #, python-format
@ -713,8 +715,8 @@ msgid "Current balance: %(balance)s €"
msgstr "Solde actuel : %(balance)s €" msgstr "Solde actuel : %(balance)s €"
#: templates/cotisations/facture.html:70 #: templates/cotisations/facture.html:70
msgid "Add an article" msgid "Add an extra article"
msgstr "Ajouter un article" msgstr "Ajouter un article supplémentaire"
#: templates/cotisations/facture.html:72 #: templates/cotisations/facture.html:72
msgid "Total price: <span id=\"total_price\">0,00</span> €" msgid "Total price: <span id=\"total_price\">0,00</span> €"
@ -728,9 +730,6 @@ msgstr "Factures"
msgid "Subscriptions" msgid "Subscriptions"
msgstr "Cotisations" msgstr "Cotisations"
#: templates/cotisations/index_article.html:30
msgid "Articles"
msgstr "Articles"
#: templates/cotisations/index_article.html:33 #: templates/cotisations/index_article.html:33
msgid "Article types list" msgid "Article types list"
@ -812,9 +811,6 @@ msgstr "Contrôler les factures"
msgid "You need to choose at least one article." msgid "You need to choose at least one article."
msgstr "Vous devez choisir au moins un article." msgstr "Vous devez choisir au moins un article."
#: views.py:181 views.py:235
msgid "Create"
msgstr "Créer"
#: views.py:228 #: views.py:228
msgid "The custom invoice was created." msgid "The custom invoice was created."

2
cotisations/templates/cotisations/control.html

@ -105,7 +105,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endfor %} {% endfor %}
</table> </table>
{% trans "Edit" as tr_edit %} {% 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' %}
</form> </form>
{% endblock %} {% endblock %}

2
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 %} {% blocktrans %}Warning: are you sure you really want to delete this {{ object_name }} object ( {{ objet }} )?{% endblocktrans %}
</h4> </h4>
{% trans "Confirm" as tr_confirm %} {% 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' %}
</form> </form>
{% endblock %} {% endblock %}

4
cotisations/templates/cotisations/edit_facture.html

@ -38,7 +38,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<h3>{% trans "Edit the invoice" %}</h3> <h3>{% trans "Edit the invoice" %}</h3>
{% massive_bootstrap_form factureform 'user' %} {% massive_bootstrap_form factureform 'user' %}
{{ venteform.management_form }} {{ venteform.management_form }}
<h3>{% trans "Invoice's articles" %}</h3> <h3>{% trans "Articles" %}</h3>
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
@ -58,7 +58,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endfor %} {% endfor %}
</table> </table>
{% trans "Confirm" as tr_confirm %} {% 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' %}
</form> </form>
{% endblock %} {% endblock %}

8
cotisations/templates/cotisations/facture.html

@ -34,7 +34,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% if title %} {% if title %}
<h3>{{ title }}</h3> <h3>{{ title }}</h3>
{% else %} {% else %}
<h3>{% trans "New invoice" %}</h3> <h3>{% trans "Buy" %}</h3>
{% endif %} {% endif %}
{% if max_balance %} {% if max_balance %}
<h4>{% blocktrans %}Maximum allowed balance: {{ max_balance }} €{% endblocktrans %}</h4> <h4>{% blocktrans %}Maximum allowed balance: {{ max_balance }} €{% endblocktrans %}</h4>
@ -53,7 +53,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<div id="paymentMethod"></div> <div id="paymentMethod"></div>
{% endif %} {% endif %}
{% if articlesformset %} {% if articlesformset %}
<h3>{% trans "Invoice's articles" %}</h3> <h3>{% trans "Articles" %}</h3>
<div id="form_set" class="form-group"> <div id="form_set" class="form-group">
{{ articlesformset.management_form }} {{ articlesformset.management_form }}
{% for articlesform in articlesformset.forms %} {% for articlesform in articlesformset.forms %}
@ -67,12 +67,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
<input class="btn btn-primary btn-sm" role="button" value="{% trans "Add an article"%}" id="add_one"> <input class="btn btn-primary btn-block" role="button" value="{% trans "Add an extra article"%}" id="add_one">
<p> <p>
{% blocktrans %}Total price: <span id="total_price">0,00</span> €{% endblocktrans %} {% blocktrans %}Total price: <span id="total_price">0,00</span> €{% endblocktrans %}
</p> </p>
{% endif %} {% endif %}
{% bootstrap_button action_name button_type='submit' icon='star' %} {% bootstrap_button action_name button_type='submit' icon='ok' button_class='btn-success' %}
</form> </form>
{% if articlesformset or payment_method%} {% if articlesformset or payment_method%}

2
cotisations/templates/cotisations/payment.html

@ -40,7 +40,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% bootstrap_form form %} {% bootstrap_form form %}
{% endif %} {% endif %}
{% trans "Pay" as tr_pay %} {% 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' %}
</form> </form>
{% endblock %} {% endblock %}

4
cotisations/views.py

@ -169,7 +169,7 @@ def new_facture(request, user, userid):
'articlesformset': article_formset, 'articlesformset': article_formset,
'articlelist': article_list, 'articlelist': article_list,
'balance': balance, 'balance': balance,
'action_name': _('Create'), 'action_name': _('Confirm'),
}, },
'cotisations/facture.html', request 'cotisations/facture.html', request
) )
@ -218,7 +218,7 @@ def new_custom_invoice(request):
return form({ return form({
'factureform': invoice_form, 'factureform': invoice_form,
'action_name': _("Create"), 'action_name': _("Confirm"),
'articlesformset': articles_formset, 'articlesformset': articles_formset,
'articlelist': articles 'articlelist': articles
}, 'cotisations/facture.html', request) }, 'cotisations/facture.html', request)

Loading…
Cancel
Save