diff --git a/admin/survey/classes/class.RecodeValues.php b/admin/survey/classes/class.RecodeValues.php index 8709750f9..09298a6fb 100644 --- a/admin/survey/classes/class.RecodeValues.php +++ b/admin/survey/classes/class.RecodeValues.php @@ -677,36 +677,46 @@ class RecodeValues { echo ''; if ((int)$recode_type == 1) { - echo''; + echo'
'; if ((int)$to_spr_id == 0) { echo '
'; //echo $lang['srv_recode_to_spr_add_spr'].'
'; echo '
'; - echo '

'.$lang['srv_recode_to_spr_name'].' '; + echo '

'.$lang['srv_recode_to_spr_name'].' '; #echo ''.$lang['add'].''; - echo ''; + echo ''; echo '

'; echo '
'; echo '
'; } else { - echo ''.$rowSpremenljivka['variable'].' - '.skrajsaj(strip_tags($rowSpremenljivka['naslov']), 40).'

'; + echo ''.$rowSpremenljivka['variable'].' - '.skrajsaj(strip_tags($rowSpremenljivka['naslov']), 40).''; $sql1 = sisplet_query("SELECT naslov FROM srv_vrednost WHERE spr_id='$to_spr_id' ORDER BY vrstni_red ASC"); + $count = 0; + echo '

'.$lang['srv_recode_valueset']; while ($row1 = mysqli_fetch_array($sql1)) { if ($rowSpremenljivka['tip'] == 1) { - echo ''; - echo '
'; + if ($count == 0) { + $count = 1; + } + else { + echo ', '; + } + echo $row1['naslov']; } } + echo '

'; + echo '
'; if (mysqli_num_rows($sql1) == 0) { echo ' '.$lang['srv_novavrednost'].': '; $margin='0'; - } else { $margin = '23px'; + } else { $margin = 'none-left'; } - echo '0?' placeholder="'.$lang['srv_novavrednost'].'" ':'').' style="margin-left:'.$margin.'; width: 80px" /> '; - echo ''; - echo '
Napredne spremembe:'.Help::display('srv_recode_advanced_edit'); + echo '0?' placeholder="'.$lang['srv_novavrednost'].'" ':'').' /> '; + echo ''; + echo '

Napredne spremembe:'.Help::display('srv_recode_advanced_edit').'

'; + echo '
'; } - echo ''; + echo '
'; } } if ( $displayType == 1 ) { @@ -720,22 +730,21 @@ class RecodeValues { //echo ''; echo '
'; echo ''; - echo ''; - echo ''; - echo ''; echo ''; echo ''; - echo ''; - echo ''; + echo ''; + echo ''; echo ''; foreach (self::$variables AS $vKey => $variable) { @@ -746,9 +755,6 @@ class RecodeValues { echo ''; - # spacer - echo ''; - # echo '
'; + echo ''; echo $lang['srv_recode_original']; echo '  '; + echo ''; echo $lang['srv_recode_to']; echo '
'; - echo $lang['srv_recode_to_label']; - echo ''; - echo $lang['srv_recode_to_value']; - echo ''; + echo $lang['srv_label']; + echo ''; + echo $lang['srv_vrednost']; + echo '
'; echo '  ['.$variable['variable'].']'; echo ' '; if ((int)$recode_type == 0) { # imamo klasično rekodiranje diff --git a/lang/1.php b/lang/1.php index d596cacf4..ffa2d8ff8 100644 --- a/lang/1.php +++ b/lang/1.php @@ -5283,6 +5283,7 @@ $lang = array ( "srv_coding_no_spr" => "Ta spremenljivka še nima kodiranih vrednosti", 'srv_coding_new' => "Dodaj spremenljivko za kodiranje", 'srv_recoding_not_set_jet' => "Za ta tip vprašanja še ni omogočeno rekodiranje!", + 'srv_recode_valueset' => "Možne vrednosti: ", 'srv_recode_original' => "Obstoječi odgovori", 'srv_recode_to' => "Rekodirani odgovori", 'srv_recode_number_if' => "Če je %s", diff --git a/lang/2.php b/lang/2.php index b1cb49a63..2819a5c6e 100644 --- a/lang/2.php +++ b/lang/2.php @@ -5254,6 +5254,7 @@ $lang = array ( "srv_coding_no_spr" => "There are no variables for coding yet", 'srv_coding_new' => "New coding variable", 'srv_recoding_not_set_jet' => "Recoding is not supported for that type of question!", + 'srv_recode_valueset' => "Possible values: ", 'srv_recode_original' => "Answer / value", 'srv_recode_to' => "will recode in", 'srv_recode_number_if' => "If Answer is", diff --git a/public/css/admin_new.css b/public/css/admin_new.css index 88ea8e312..8e4a71a19 100644 --- a/public/css/admin_new.css +++ b/public/css/admin_new.css @@ -8488,6 +8488,56 @@ div#div_condition_editing div#div_condition_editing_container div#div_condition_ margin-right: 4px; } +.question_recode_table { + width: 100%; + white-space: nowrap; +} +.question_recode_table td, .question_recode_table th { + font-size: 14px; +} +.question_recode_table td select, .question_recode_table th select { + width: 100% !important; +} + +#divRecodeSprOption label { + font-size: 14px; +} + +#divRecodeSprNew .setting_holder { + display: flex; + flex-direction: row; + align-items: center; + margin: 16px 0; +} +#divRecodeSprNew .setting_holder button { + width: fit-content; + min-width: auto; +} +#divRecodeSprNew .setting_holder input.text { + margin: 0 16px 0 16px; +} +#divRecodeSprNew .setting_holder input.text.none-left { + margin-left: 0; +} +#divRecodeSprNew .setting_holder .recode_end { + margin-left: 80px; +} + +#coding_spr_new p, #coding_spr_new span, +#divRecodeSprNew p, +#divRecodeSprNew span { + font-size: 14px; +} +#coding_spr_new input, +#divRecodeSprNew input { + margin: 0 16px 0 16px; +} +#coding_spr_new button, +#divRecodeSprNew button { + width: fit-content; + min-width: auto; +} + div#inspect_div .setting_holder .horizontal { display: flex; flex-direction: row; diff --git a/resources/sass/admin_new/components/popup/page_specific.scss b/resources/sass/admin_new/components/popup/page_specific.scss index 6ace85009..d050de656 100644 --- a/resources/sass/admin_new/components/popup/page_specific.scss +++ b/resources/sass/admin_new/components/popup/page_specific.scss @@ -224,7 +224,6 @@ div#div_analiza_archive_name { } //Pošji arhiv - #div_archives_email_left { width: 75%; } @@ -453,6 +452,59 @@ div#div_condition_editing { margin-right: 4px; } +.question_recode_table { + width: 100%; + white-space: nowrap; + td, th { + font-size: 14px; + select { + width: 100% !important; + } + } +} + +#divRecodeSprOption { + label { + font-size: 14px; + } +} +#divRecodeSprNew { + .setting_holder { + display: flex; + flex-direction: row; + align-items: center; + margin: 16px 0; + + button { + width: fit-content; + min-width: auto; + } + input.text { + margin: 0 16px 0 16px; + + &.none-left { + margin-left: 0; + } + } + .recode_end { + margin-left: 80px; + } + } +} +#coding_spr_new, +#divRecodeSprNew{ + p, span { + font-size: 14px; + } + input { + margin: 0 16px 0 16px; + } + button { + width: fit-content; + min-width: auto; + } +} + //////ANALIZA////// //Zoom