Fix vertical radio buttons in surveys see BT#13709

pull/2487/head
jmontoyaa 7 years ago
parent cb18824539
commit ee596ff4a1
  1. 13
      app/Resources/public/css/base.css
  2. 5
      main/survey/ch_yesno.php

@ -6814,9 +6814,18 @@ input.form-control[type="color"] {
.grid-courses .col-sm-6:nth-child(2n+1) {
clear: left;
}
.form-inline .survey_question .input-group label{
display: none;
.survey_question.ch_yesno .input-group .radio-vertical {
margin-left: 10px;
cursor: pointer;
}
.survey_question.ch_yesno .input-group label {
font-weight: normal;
}
.form-inline .survey_question.ch_score .input-group label{
display: block;
width: 100%;

@ -54,12 +54,13 @@ class ch_yesno extends survey_question
{
if (is_array($questionData['options'])) {
$class = 'radio-inline';
$labelClass = 'radio-inline';
if ($questionData['display'] == 'vertical') {
$class = 'radio';
$class = 'radio-vertical';
}
$name = 'question'.$questionData['question_id'];
$radioAttributes = ['radio-class' => $class, 'label-class' => $class];
$radioAttributes = ['radio-class' => $class, 'label-class' => $labelClass];
if (!empty($questionData['is_required'])) {
$radioAttributes['required'] = 'required';

Loading…
Cancel
Save