diff --git a/admin/survey/SurveyAdmin.php b/admin/survey/SurveyAdmin.php index fa8e1a0b2..c1217581b 100644 --- a/admin/survey/SurveyAdmin.php +++ b/admin/survey/SurveyAdmin.php @@ -2293,8 +2293,6 @@ class SurveyAdmin || $_GET['a'] == 'json_survey_export' ){ - //TODO: stari divi okrog nastavitev - kam prestaviti pogoje? @TG2 - if ($this->isAnketar) { return; } diff --git a/admin/survey/SurveyAdminSettings.php b/admin/survey/SurveyAdminSettings.php index d72afe7f2..a9b1b5204 100644 --- a/admin/survey/SurveyAdminSettings.php +++ b/admin/survey/SurveyAdminSettings.php @@ -1340,39 +1340,70 @@ class SurveyAdminSettings { /*Nastavitve prikaza za mobilnike*/ if ($_GET['a'] == 'mobile_settings') { - SurveySetting::getInstance()->Init($this->anketa); - - echo '
'; + SurveySetting::getInstance()->Init($this->anketa); + echo '
'; echo ''.$lang['srv_mobile_settings_title'].''; // Prikaz slik pri mobilnikih (default da) $mobile_friendly = SurveySetting::getInstance()->getSurveyMiscSetting('mobile_friendly'); - echo ''.$lang['srv_settings_mobile_friendly'].':'; - echo ' '; - echo ' '; + echo '
'; + + echo ''.$lang['srv_settings_mobile_friendly'].':'; + echo '
'; + echo ''; + echo ''; + echo '
'; + echo '
'; + echo ''; + echo ' '; + echo '
'; - $display = ($mobile_friendly == 1) ? '' : ' display: none;'; - echo '
'; + echo '
'; + + $display = ($mobile_friendly == 1) ? '' : 'displayNone'; + + echo '
'; // Prikaz slik pri mobilnikih (default da) $hide_mobile_img = SurveySetting::getInstance()->getSurveyMiscSetting('hide_mobile_img'); - echo ''.$lang['srv_settings_mobile_img'].':'; - echo ' '; - echo ' '; - - echo ''; + echo '
'; + + echo ''.$lang['srv_settings_mobile_img'].':'; + echo '
'; + echo ''; + echo ' '; + echo '
'; + echo '
'; + echo ''; + echo ' '; + echo '
'; + + echo '
'; + // Prilagoditev tabel pri mobilnikih $mobile_tables = SurveySetting::getInstance()->getSurveyMiscSetting('mobile_tables'); - echo ''.$lang['srv_settings_mobile_tables'].':'; - echo ' '; - echo ' '; - echo ' '; - + echo '
'; + + echo ''.$lang['srv_settings_mobile_tables'].':'; + echo '
'; + echo ''; + echo ' '; echo '
'; - + echo '
'; + echo ''; + echo ' '; + echo '
'; + echo '
'; + echo ''; + echo ' '; + echo '
'; + + echo '
'; + echo '
'; + echo '
'; } @@ -1524,68 +1555,120 @@ class SurveyAdminSettings { // Nastavitve za izpis odgovorov respondentov - echo '
'; + echo '
'; echo ''.$lang['srv_export_results_settings'].''; + echo '
'; + // Tip izvoza (1->dolg oz. razsirjen, 2->kratek oz. skrcen) $export_data_type = SurveySetting::getInstance()->getSurveyMiscSetting('export_data_type'); - echo ''.$lang['srv_displaydata_type'].':'; - echo ''; echo ' '; echo ' '; - //echo ' '; echo ''; - echo Help :: display('displaydata_pdftype'); - - echo '
'; + echo ''; + + echo '
'; + + echo '
'; // Številčenje vprašanj (default da) $export_data_numbering = SurveySetting::getInstance()->getSurveyMiscSetting('export_data_numbering'); - echo ''.$lang['srv_nastavitveStevilcenje'].':'; - echo ' '; - echo ' '; + echo ''.$lang['srv_nastavitveStevilcenje'].':'; + echo '
'; + echo ''; + echo ' '; + echo '
'; + echo '
'; + echo ''; + echo ' '; + echo '
'; - echo '
'; + echo '
'; + + echo '
'; // Prikaz recnuma (default da) $export_data_show_recnum = SurveySetting::getInstance()->getSurveyMiscSetting('export_data_show_recnum'); - echo ''.$lang['srv_export_show_recnum'].':'; - echo ' '; - echo ' '; + echo ''.$lang['srv_export_show_recnum'].':'; + echo '
'; + echo ''; + echo ' '; + echo '
'; + echo '
'; + echo ''; + echo ' '; + echo '
'; - echo '
'; + echo '
'; + echo '
'; + // Prikaz pogojev (default da) $export_data_show_if = SurveySetting::getInstance()->getSurveyMiscSetting('export_data_show_if'); - echo ''.$lang['srv_export_if'].':'; - echo ' '; - echo ' '; + echo ''.$lang['srv_export_if'].':'; + echo '
'; + echo ''; + echo ' '; + echo '
'; + echo '
'; + echo ''; + echo ' '; + echo '
'; - echo '

'; + echo '
'; + + echo '
'; // Page break med posameznimi respondenti (default ne) $export_data_PB = SurveySetting::getInstance()->getSurveyMiscSetting('export_data_PB'); - echo ''.$lang['srv_export_pagebreak'].':'; - echo ' '; - echo ' '; + echo ''.$lang['srv_export_pagebreak'].':'; + echo '
'; + echo ''; + echo ' '; + echo '
'; + echo '
'; + echo ''; + echo ' '; + echo '
'; - echo '
'; + echo '
'; + + echo '
'; // Izpusti vprasanja brez odgovora (default ne) $export_data_skip_empty = SurveySetting::getInstance()->getSurveyMiscSetting('export_data_skip_empty'); - echo ''.$lang['srv_export_skip_empty'].':'; - echo ' '; - echo ' '; + echo ''.$lang['srv_export_skip_empty'].':'; + echo '
'; + echo ''; + echo ' '; + echo '
'; + echo '
'; + echo ''; + echo ' '; + echo '
'; - echo '
'; + echo '
'; + echo '
'; + // Izpusti podvprasanja brez odgovora (default ne) $export_data_skip_empty_sub = SurveySetting::getInstance()->getSurveyMiscSetting('export_data_skip_empty_sub'); - echo ''.$lang['srv_export_skip_empty_sub'].':'; - echo ' '; - echo ' '; + echo ''.$lang['srv_export_skip_empty_sub'].':'; + echo '
'; + echo ''; + echo ' '; + echo '
'; + echo '
'; + echo ''; + echo ' '; + echo '
'; - echo '
'; + echo '
'; echo '
'; } @@ -1599,11 +1682,11 @@ class SurveyAdminSettings { if ($_GET['a'] != 'jezik' && $_GET['a'] != 'trajanje' && $_GET['a'] != A_GDPR && $_GET['a'] != 'dostop') { - echo '
'; - - echo ''; - echo '
'; + + echo '
'; + echo ''; + echo ''; + echo '
'; } if ($_GET['s'] == '1') { diff --git a/admin/survey/redesign_test.php b/admin/survey/redesign_test.php index 69fe8ad2f..88432f117 100644 --- a/admin/survey/redesign_test.php +++ b/admin/survey/redesign_test.php @@ -157,7 +157,7 @@
- +
@@ -179,9 +179,9 @@
- + - @@ -241,7 +241,7 @@
-

+





diff --git a/lang/1.php b/lang/1.php index 27f9b5fcb..ad247c5ee 100644 --- a/lang/1.php +++ b/lang/1.php @@ -349,6 +349,7 @@ $lang = array ( "or_current" => "
ALI
obstoječe", "edit4" => "Spremeni", "edit1337" => "Shrani spremembe", + "edit1338" => "Prekliči", "reset_translation" => "Ponastavi prevod", "delete_account" => "Izbriši račun 1KA", "delete_account_conformation" => "Ste prepričani, da želite trajno izbrisati vaš račun? Po potrditvi se ne boste več mogli prijaviti s tem računom!", @@ -2214,7 +2215,7 @@ $lang = array ( "srv_moduli_setings" => "Nastavitve", "srv_uporabnost" => "Evalvacija strani", "srv_uporabnost_link" => "URL strani, ki jo evaluirate (ekran se bo razpolovil)", - "srv_uporabnost_warning" => "Vključite lahko samo spletno stran, ki ima dovoljeno vključevanje iz drugih domen (angl. cross-origin framing). Nekatere spletne strani takega vključevanja (npr. google.si ipd.) takega vključevanja ne dovolijo, prav tako lahko pride do težav, če spletna stran nima dodatnega varnostnega protokola (v primeru, da gre za spletno stran http). V teh primerih v anketi spletne strani ne bo prikazalo, zato pred aktivacijo ankete dobro pretestirajte, ali imate vključene spletne strani, ki to dovolijo.", + "srv_uporabnost_warning" => "Vključite lahko samo spletno stran, ki ima dovoljeno vključevanje iz drugih domen (angl. cross-origin framing). Nekatere spletne strani (npr. google.si, ipd.) takega vključevanja ne dovolijo. Prav tako lahko pride do težav, če spletna stran nima dodatnega varnostnega protokola (v primeru, da gre za spletno stran http). V teh primerih v anketi spletne strani ne bo prikazalo, zato pred aktivacijo ankete dobro pretestirajte, ali imate vključene spletne strani, ki to dovolijo.", "srv_uporabnost_razdeli"=> "Stran razdeli", "srv_vodoravno" => "vodoravno", "srv_navpicno" => "navpično", diff --git a/lang/2.php b/lang/2.php index 7a22bcde4..b20036fae 100644 --- a/lang/2.php +++ b/lang/2.php @@ -337,6 +337,7 @@ $lang = array ( "or_current" => "
OR
current", "edit4" => "Change", "edit1337" => "Save changes", + "edit1338" => "Cancel", "reset_translation" => "Reset translation", "delete_account" => "Delete 1KA account", "delete_account_conformation" => "Are you sure you want to permanently delete your account? After confirmation, you will no longer be able to sign in with this account!", @@ -2200,7 +2201,7 @@ $lang = array ( "srv_moduli_setings" => "Settings", "srv_uporabnost" => "Website evaluation", "srv_uporabnost_link" => "Insert URL of evaluated page", - "srv_uporabnost_warning" => "You can only include a website that has cross-origin framing. Some websites do not allow such inclusion (eg google.si, etc.), and problems can also occur if the website does not have an additional security protocol (in the case of the http website). In these cases, the website will not appear in the survey, so before activating the survey, make sure that you have websites that allow it.", + "srv_uporabnost_warning" => "You can only include a website that has cross-origin framing. Some websites (eg. google.si, etc.) do not allow such inclusion. Problems can also occur if the website does not have an additional security protocol (in the case of an http website). In these cases, the website will not appear in the survey, so before activating the survey, make sure that you have websites that allow it.", "srv_uporabnost_razdeli"=> "Split the page", "srv_vodoravno" => "horizontally", "srv_navpicno" => "vertically", diff --git a/public/css/admin_new.css b/public/css/admin_new.css index cb7b85cc5..314b520dc 100644 --- a/public/css/admin_new.css +++ b/public/css/admin_new.css @@ -5228,6 +5228,11 @@ div.layout_left_item ul.menu_left-list a:hover { /* Form scss - input fields, buttons... */ +div.buttonwrapper { + display: flex; + flex-direction: row; +} + button, submit { box-sizing: border-box; @@ -5418,6 +5423,8 @@ fieldset legend { } fieldset .setting_holder { margin: 16px 0; + display: flex; + flex-direction: column; } fieldset .setting_holder:first-of-type { margin-top: 0; @@ -5435,6 +5442,7 @@ select.dropdown { border-radius: 2px; cursor: pointer; font-family: Source Sans Pro, sans-serif; + margin-top: 4px; } select.dropdown.large { width: 229px; diff --git a/resources/sass/admin_new/components/form/button.scss b/resources/sass/admin_new/components/form/button.scss index 502f643f4..cf87eebb8 100644 --- a/resources/sass/admin_new/components/form/button.scss +++ b/resources/sass/admin_new/components/form/button.scss @@ -1,3 +1,8 @@ +div.buttonwrapper { + display: flex; + flex-direction: row; +} + button, submit{ box-sizing: border-box; diff --git a/resources/sass/admin_new/components/form/dropdown.scss b/resources/sass/admin_new/components/form/dropdown.scss index e80786319..4967a39d2 100644 --- a/resources/sass/admin_new/components/form/dropdown.scss +++ b/resources/sass/admin_new/components/form/dropdown.scss @@ -6,6 +6,8 @@ select.dropdown { font-family: $font_family; + margin-top: 4px; + &.large { width: 229px; height: 40px; diff --git a/resources/sass/admin_new/components/form/fieldset.scss b/resources/sass/admin_new/components/form/fieldset.scss index ca59f1561..651d10d60 100644 --- a/resources/sass/admin_new/components/form/fieldset.scss +++ b/resources/sass/admin_new/components/form/fieldset.scss @@ -16,6 +16,8 @@ fieldset{ .setting_holder { margin: 16px 0; + display: flex; + flex-direction: column; &:first-of-type{ margin-top: 0;