fix better text
This commit is contained in:
parent
3686e8463b
commit
647147b3e1
1 changed files with 7 additions and 3 deletions
|
@ -25,10 +25,14 @@ class InscriptionField extends BazarField
|
||||||
|
|
||||||
protected function renderStatic($entry)
|
protected function renderStatic($entry)
|
||||||
{
|
{
|
||||||
if ($this->getWiki()->UserIsInGroup('admins') ||$this->getWiki()->UserIsInGroup('Employeur') ||$this->getWiki()->UserIsInGroup('Coordination') ) {
|
if (
|
||||||
return "<a href=''>Inscrire a cette formation</a>";
|
$this->getWiki()->UserIsInGroup('admins')
|
||||||
|
|| $this->getWiki()->UserIsInGroup('Employeur')
|
||||||
|
||$this->getWiki()->UserIsInGroup('Coordination')
|
||||||
|
) {
|
||||||
|
return '<a href="#" class="btn btn-primary">Inscrire des adultes relais à cette formation</a>';
|
||||||
} else {
|
} else {
|
||||||
return "Faut etre dans le bon groupe";
|
return '<div class="alert alert-info">Pour vous inscrire à cette session, vous devez en faire la demande à votre employeur qui une fois connecté pourra vous inscrire.</div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue