Project 'cooperatic/kohinos-tav' was moved to 'agplv3/kohinos-tav'. Please update any links and bookmarks that may still have the old path.
Commit c174639f by Yvon

replace Achat de monnaie locale by Payer ma cotisation everywhere except in translation files

parent 3223667a
......@@ -471,6 +471,7 @@ class FluxController extends AbstractController
if (Payment::TYPE_ACHAT_MONNAIE_ADHERENT == $type || Payment::TYPE_ACHAT_MONNAIE_PRESTA == $type) {
$this->addFlash(
'success',
$this->getParameter('tav_env') ? 'Paiement de cotisation par Carte bancaire bien effectué !' :
$this->translator->trans('Achat de monnaie locale numérique par Carte bancaire bien effectué !')
);
} elseif (Payment::TYPE_COTISATION_ADHERENT == $type || Payment::TYPE_COTISATION_PRESTA == $type) {
......@@ -548,6 +549,7 @@ class FluxController extends AbstractController
}
$this->addFlash(
'success',
$this->getParameter('tav_env') ? 'Votre paiement de cotisation a bien été pris en compte !' :
$this->translator->trans('Votre achat de monnaie locale a bien été pris en compte !')
);
} elseif (Payment::TYPE_ACHAT_MONNAIE_PRESTA == $type) {
......@@ -575,6 +577,7 @@ class FluxController extends AbstractController
}
$this->addFlash(
'success',
$this->getParameter('tav_env') ? 'Votre paiement de cotisation a bien été pris en compte !' :
$this->translator->trans('Votre achat de monnaie locale a bien été pris en compte !')
);
} elseif (Payment::TYPE_COTISATION_ADHERENT == $type) {
......
......@@ -116,7 +116,7 @@ class UserAdherentController extends FluxController
return $this->render('@kohinos/flux/transaction.html.twig', [
'form' => $form->createView(),
'title' => $this->translator->trans('Achat de monnaie locale'),
'title' => $this->getParameter('tav_env') ? 'Payer ma cotisation' : $this->translator->trans('Achat de monnaie locale'),
]);
}
......@@ -136,7 +136,7 @@ class UserAdherentController extends FluxController
$request,
$form,
'@kohinos/flux/demande_achat_monnaie.html.twig',
['title' => $this->translator->trans("Demande d'achat de monnaie locale numérique")]
['title' => $this->getParameter('tav_env') ? 'Demande de paiement de cotisation' : $this->translator->trans("Demande d'achat de monnaie locale numérique")]
);
}
......
......@@ -268,7 +268,7 @@ class UserPrestataireController extends FluxController
return $this->render('@kohinos/flux/transaction.html.twig', [
'form' => $form->createView(),
'title' => $this->translator->trans('Achat de monnaie locale'),
'title' => $this->getParameter('tav_env') ? 'Payer ma cotisation' : $this->translator->trans('Achat de monnaie locale'),
]);
}
......@@ -289,7 +289,7 @@ class UserPrestataireController extends FluxController
$request,
$form,
'@kohinos/flux/demande_achat_monnaie.html.twig',
['title' => $this->translator->trans("Demande d'achat de monnaie locale numérique")]
['title' => $this->getParameter('tav_env') ? 'Demande de paiement de cotisation' : $this->translator->trans("Demande d'achat de monnaie locale numérique")]
);
}
......
{% extends '@kohinos/block/block_collapse.html.twig' %}
{% block blocktitle %}
<i class="fa fa-shopping-basket mr-4"></i> {{'Achat de monnaie locale'|trans }}
<i class="fa fa-shopping-basket mr-4"></i> {% if tav_env %}{{'Payer ma cotisation'|trans }}{% else %}{{'Achat de monnaie locale'|trans }}{% endif %}
{% endblock blocktitle %}
{% block blockcontent %}
{# @TODO : ajouter un KOH_BLOCK_ON_INVALID_COTISATION #}
......
......@@ -7,7 +7,11 @@
{% block content %}
<h3>
{% if tav_env %}
Votre demande de paiement de cotisation d'un montant de <b>{{ flux.montant|number_format(2) }}</b> a bien été prise en compte !
{% else %}
Votre demande d'achat de monnaie locale d'un montant de <b>{{ flux.montant|number_format(2) }}</b> a bien été prise en compte !
{% endif %}
</h3>
<p>
Nous attendons le paiement afin de créditer votre compte, voici de nouveau les instructions :
......
......@@ -7,7 +7,11 @@
{% block content %}
<h3>
{% if tav_env %}
Une nouvelle demande de paiement de cotisation d'un montant de <b>{{ flux.montant|number_format(2) }}</b> a été enregistré !
{% else %}
Une nouvelle demande d'achat de monnaie locale d'un montant de <b>{{ flux.montant|number_format(2) }}</b> a été enregistré !
{% endif %}
</h3>
<p>
Demandeur : <b>{{ flux.destinataire }}</b> (opérateur : {{ flux.operateur.name }})<br/>
......
{% extends '@kohinos/block/block_collapse.html.twig' %}
{% block blocktitle %}
<i class="fa fa-shopping-basket mr-4"></i> {{'Achat de monnaie locale'|trans }}
<i class="fa fa-shopping-basket mr-4"></i> {% if tav_env %}{{'Payer ma cotisation'|trans }}{% else %}{{'Achat de monnaie locale'|trans }}{% endif %}
{% endblock blocktitle %}
{% block blockcontent %}
{# @TODO : ajouter un KOH_BLOCK_ON_INVALID_COTISATION #}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment