From 5d7807a101caea600f8a7411e3c72321caba73c6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 4 Sep 2010 23:58:11 +0000 Subject: [PATCH] Qual: Show button greyed if card not validated --- htdocs/adherents/card_subscriptions.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/card_subscriptions.php b/htdocs/adherents/card_subscriptions.php index d065a4fa833..e6ae3c7b138 100644 --- a/htdocs/adherents/card_subscriptions.php +++ b/htdocs/adherents/card_subscriptions.php @@ -234,14 +234,17 @@ if ($errmsg) /* * Barre d'actions */ + print '
'; // Lien nouvelle cotisation si non brouillon et non resilie if ($user->rights->adherent->cotisation->creer) { - if ($action != 'addsubscription' && $adh->statut > 0) + if ($action != 'addsubscription') { - print "".$langs->trans("AddSubscription").""; + if ($adh->statut > 0) print "".$langs->trans("AddSubscription").""; + else print ''.$langs->trans("AddSubscription").''; + } } print '
';