From 202833e99a453488befa8cd89e415aaa83d99d62 Mon Sep 17 00:00:00 2001 From: tejagerjovic Date: Wed, 5 Jan 2022 02:43:52 +0100 Subject: [PATCH] =?UTF-8?q?[Redizajn=201KA]=20-=20Urejanje=20-->=20Nastavi?= =?UTF-8?q?tve=20-->=20Obve=C5=A1=C4=8Danje=20o=20izpolnjeni=20anketi=20-?= =?UTF-8?q?=20v1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Manjkajo ikone pri prejemnikih, prevodi, nov text za sistemske spremenljivke --- admin/survey/SurveyAdminSettings.php | 164 ++++++++++-------- lang/1.php | 1 + lang/2.php | 1 + public/css/admin_new.css | 5 +- .../survey_settings/obvescanje.scss | 6 +- 5 files changed, 107 insertions(+), 70 deletions(-) diff --git a/admin/survey/SurveyAdminSettings.php b/admin/survey/SurveyAdminSettings.php index 4227f317e..d83b20584 100644 --- a/admin/survey/SurveyAdminSettings.php +++ b/admin/survey/SurveyAdminSettings.php @@ -3236,7 +3236,7 @@ class SurveyAdminSettings { if ($tab == 'complete') { - //echo '

' . $lang['srv_alert_title'] . '

'."\n"; + //Obveščanje o izpolnjeni anketi echo '
' . "\n"; echo ' ' . "\n"; echo ' ' . "\n"; @@ -3244,60 +3244,71 @@ class SurveyAdminSettings { echo ' ' . "\n"; - echo '
'. "\n"; - echo ' ' . $lang['srv_alert_prejemnik'] . ''. "\n"; - - // respondent - ne prikazemo ce gre za glasovanje oz. volitve + echo '
'; + echo ' ' . $lang['srv_alert_completed_2'] . ''; + + echo '
'; + echo ''.$lang['srv_alert_completed_prejemniki'].''; + + // respondent - ne prikazemo ce gre za glasovanje oz. volitve if($rowS['survey_type'] != 0 && !SurveyInfo::getInstance()->checkSurveyModule('voting')){ - echo '

'; + echo '

'; + echo ''; - echo ''; $this->display_alert_label('finish_respondent',($rowAlert['finish_respondent'] == 1)); - echo ''. "\n"; - - // Ce imamo vec prevodov omogocimo za vsak prevod svoj email + echo '
'; + + // Ce imamo vec prevodov omogocimo za vsak prevod svoj email - v delu @TG $this->display_alert_label('finish_respondent_language',($rowAlert['finish_respondent'] == 1)); - echo '

'; + } - // respondent iz cms ne prikazemo ce gre za volitve + // respondent iz cms ne prikazemo ce gre za volitve if(!SurveyInfo::getInstance()->checkSurveyModule('voting')){ + echo '
'; + echo '

'; - echo ''; $this->display_alert_label('finish_respondent_cms',($rowAlert['finish_respondent_cms'] == 1)); - echo '

'. "\n"; + echo '
'; + } - - // avtor ankete oz osebe z dostopom - //echo '

'; - echo '

'; - echo ''; + //Avtor ankete oz. souredniki + echo '

'; + echo ''; $this->display_alert_label('finish_author',($rowAlert['finish_author'] == 1)); - echo '

'; + echo '
'; - // posebej navedeni maili - echo '

'; + //Posebej navedeni maili + echo '

'; + echo ''; echo ' '; echo ' '; - if ($rowAlert['finish_other_if']>0) { if ($b==null) $b = new Branching($this->anketa); $b->conditions_display($rowAlert['finish_other_if']); } - echo '

'; - - echo '

'; - echo '' . - '' . - '

'; - - echo '
'; - - - echo '
'; + if ($rowAlert['finish_other_if']>0) { if ($b==null) $b = new Branching($this->anketa); $b->conditions_display($rowAlert['finish_other_if']); } + echo ''; + + echo '
'; - echo '
'; - echo '' . $lang['srv_alert_oblika'] . ''; - echo '
'; - echo '

'; - echo '

'; + echo '
'; + echo ''; + echo ''; + echo '
'; + echo '
'; + echo '
'; + echo '
'; + + echo '

'.$lang['message_content'].'

'; + + echo '
'; + echo ''; + echo ''; + echo '
'; + + echo '
'; + echo ''; + echo ''; + echo '
'; + if ($rowAlert['finish_text'] != '') { $text = $rowAlert['finish_text']; } @@ -3309,30 +3320,43 @@ class SurveyAdminSettings { } // prikaze editor za ne-spremenljivko (za karkoli druzga pac) - echo '

'; - echo ' '; - echo '

'; - echo '
'; - echo '
'; - echo '
'; - echo $lang['srv_alert_instruction1']; + echo '
'; + + echo ''; + echo ''; + + echo '
'; + echo '
'; + + //Navodila na desni + echo '
'; + echo '
'; + echo '

'.$lang['srv_alert_instruction1'].'

'; + echo '

'.$lang['srv_alert_instruction1a'].':

'; + + echo '
'; + // ta se skriva, potreben respondent iz CMS, da dobi NAME echo ''.$lang['srv_alert_instruction2'].''; - echo $lang['srv_alert_instruction_survey'].'
'; - echo $lang['srv_alert_instruction_date'].'
'; - echo $lang['srv_alert_instruction_site'].'
'; - echo $lang['srv_alert_instruction_url'].'
'; - echo $lang['srv_alert_instruction_pdf'].'
'; - echo $lang['srv_alert_instruction_rtf'].'
'; - + echo '

'.$lang['srv_alert_instruction_survey'].'

'; + echo '

'.$lang['srv_alert_instruction_date'].'

'; + echo '

'.$lang['srv_alert_instruction_site'].'

'; + echo '

'.$lang['srv_alert_instruction_url'].'

'; + echo '

'.$lang['srv_alert_instruction_pdf'].'

'; + echo '

'.$lang['srv_alert_instruction_rtf'].'

'; + $row = SurveyInfo::getInstance()->getSurveyRow(); # če imamo prepoznavanje uporabnik iz CMS, potem ponudimo tudi META_REFERAL_URL - echo $lang['srv_alert_instruction_meta_referer_url'].'
'; - echo $lang['srv_alert_instruction_system']; - echo $lang['srv_alert_instruction_sample']; - echo $lang['srv_alert_instruction_available']; - -# echo $lang['srv_alert_instruction3']; + echo '

'.$lang['srv_alert_instruction_meta_referer_url'].'

'; + + echo '
'; + + echo '
'; + + echo '

'.$lang['srv_alert_instruction_system'].'

'; + echo '

'.$lang['srv_alert_instruction_sample'].'

'; + echo '

'.$lang['srv_alert_instruction_available'].'

'; + $sqlSistemske = sisplet_query("SELECT s.id, s.naslov, s.variable FROM srv_spremenljivka s, srv_grupa g WHERE s.sistem='1' AND s.gru_id=g.id AND g.ank_id='$anketa' ORDER BY g.vrstni_red, s.vrstni_red"); $prefix = ""; while ($rowSistemske = mysqli_fetch_assoc($sqlSistemske)) { @@ -3342,17 +3366,21 @@ class SurveyAdminSettings { if ($prefix == "") { // ni sistemskih spremenljivk echo '

'.$lang['srv_alert_no_sys_var'].'

'; } - echo ''; + + echo '
'; + + echo '
'; - echo '
'; - echo '
'; - - echo '
'; + echo '
'; + + echo ''; + + echo '
'; - echo ' '; - - echo '
'; + echo '
'; + echo ''; + echo ''; + echo '
'; if ($_GET['s'] == '1') { echo '
'; diff --git a/lang/1.php b/lang/1.php index 9c016c010..afb91702e 100644 --- a/lang/1.php +++ b/lang/1.php @@ -2115,6 +2115,7 @@ $lang = array ( "srv_alert_active_1" => "Spremembi aktivnosti", "srv_alert_delete_1" => "Izbrisu ankete", "srv_alert_completed_2" => "Obveščanje o izpolnjeni anketi", + "srv_alert_completed_prejemniki" => "Obvestilo o izpolnjeni anketi prejmejo naslednji prejemniki:", "srv_alert_expired_2" => "Obveščanje o izteku ankete", "srv_alert_active_2" => "Obveščanje o spremembi aktivnosti", "srv_alert_active_prejemniki" => "Obvestilo o spremembi aktivnosti prejmejo naslednji prejemniki:", diff --git a/lang/2.php b/lang/2.php index e9f3a7586..92726d80d 100644 --- a/lang/2.php +++ b/lang/2.php @@ -2102,6 +2102,7 @@ $lang = array ( "srv_alert_active_1" => "activation changes", "srv_alert_delete_1" => "survey deletion", "srv_alert_completed_2" => "Alert about completed survey", + "srv_alert_completed_prejemniki" => "Survey completion notifications will be sent to the following recipients:", "srv_alert_expired_2" => "Alert about survey expiration", "srv_alert_active_2" => "Alert about activation changes", "srv_alert_active_prejemniki" => "Survey activation notifications will be sent to the following recipients:", diff --git a/public/css/admin_new.css b/public/css/admin_new.css index f926b11d5..74973110a 100644 --- a/public/css/admin_new.css +++ b/public/css/admin_new.css @@ -13952,7 +13952,7 @@ fieldset #obvescanje_sidebyside_holder #obvescanje_sidebyside_left { flex-shrink: 0; } fieldset #obvescanje_sidebyside_holder #obvescanje_sidebyside_right { - flex-grow: 1; + flex-grow: 0; } fieldset #obvescanje_sidebyside_holder #obvescanje_sidebyside_right div.message_instructions { background-color: #F8F8F8; @@ -13961,6 +13961,9 @@ fieldset #obvescanje_sidebyside_holder #obvescanje_sidebyside_right div.message_ padding: 16px; margin-left: 32px; } +fieldset #obvescanje_sidebyside_holder #obvescanje_sidebyside_right div.message_instructions div.izpolnjena_spremenljivke { + margin-bottom: 16px; +} fieldset .setting_holder.alert_other_emails { margin-left: 24px; } diff --git a/resources/sass/admin_new/pages/survey_edit/survey_settings/obvescanje.scss b/resources/sass/admin_new/pages/survey_edit/survey_settings/obvescanje.scss index 1b837d91b..25dae899d 100644 --- a/resources/sass/admin_new/pages/survey_edit/survey_settings/obvescanje.scss +++ b/resources/sass/admin_new/pages/survey_edit/survey_settings/obvescanje.scss @@ -11,7 +11,7 @@ fieldset{ } #obvescanje_sidebyside_right { - flex-grow: 1; + flex-grow: 0; div.message_instructions { background-color: $light-gray; @@ -19,6 +19,10 @@ fieldset{ box-sizing: border-box; padding: 16px; margin-left: 32px; + + div.izpolnjena_spremenljivke { + margin-bottom: 16px; + } } }