Loading src/UnicaenUtilisateur/View/Helper/UserProfileSelect.php +2 −2 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ class UserProfileSelect extends UserAbstract $inputClass = 'user-profile-select-input'; $form = new \Laminas\Form\Form(); $form->setAttribute('class', "$formClass " . $this->formClass); $form->setAttribute('class', "$formClass mb-2" . $this->formClass); $html = $this->getView()->form()->openTag($form); Loading Loading @@ -73,7 +73,7 @@ class UserProfileSelect extends UserAbstract //TODO JP !!!MARQUEUR DE LA HONTE!!! // if (! $role instanceof NamedRole) { $selected = ($id === $this->getSelectedIdentityRole()); $html .= '<div class="radio">' . $this->getView()->userProfileSelectRadioItem($role, $selected) . '</div>'; $html .= '<div class="form-check">' . $this->getView()->userProfileSelectRadioItem($role, $selected) . '</div>'; // } } } Loading src/UnicaenUtilisateur/View/Helper/UserProfileSelectRadioItem.php +3 −1 Original line number Diff line number Diff line <?php namespace UnicaenUtilisateur\View\Helper; use Laminas\Form\View\Helper\FormMultiCheckbox; use Laminas\Permissions\Acl\Role\RoleInterface; use Laminas\Form\Element\Radio; Loading Loading @@ -72,7 +73,7 @@ class UserProfileSelectRadioItem extends UserAbstract protected function createRadio() { $id = $this->role->getRoleId(); $inputClass = 'user-profile-select-input'; $inputClass = 'user-profile-select-input form-check-input'; $roleToString = method_exists($this->role, '__toString') ? (string) $this->role : $this->role->getRoleId(); $roleToString = sprintf('%s%s', $roleToString, $this->role->isAuto() ? ' <i title="Rôle automatique" class="fas fa-user-cog fa-sm"></i>' : ''); Loading @@ -84,6 +85,7 @@ class UserProfileSelectRadioItem extends UserAbstract ->setAttribute('class', $inputClass) ->setAttribute('title', "Cliquez pour changer de profil courant") ->setLabelOption('disable_html_escape', true) ->setLabelAttributes(['class' => 'form-check-label']) ->setValue($this->selected ? $id : null); return $radio; Loading Loading
src/UnicaenUtilisateur/View/Helper/UserProfileSelect.php +2 −2 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ class UserProfileSelect extends UserAbstract $inputClass = 'user-profile-select-input'; $form = new \Laminas\Form\Form(); $form->setAttribute('class', "$formClass " . $this->formClass); $form->setAttribute('class', "$formClass mb-2" . $this->formClass); $html = $this->getView()->form()->openTag($form); Loading Loading @@ -73,7 +73,7 @@ class UserProfileSelect extends UserAbstract //TODO JP !!!MARQUEUR DE LA HONTE!!! // if (! $role instanceof NamedRole) { $selected = ($id === $this->getSelectedIdentityRole()); $html .= '<div class="radio">' . $this->getView()->userProfileSelectRadioItem($role, $selected) . '</div>'; $html .= '<div class="form-check">' . $this->getView()->userProfileSelectRadioItem($role, $selected) . '</div>'; // } } } Loading
src/UnicaenUtilisateur/View/Helper/UserProfileSelectRadioItem.php +3 −1 Original line number Diff line number Diff line <?php namespace UnicaenUtilisateur\View\Helper; use Laminas\Form\View\Helper\FormMultiCheckbox; use Laminas\Permissions\Acl\Role\RoleInterface; use Laminas\Form\Element\Radio; Loading Loading @@ -72,7 +73,7 @@ class UserProfileSelectRadioItem extends UserAbstract protected function createRadio() { $id = $this->role->getRoleId(); $inputClass = 'user-profile-select-input'; $inputClass = 'user-profile-select-input form-check-input'; $roleToString = method_exists($this->role, '__toString') ? (string) $this->role : $this->role->getRoleId(); $roleToString = sprintf('%s%s', $roleToString, $this->role->isAuto() ? ' <i title="Rôle automatique" class="fas fa-user-cog fa-sm"></i>' : ''); Loading @@ -84,6 +85,7 @@ class UserProfileSelectRadioItem extends UserAbstract ->setAttribute('class', $inputClass) ->setAttribute('title', "Cliquez pour changer de profil courant") ->setLabelOption('disable_html_escape', true) ->setLabelAttributes(['class' => 'form-check-label']) ->setValue($this->selected ? $id : null); return $radio; Loading