diff --git a/admin/survey/SurveyAdminAjax.php b/admin/survey/SurveyAdminAjax.php index cb3943e67..cb72bcbfd 100644 --- a/admin/survey/SurveyAdminAjax.php +++ b/admin/survey/SurveyAdminAjax.php @@ -6154,7 +6154,7 @@ class SurveyAdminAjax { // Preview okno echo '
'; - echo ''.$lang['srv_poglejanketo2'].''; + echo ''.$lang['srv_poglejanketo2'].''; echo '
'; echo ''; diff --git a/admin/survey/classes/class.NewSurvey.php b/admin/survey/classes/class.NewSurvey.php index a96008962..66a5e7238 100644 --- a/admin/survey/classes/class.NewSurvey.php +++ b/admin/survey/classes/class.NewSurvey.php @@ -600,25 +600,28 @@ class NewSurvey{ // 1. sklop - ime ankete + echo '
'; + echo '
'; // Naslov + echo '
' . $lang['srv_newSurvey_survey_from_text'] . '
'; echo '
' . $lang['srv_noSurvey_settings'] . '
'; - echo '
'; - + echo '
'; + // Interno ime - echo '
'; - echo '' . $lang['srv_list_no_data_create'] . ':'; - echo ''; - echo '0 / ' . ANKETA_NASLOV_MAXLENGTH . ''; + echo '
'; + echo ''; + echo ''; + echo '0 / ' . ANKETA_NASLOV_MAXLENGTH . ''; echo '
'; // Objavljeno ime - echo '
'; - echo '' . $lang['srv_novaanketa_kratkoime'] . ':'; - echo ''; - echo '0 / ' . ANKETA_AKRONIM_MAXLENGTH . ''; + echo '
'; + echo ''; + echo ''; + echo '0 / ' . ANKETA_AKRONIM_MAXLENGTH . ''; echo '
'; // Ce ima uporabnik mape, lahko izbere v katero mapo se anketa uvrsti @@ -626,10 +629,10 @@ class NewSurvey{ $show_folders = UserSetting::getInstance()->getUserSetting('survey_list_folders'); $sql = sisplet_query("SELECT * FROM srv_mysurvey_folder WHERE usr_id='$global_user_id' ORDER BY naslov ASC"); if($show_folders == 1 && mysqli_num_rows($sql) > 0){ - echo '
'; - echo '' . $lang['srv_newSurvey_survey_new_folder'] . ':'; + echo '
'; + echo ''; - echo ''; echo ''; while($row = mysqli_fetch_array($sql)){ echo ''; @@ -642,13 +645,16 @@ class NewSurvey{ echo '
'; echo '
'; - // 2. sklop - uvoz iz besedila echo '
'; // Naslov echo '
' . $lang['srv_newSurvey_survey_from_text_title'] . ' '.Help::display('srv_create_survey_from_text').'
'; - echo '
' . $lang['srv_newSurvey_survey_from_text_text'] . '
'; + echo '

' . $lang['srv_newSurvey_survey_from_text_text1'] . '

'; + echo '

' . $lang['srv_newSurvey_survey_from_text_text2'] . '

'; + echo '

' . $lang['srv_newSurvey_survey_from_text_text3'] . '

'; + + echo '
'; // Input okno za text echo '
'; @@ -658,19 +664,20 @@ class NewSurvey{ // Preview okno echo '
'; - echo ''.$lang['srv_poglejanketo2'].''; + echo ''.$lang['srv_poglejanketo2'].''; echo '
'; - echo '
'; + echo '
'; + + echo '
'; + // Gumba naprej in preklici - echo '
'; - - echo '' . $lang['srv_cancel'] . ''; - echo '' . $lang['next1'] . ''; - - echo '
'; + echo '
'; + echo ''; + echo ''; + echo '
'; } @@ -804,7 +811,7 @@ class NewSurvey{ // Ce imamo prazno if($text == ''){ - $text = ''.$lang['srv_poglejanketo2'].''; + $text = ''.$lang['srv_poglejanketo2'].''; } else{ // Pobrisemo vmesne odvecne presledke @@ -817,7 +824,7 @@ class NewSurvey{ // Wrapamo naslove (prazna vrstica spredaj) $text = preg_replace( '/

([^<>]+)/', - '

$1', + '

$1', $text ); // Wrapamo variable (vsaka v novi vrstici) @@ -829,14 +836,14 @@ class NewSurvey{ // Dodamo se textbox ce je samo vprasanje $text = preg_replace( '/([^<>]+<\/span>)

/', - '$1


', + '$1


', $text ); // Wrapamo se prvo vrstico kot naslov $text = preg_replace( '/([^<>]+)
/', - '$1
', + '$1
', $text, 1 ); // Dodamo se textbox na zadnjo vrstico ce je potrebno @@ -848,7 +855,7 @@ class NewSurvey{ // Dodamo se textbox na prvo vrstico ce je potrebno $text = preg_replace( '/([^<>]+<\/span>)

/', - '$1


', + '$1


', $text, 1 ); } diff --git a/lang/1.php b/lang/1.php index f85e7756f..3d8b0d2d6 100644 --- a/lang/1.php +++ b/lang/1.php @@ -7067,7 +7067,9 @@ $lang = array ( 'srv_newSurvey_survey_archive_error2' => "Pri uvozu ankete je prišlo do napake. Zbrane datoteke ni mogoče uvoziti.", 'srv_newSurvey_survey_from_text' => "Uvoz besedila", 'srv_newSurvey_survey_from_text_title' => "Prilepi besedilo", - 'srv_newSurvey_survey_from_text_text' => "Med vprašanji mora biti prazna vrstica.

Za vsako vprašanje morajo biti kategorije odgovorov v svoji vrstici. V primeru tabele je v svoji vrstici vsako vprašanje.

Ostale vidike se uredi v urejanju (npr. sprememba vprašanja v tabelo podvprašanj, sprememba radio gumbov v checbox).", + 'srv_newSurvey_survey_from_text_text1' => "Za vsako vprašanje morajo biti kategorije odgovorov v svoji vrstici. V primeru tabele je v svoji vrstici vsako vprašanje.", + 'srv_newSurvey_survey_from_text_text2' => "Med vprašanji mora biti prazna vrstica.", + 'srv_newSurvey_survey_from_text_text3' => "Ostale podrobnosti se lahko uredi po uvozu ankete (npr. sprememba vprašanja v tabelo podvprašanj, sprememba radio gumbov v checkbox).", 'srv_newSurvey_survey_from_text_example' => "Naslov vprašanja 1\r\nVrednost 1\r\nVrednost 2\r\nVrednost 3\r\n\r\nNaslov vprašanja 2\r\nVrednost 1\r\nVrednost 2\r\nVrednost 3", diff --git a/lang/2.php b/lang/2.php index 6312509d6..e09ccc548 100644 --- a/lang/2.php +++ b/lang/2.php @@ -6953,7 +6953,9 @@ $lang = array ( 'srv_newSurvey_survey_archive_error2' => "Import error. Selected .1ka file cannot be imported.", 'srv_newSurvey_survey_from_text' => "Import text", 'srv_newSurvey_survey_from_text_title' => "Paste text", - 'srv_newSurvey_survey_from_text_text' => "There must be a blank line between the questions.

For each question, the answer categories must be in their own line. In the case of a table, each question is in its own row.

Other aspects are edited in editing (e.g. changing a question to a subquery table, changing radio buttons to a checbox).", + 'srv_newSurvey_survey_from_text_text1' => "For each question, the answer categories must be in their own line. In the case of a table, each question is in its own row.", + 'srv_newSurvey_survey_from_text_text2' => "There must be a blank line between the questions.", + 'srv_newSurvey_survey_from_text_text3' => "Other details can be edited after importing the survey (e.g. changing a question to a subquery table, changing radio buttons to a checbox).", 'srv_newSurvey_survey_from_text_example' => "Question 1 title\r\nValue 1\r\nValue 2\r\nValue 3\r\n\r\nQuestion 2 title\r\nValue 1\r\nValue 2\r\nValue 3", 'srv_export_no_chart' => "No chart available", diff --git a/public/css/admin_new.css b/public/css/admin_new.css index a1a2eced3..904c4e65f 100644 --- a/public/css/admin_new.css +++ b/public/css/admin_new.css @@ -14418,75 +14418,79 @@ and open the template in the editor. height: auto; overflow: auto; } -#new_anketa_div #right_content .anketa_from_text .from_text_instructions { - line-height: 14px; - margin-bottom: 10px; +#new_anketa_div #right_content .anketa_from_text .from_text_sidebyside_holder { + display: flex; + flex-direction: row; } -#new_anketa_div #right_content .anketa_from_text #input_field_holder { - float: left; - width: 50%; - height: 400px; +#new_anketa_div #right_content .anketa_from_text .from_text_sidebyside_holder #input_field_holder { box-sizing: border-box; - padding: 20px; + flex-shrink: 0; } -#new_anketa_div #right_content .anketa_from_text #input_field_holder #input_field { - width: 100%; - height: 100%; +#new_anketa_div #right_content .anketa_from_text .from_text_sidebyside_holder #input_field_holder #input_field { + margin-right: 32px; } -#new_anketa_div #right_content .anketa_from_text #input_field_holder #input_field textarea { - width: 100%; - height: 100%; +#new_anketa_div #right_content .anketa_from_text .from_text_sidebyside_holder #input_field_holder #input_field textarea { + width: 469px; + height: 509px; box-sizing: border-box; - resize: none; - padding: 20px; - border: 1px #1E88E5 solid !important; + border-color: #E5E5E5; + margin-top: 0; + padding: 16px; } -#new_anketa_div #right_content .anketa_from_text #input_field_holder #input_field textarea:focus::-webkit-input-placeholder { +#new_anketa_div #right_content .anketa_from_text .from_text_sidebyside_holder #input_field_holder #input_field textarea:focus::-webkit-input-placeholder { color: transparent; } -#new_anketa_div #right_content .anketa_from_text #input_field_holder #input_field textarea:focus::-moz-placeholder { +#new_anketa_div #right_content .anketa_from_text .from_text_sidebyside_holder #input_field_holder #input_field textarea:focus::-moz-placeholder { color: transparent; } -#new_anketa_div #right_content .anketa_from_text #preview_field_holder { - float: right; - width: 50%; - height: 400px; +#new_anketa_div #right_content .anketa_from_text .from_text_sidebyside_holder #preview_field_holder { box-sizing: border-box; - padding: 20px; + flex-shrink: 0; } -#new_anketa_div #right_content .anketa_from_text #preview_field_holder #preview_field { - width: 100%; - height: 100%; +#new_anketa_div #right_content .anketa_from_text .from_text_sidebyside_holder #preview_field_holder #preview_field { + width: 469px; + height: 509px; box-sizing: border-box; overflow: auto; - padding: 20px; - background-color: #1E88E5; - border: 1px #1E88E5 solid; + padding: 16px; + border: 1px #E5E5E5 solid; + border-radius: 2px; } -#new_anketa_div #right_content .anketa_from_text #preview_field_holder #preview_field span.title { - font-size: 18px; - line-height: 30px; +#new_anketa_div #right_content .anketa_from_text .from_text_sidebyside_holder #preview_field_holder #preview_field span.variable_title { + margin-top: 16px; } -#new_anketa_div #right_content .anketa_from_text #preview_field_holder #preview_field span.variable { - font-size: 15px; - font-weight: 400; +#new_anketa_div #right_content .anketa_from_text .from_text_sidebyside_holder #preview_field_holder #preview_field span.variable_title:first-of-type { + margin-top: 0px; } -#new_anketa_div #right_content .anketa_from_text #preview_field_holder #preview_field span.variable input[type=radio] { +#new_anketa_div #right_content .anketa_from_text .from_text_sidebyside_holder #preview_field_holder #preview_field span.variable_title input[type=text] { + border: 1px solid #C4C4C4; + box-sizing: border-box; + border-radius: 2px; + width: 245px; + margin-top: 4px; + font-family: Source Sans Pro, sans-serif; +} +#new_anketa_div #right_content .anketa_from_text .from_text_sidebyside_holder #preview_field_holder #preview_field span.variable_title input[type=text].large { + height: 40px; + font-size: 16px; + padding: 9px 7px; +} +#new_anketa_div #right_content .anketa_from_text .from_text_sidebyside_holder #preview_field_holder #preview_field span.variable { + color: #333333 !important; + margin-top: 8px; +} +#new_anketa_div #right_content .anketa_from_text .from_text_sidebyside_holder #preview_field_holder #preview_field span.variable input[type=radio] { display: none !important; } -#new_anketa_div #right_content .anketa_from_text #preview_field_holder #preview_field span.variable input[type=radio] + span.enka-checkbox-radio:before { +#new_anketa_div #right_content .anketa_from_text .from_text_sidebyside_holder #preview_field_holder #preview_field span.variable input[type=radio] + span.enka-checkbox-radio:before { font-family: "Font Awesome 5 Free"; content: "\f111"; display: inline-block; font-size: 14px; - color: #F8F8F8; + color: #C4C4C4; letter-spacing: 8px; font-weight: 400; } -#new_anketa_div #right_content .anketa_from_text #preview_field_holder #preview_field span.variable input[type=radio]:checked + span.enka-checkbox-radio:before { - content: "\f192"; - color: #777777; -} input[type=radio] + span.enka-checkbox-radio { color: #1E88E5; diff --git a/resources/sass/admin_new/pages/new_survey_page/right_content.scss b/resources/sass/admin_new/pages/new_survey_page/right_content.scss index 837d61e31..e03cf6c48 100644 --- a/resources/sass/admin_new/pages/new_survey_page/right_content.scss +++ b/resources/sass/admin_new/pages/new_survey_page/right_content.scss @@ -439,87 +439,96 @@ $skin_selector: $red; .anketa_from_text{ height: auto; overflow: auto; - - .from_text_instructions{ - line-height: 14px; - margin-bottom: 10px; - } - - #input_field_holder{ - float: left; - width: 50%; - height: 400px; - box-sizing: border-box; - - padding: 20px; - - #input_field{ - width: 100%; - height: 100%; + + .from_text_sidebyside_holder { + display:flex; + flex-direction: row; + + #input_field_holder{ + box-sizing: border-box; + flex-shrink: 0; - textarea{ - width: 100%; - height: 100%; - box-sizing: border-box; + #input_field{ + margin-right: 32px; - resize: none; - padding: 20px; - - border: 1px $blue solid !important; - - &:focus::-webkit-input-placeholder{ - color: transparent; - } - &:focus::-moz-placeholder{ - color: transparent; + textarea{ + width: 469px; + height: 509px; + box-sizing: border-box; + + border-color: $gray; + margin-top: 0; + + padding: 16px; + + &:focus::-webkit-input-placeholder{ + color: transparent; + } + &:focus::-moz-placeholder{ + color: transparent; + } } } } - } - #preview_field_holder{ - float: right; - width: 50%; - height: 400px; - box-sizing: border-box; - - padding: 20px; - - #preview_field{ - width: 100%; - height: 100%; + #preview_field_holder{ box-sizing: border-box; - overflow: auto; + flex-shrink: 0; - padding: 20px; - - background-color: $blue; - border: 1px $blue solid; - - span.title{ - font-size: 18px; - line-height: 30px; - } - span.variable{ - font-size: 15px; - font-weight: 400; + #preview_field{ + width: 469px; + height: 509px; + box-sizing: border-box; + overflow: auto; - input[type="radio"]{ - display: none !important; + padding: 16px; + + border: 1px $gray solid; + border-radius: 2px; + + span.variable_title{ + margin-top: 16px; + &:first-of-type{ + margin-top: 0px; + } + + input[type="text"]{ + border: 1px solid $dark-gray; + box-sizing: border-box; + border-radius: 2px; + width: 245px; + margin-top: 4px; + + font-family: $font_family; + + &.large { + height: 40px; + font-size: 16px; + padding: 9px 7px; + } + + } } - input[type="radio"] + span.enka-checkbox-radio:before{ - font-family: $fontawesome; - content: "\f111"; - - display: inline-block; - - font-size: 14px; - color: $light-gray; - letter-spacing: 8px; - font-weight: 400; - } - input[type="radio"]:checked + span.enka-checkbox-radio:before{ - content: "\f192"; - color: $very-dark-gray; + + span.variable{ + + color: $black !important; + margin-top: 8px; + + input[type="radio"]{ + display: none !important; + } + input[type="radio"] + span.enka-checkbox-radio:before{ + font-family: $fontawesome; + content: "\f111"; + + display: inline-block; + + font-size: 14px; + color: $dark-gray; + letter-spacing: 8px; + font-weight: 400; + } + } } }