[Redizajn 1KA] - Ni podatkov o izpolnjeni anketi - v1

This commit is contained in:
tejagerjovic 2022-06-07 02:00:04 +02:00
parent 9cac080b39
commit fa8a87b1ab
7 changed files with 186 additions and 4 deletions

View File

@ -2131,9 +2131,29 @@ class Common {
// Izpise obvestilo, da ni podatkov // Izpise obvestilo, da ni podatkov
static function noDataAlert() { static function noDataAlert() {
global $lang; global $lang;
global $anketa;
echo '<div class="no_data_alert">'; echo '<div class="no_data_alert">';
echo $lang['srv_data_no_data'];
echo '<img src="/public/img/images/no_data.svg" />';
echo '<h2>'.$lang['srv_data_no_data'].'</h2>';
echo '<div id="note">';
echo '<p>'.$lang['srv_data_no_data2'].'</p>';
echo '</div>';
$auto = "'". 'index.php?anketa='.$anketa.'&a=testiranje&m=testnipodatki' . "'";
$manual = "'". SurveyInfo::getSurveyLink() . '?preview=on' . "'";
$share = "'". 'index.php?anketa='.$anketa.'&amp;a=vabila' . "'";
echo '<div id="buttons">';
echo '<button class="medium white-blue" onClick="window.location.href='.$auto.';return false;">'.$lang['srv_testiranje_vnosi2'].'</button>';
echo '<button class="medium white-blue" onClick="window.open('.$manual.', \'_blank\');return false;">'.$lang['srv_archive_test_data_text2a'].'</button>';
echo '<button class="medium blue" onclick="window.location.href='.$share.';return false;">'.$lang['srv_anketa_share'].'</button>';
echo '</div>';
echo '</div>'; echo '</div>';
} }

View File

@ -1907,6 +1907,7 @@ $lang = array (
"srv_anketa_is_not_active" => "NEAKTIVNA", "srv_anketa_is_not_active" => "NEAKTIVNA",
"srv_anketa_is_finished" => "ZAKLJUČENA", "srv_anketa_is_finished" => "ZAKLJUČENA",
"srv_anketa_href" => "HTML koda povezave", "srv_anketa_href" => "HTML koda povezave",
"srv_anketa_share" => "Deli anketo z respondenti",
"srv_anketa_href_text" => "Delite povezavo do ankete na vaši spletni strani.", "srv_anketa_href_text" => "Delite povezavo do ankete na vaši spletni strani.",
"srv_anketa_href_count" => "HTML koda s števcem ogledov", "srv_anketa_href_count" => "HTML koda s števcem ogledov",
"srv_anketa_href_count_text" => "Delite povezavo do ankete na vaši spletni strani in beležite število ogledov povezave na anketo. ", "srv_anketa_href_count_text" => "Delite povezavo do ankete na vaši spletni strani in beležite število ogledov povezave na anketo. ",
@ -4307,7 +4308,8 @@ $lang = array (
"srv_dashboard_new_units" => " Število nedodanih enot: ", "srv_dashboard_new_units" => " Število nedodanih enot: ",
"srv_dashboard_up_to_date" => "Datoteka s podatki je ažurna.", "srv_dashboard_up_to_date" => "Datoteka s podatki je ažurna.",
"srv_dashboard_paradata_date_warning" => "Shranjevanje datumov odgovarjanja na vprašanja (parapodatki) je izklopljeno. Zato nekateri statusi ne bodo prikazani.", "srv_dashboard_paradata_date_warning" => "Shranjevanje datumov odgovarjanja na vprašanja (parapodatki) je izklopljeno. Zato nekateri statusi ne bodo prikazani.",
"srv_data_no_data" => "V bazi ni podatkov o izpolnjenih anketah!", "srv_data_no_data" => "V bazi še ni podatkov o izpolnjenih anketah!",
"srv_data_no_data2" => "Pridobite realne podatke in delite anketo s svojimi respondenti ali za vpogled v strani, ki za prikaz zahtevajo podatke uporabite testne podatke. ",
"srv_data_no_data_filtred" => "Ni podatkov.", "srv_data_no_data_filtred" => "Ni podatkov.",
"srv_diferencial2" => "Tabela diferencial", "srv_diferencial2" => "Tabela diferencial",
"srv_classic" => "Klasi&#269;na tabela", "srv_classic" => "Klasi&#269;na tabela",
@ -5346,6 +5348,7 @@ $lang = array (
"srv_testiranje_komentarji_anketa_title" => "Splošni komentarji", "srv_testiranje_komentarji_anketa_title" => "Splošni komentarji",
"srv_testiranje_komentarji_anketa_title2" => "Splošni komentarji na anketo", "srv_testiranje_komentarji_anketa_title2" => "Splošni komentarji na anketo",
"srv_testiranje_vnosi" => "Avtomatski vnosi", "srv_testiranje_vnosi" => "Avtomatski vnosi",
"srv_testiranje_vnosi2" => "Avtomatski testni vnos",
"srv_testiranje_trajanje" => "Trajanje", "srv_testiranje_trajanje" => "Trajanje",
"stopwords_explain_title" => "Omejevanje pogostih besed v iskalniku", "stopwords_explain_title" => "Omejevanje pogostih besed v iskalniku",
"stopwords_explain_txt_a" => "Za ve&#269;jo natan&#269;nost iskanih zadetkov, se pogoste besede pri iskanju znotraj vsebine zapisov (podstrani, novic, rubrik, priponk,..) ne upo&#154;tevajo.", "stopwords_explain_txt_a" => "Za ve&#269;jo natan&#269;nost iskanih zadetkov, se pogoste besede pri iskanju znotraj vsebine zapisov (podstrani, novic, rubrik, priponk,..) ne upo&#154;tevajo.",

View File

@ -1900,6 +1900,7 @@ $lang = array (
"srv_anketa_is_not_active" => "NOT ACTIVE", "srv_anketa_is_not_active" => "NOT ACTIVE",
"srv_anketa_is_finished" => "FINISHED", "srv_anketa_is_finished" => "FINISHED",
"srv_anketa_href" => "HTML code for link", "srv_anketa_href" => "HTML code for link",
"srv_anketa_share" => "Share survey with respondents",
"srv_anketa_href_text" => "Share the link to the survey on your website.", "srv_anketa_href_text" => "Share the link to the survey on your website.",
"srv_anketa_href_count" => "HTML code with view counter", "srv_anketa_href_count" => "HTML code with view counter",
"srv_anketa_href_count_text" => "Share the link to the survey on your website and keep track of the number of views of the survey link. ", "srv_anketa_href_count_text" => "Share the link to the survey on your website and keep track of the number of views of the survey link. ",
@ -4286,7 +4287,8 @@ $lang = array (
"srv_dashboard_new_units" => " Number of new units: ", "srv_dashboard_new_units" => " Number of new units: ",
"srv_dashboard_up_to_date" => "Data file is up to date.", "srv_dashboard_up_to_date" => "Data file is up to date.",
"srv_dashboard_paradata_date_warning" => "Saving respondent dates (paradata) is turned off. Some statuses will not be displayed.", "srv_dashboard_paradata_date_warning" => "Saving respondent dates (paradata) is turned off. Some statuses will not be displayed.",
"srv_data_no_data" => "There are no completed surveys!", "srv_data_no_data" => "There are no completed surveys yet!",
"srv_data_no_data2" => "Get real data and share the survey with your respondents or use test data to see the pages that require data to be displayed.",
"srv_data_no_data_filtred" => "No data", "srv_data_no_data_filtred" => "No data",
"srv_diferencial2" => "Semantic differential", "srv_diferencial2" => "Semantic differential",
"srv_classic" => "Classic table", "srv_classic" => "Classic table",
@ -5305,7 +5307,8 @@ $lang = array (
"srv_testiranje_diagnostika_lastnosti" => "Survey properties", "srv_testiranje_diagnostika_lastnosti" => "Survey properties",
"srv_testiranje_diagnostika_base" => "Base diagnostics", "srv_testiranje_diagnostika_base" => "Base diagnostics",
"srv_testiranje_komentarji" => "Comments", "srv_testiranje_komentarji" => "Comments",
"srv_testiranje_vnosi" => "Test responses", "srv_testiranje_vnosi" => "Automatic responses",
"srv_testiranje_vnosi2" => "Automatic test response",
"srv_testiranje_trajanje" => "Duration", "srv_testiranje_trajanje" => "Duration",
"stopwords_explain_title" => "Restriction of common words in search", "stopwords_explain_title" => "Restriction of common words in search",
"stopwords_explain_txt_a" => "Common words are removed from search inside articles, web page content, attachments and other blocks of text.", "stopwords_explain_txt_a" => "Common words are removed from search inside articles, web page content, attachments and other blocks of text.",

View File

@ -26779,6 +26779,42 @@ and open the template in the editor.
width: 250px; width: 250px;
} }
div.no_data_alert {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
div.no_data_alert img {
max-width: 466px;
margin-bottom: 32px;
}
div.no_data_alert h2 {
font-weight: 300;
font-size: 24px;
margin-block-start: 0;
margin-block-end: 0;
margin-bottom: 16px;
}
div.no_data_alert div#note {
max-width: 800px;
margin-bottom: 32px;
text-align: center;
}
div.no_data_alert div#buttons {
display: flex;
flex-direction: row;
gap: 32px;
}
div.no_data_alert div#buttons button::first-letter {
text-transform: uppercase;
}
.printHide {
display: none !important;
}
#div_analiza_data:not(.anal_arch) .div_analiza_holder, #div_analiza_data:not(.anal_arch) .div_analiza_holder,
#div_means_data .div_analiza_holder, #div_means_data .div_analiza_holder,
#div_break_data .div_analiza_holder, #div_break_data .div_analiza_holder,

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -0,0 +1,41 @@
div.no_data_alert {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
img {
max-width: 466px;
margin-bottom: 32px;
}
h2 {
font-weight: $light;
font-size: 24px;
margin-block-start: 0;
margin-block-end: 0;
margin-bottom: 16px;
}
div#note {
max-width: 800px;
margin-bottom: 32px;
text-align: center;
}
div#buttons {
display: flex;
flex-direction: row;
gap: 32px;
button::first-letter {
text-transform: uppercase;
}
}
}
.printHide{
display: none !important;
}

View File

@ -10,3 +10,5 @@
@import "quick_list_data"; @import "quick_list_data";
@import "popups/popups"; @import "popups/popups";
@import "no_data";