NEW conditionnal add member button by statut

This commit is contained in:
ptibogxiv 2019-01-24 18:40:41 +01:00 committed by GitHub
parent f9686c47af
commit 634810b8b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -427,8 +427,13 @@ if ($rowid > 0)
}
// Add
if ($user->rights->adherent->configurer && !empty($object->statut))
{
print '<div class="inline-block divButAction"><a class="butAction" href="card.php?action=create&typeid='.$object->id.'&backtopage='.urlencode($_SERVER["PHP_SELF"].'?rowid='.$object->id).'">'.$langs->trans("AddMember").'</a></div>';
} else {
print '<div class="inline-block divButAction"><a class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans("NoAddMember")).'">'.$langs->trans("AddMember").'</a></div>';
}
// Delete
if ($user->rights->adherent->configurer)
{