fix(inscription): url not right
This commit is contained in:
parent
96d1449c79
commit
f1b53f38ed
1 changed files with 2 additions and 14 deletions
|
@ -36,9 +36,9 @@ class InscriptionField extends BazarField
|
|||
|| $this->getWiki()->UserIsInGroup('Coordination')
|
||||
) {
|
||||
if ($entry['id_typeannonce'] == '10') {
|
||||
return '<a href="' . $this->getWiki()->href('iframe', 'inscription-employeur', 'vue=saisir&action=saisir_fiche&listefiche' . $entry['id_typeannonce'] . 'inscription=' . $entry['id_fiche'] . '&id=' . $this->inscriptionForm) . '" class="modalbox btn btn-primary" data-iframe="1" title="Vous inscrire a cette rencontre">Vous inscrire à cette rencontre</a>';
|
||||
return '<a href="' . $this->getWiki()->href('iframe', 'inscription-formation', 'vue=saisir&action=saisir_fiche&listefiche' . $entry['id_typeannonce'] . 'inscription=' . $entry['id_fiche'] . '&id=' . $this->inscriptionForm) . '" class="modalbox btn btn-primary" data-iframe="1" title="Vous inscrire a cette rencontre">Vous inscrire à cette rencontre</a>';
|
||||
}
|
||||
return '<a href="' . $this->getWiki()->href('iframe', 'inscription-employeur', 'vue=saisir&action=saisir_fiche&listefiche' . $entry['id_typeannonce'] . 'inscription=' . $entry['id_fiche'] . '&id=' . $this->inscriptionForm) . '" class="modalbox btn btn-primary" data-iframe="1" title="Inscrire des adultes relais">Inscrire des adultes relais à cette formation</a>';
|
||||
return '<a href="' . $this->getWiki()->href('iframe', 'inscription-formation', 'vue=saisir&action=saisir_fiche&listefiche' . $entry['id_typeannonce'] . 'inscription=' . $entry['id_fiche'] . '&id=' . $this->inscriptionForm) . '" class="modalbox btn btn-primary" data-iframe="1" title="Inscrire des adultes relais">Inscrire des adultes relais à cette formation</a>';
|
||||
} else {
|
||||
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>';
|
||||
}
|
||||
|
@ -48,16 +48,4 @@ class InscriptionField extends BazarField
|
|||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
// change return of this method to keep compatible with php 7.3 (mixed is not managed)
|
||||
#[\ReturnTypeWillChange]
|
||||
public function jsonSerialize()
|
||||
{
|
||||
return array_merge(
|
||||
parent::jsonSerialize(),
|
||||
[
|
||||
'reservation_button' => '<a class="btn btn-primary" href="#"><i class="fa fa-plus"></i> Je profite de ce trajet</a>'
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue