8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 23:43:47 +00:00

Fix d'affichage

This commit is contained in:
Hugo LEVY-FALK 2018-07-13 22:23:32 +02:00
parent be7f8753f0
commit 241af30211
2 changed files with 18 additions and 15 deletions

View file

@ -367,7 +367,8 @@ def add_article(request):
return redirect(reverse('cotisations:index-article'))
return form({
'factureform': article,
'action_name': _("Add")
'action_name': _("Add"),
'title': _("New article")
}, 'cotisations/facture.html', request)
@ -388,7 +389,8 @@ def edit_article(request, article_instance, **_kwargs):
return redirect(reverse('cotisations:index-article'))
return form({
'factureform': article,
'action_name': _('Edit')
'action_name': _('Edit'),
'title': _("Edit article")
}, 'cotisations/facture.html', request)
@ -409,7 +411,8 @@ def del_article(request, instances):
return redirect(reverse('cotisations:index-article'))
return form({
'factureform': article,
'action_name': _("Delete")
'action_name': _("Delete"),
'title': _("Delete article")
}, 'cotisations/facture.html', request)
@ -472,9 +475,11 @@ def edit_paiement(request, paiement_instance, **_kwargs):
return form({
'factureform': payment,
'payment_method': payment_method,
'action_name': _("Edit")
'action_name': _("Edit"),
'title': _("Edit payment method")
}, 'cotisations/facture.html', request)
'title': _("New payment method")
# TODO : change paiement to payment
@login_required
@ -507,7 +512,8 @@ def del_paiement(request, instances):
return redirect(reverse('cotisations:index-paiement'))
return form({
'factureform': payment,
'action_name': _("Delete")
'action_name': _("Delete"),
'title': _("Delete payment method")
}, 'cotisations/facture.html', request)
@ -528,7 +534,8 @@ def add_banque(request):
return redirect(reverse('cotisations:index-banque'))
return form({
'factureform': bank,
'action_name': _("Add")
'action_name': _("Add"),
'title': _("New bank")
}, 'cotisations/facture.html', request)
@ -550,7 +557,8 @@ def edit_banque(request, banque_instance, **_kwargs):
return redirect(reverse('cotisations:index-banque'))
return form({
'factureform': bank,
'action_name': _("Edit")
'action_name': _("Edit"),
'title': _("Edit bank")
}, 'cotisations/facture.html', request)
@ -585,7 +593,8 @@ def del_banque(request, instances):
return redirect(reverse('cotisations:index-banque'))
return form({
'factureform': bank,
'action_name': _("Delete")
'action_name': _("Delete"),
'title': _("Delete bank")
}, 'cotisations/facture.html', request)

View file

@ -281,13 +281,7 @@ non adhérent</span>{% endif %} et votre connexion est {% if users.has_access %}
<i class="fa fa-euro-sign"></i>
Modifier le solde
</a>
{% endif%}{% acl_else %}
{% if user_solde %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:new_facture_solde' user.id %}">
<i class="fa fa-euro-sign"></i>
Ajouter une cotisation par solde
</a>
{% endif %}
{% endif%}
{% acl_end %}
</div>
<div class="panel-body">