Zacetni gumb za dodajanje prvega vprasanja v anketo - mobile admin
This commit is contained in:
parent
dda66e0fdb
commit
231bf1b199
@ -1069,6 +1069,8 @@ class Branching {
|
||||
printf ($lang['srv_new_survey_success3'], 'index.php?anketa='.$this->anketa.'&a=branching&change_mode=1&what=toolbox&value=3');
|
||||
echo ' </div>';
|
||||
|
||||
MobileSurveyAdmin::displayNoQuestions($this->anketa);
|
||||
|
||||
echo '</li>';
|
||||
}
|
||||
|
||||
@ -1102,9 +1104,6 @@ class Branching {
|
||||
|
||||
}
|
||||
|
||||
//$sqlQ = sisplet_query("SELECT * FROM srv_branching WHERE ank_id='$this->anketa' AND parent='0' ORDER BY vrstni_red ASC");
|
||||
//if (!$sqlQ) echo mysqli_error($GLOBALS['connect_db']);
|
||||
//while ($rowQ = mysqli_fetch_array($sqlQ)) {
|
||||
foreach (Cache::srv_branching_parent($this->anketa, $parent) AS $k => $rowQ) {
|
||||
$this->display_element($rowQ['element_spr'], $rowQ['element_if']);
|
||||
}
|
||||
|
@ -695,7 +695,7 @@ class MobileSurveyAdmin{
|
||||
public static function displayAddQuestion($ank_id){
|
||||
global $lang;
|
||||
|
||||
echo '<div class="mobile_add_question">';
|
||||
echo '<div class="mobile_add_question bottom">';
|
||||
echo ' <span class="buttonwrapper"><a class="ovalbutton ovalbutton_orange" href="#" onclick="mobile_add_question_popup(); return false;">';
|
||||
echo ' <span class="plus">+</span> ';
|
||||
echo ' <span>'.$lang['srv_mobile_add_question'].'</span>';
|
||||
@ -719,4 +719,19 @@ class MobileSurveyAdmin{
|
||||
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
// Div ko se nimamo nobenega vprasanja v anketi
|
||||
public static function displayNoQuestions($ank_id){
|
||||
global $lang;
|
||||
|
||||
// Skrijemo spodnji gumb
|
||||
echo '<style>.mobile_add_question.bottom{display: none;}</style>';
|
||||
|
||||
echo '<div class="mobile_add_question center">';
|
||||
echo ' <span class="buttonwrapper"><a class="ovalbutton ovalbutton_orange" href="#" onclick="mobile_add_question_popup(); return false;">';
|
||||
echo ' <span class="plus">+</span> ';
|
||||
echo ' <span>'.$lang['srv_mobile_add_question'].'</span>';
|
||||
echo ' </a></span>';
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
|
@ -28510,6 +28510,8 @@ a.addIfIcon {
|
||||
@media (max-width: 600px) {
|
||||
#main {
|
||||
margin-top: 70px;
|
||||
padding-bottom: 30px;
|
||||
/*overflow-x: scroll;*/
|
||||
}
|
||||
#main #anketa_edit {
|
||||
box-sizing: border-box !important;
|
||||
@ -28745,6 +28747,7 @@ fieldset textarea {
|
||||
#srv_footer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-top: 0;
|
||||
}
|
||||
#srv_footer .footer_left {
|
||||
margin-bottom: 10px;
|
||||
@ -28917,17 +28920,23 @@ table.dashboard > tbody > tr > td {
|
||||
display: none !important;
|
||||
}
|
||||
#branching .empty_vrivanje {
|
||||
padding: 50px 0 !important;
|
||||
margin: 20px 10px 20px 20px !important;
|
||||
padding: 30px 0 !important;
|
||||
margin: 20px 10px 20px 10px !important;
|
||||
}
|
||||
#branching .empty_vrivanje .empty_vrivanje_title {
|
||||
display: none;
|
||||
margin: 0 20px;
|
||||
font-size: 14px;
|
||||
}
|
||||
#branching .empty_vrivanje .empty_vrivanje_subtitle {
|
||||
display: none;
|
||||
margin: 15px 20px 0 15px;
|
||||
font-size: 13px;
|
||||
}
|
||||
#branching .empty_vrivanje .mobile_add_question {
|
||||
position: relative;
|
||||
bottom: auto;
|
||||
}
|
||||
#branching #bottom_icons_holder {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#main{
|
||||
margin-top: 70px;
|
||||
padding-bottom: 30px;
|
||||
/*overflow-x: scroll;*/
|
||||
|
||||
#anketa_edit{
|
||||
box-sizing: border-box !important;
|
||||
|
@ -2,6 +2,8 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
margin-top: 0;
|
||||
|
||||
.footer_left{
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
@ -17,17 +17,26 @@
|
||||
|
||||
|
||||
.empty_vrivanje {
|
||||
padding: 50px 0 !important;
|
||||
margin: 20px 10px 20px 20px !important;
|
||||
padding: 30px 0 !important;
|
||||
margin: 20px 10px 20px 10px !important;
|
||||
|
||||
.empty_vrivanje_title{
|
||||
display: none;
|
||||
|
||||
margin: 0 20px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.empty_vrivanje_subtitle{
|
||||
display: none;
|
||||
|
||||
margin: 15px 20px 0 15px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.mobile_add_question{
|
||||
position: relative;
|
||||
bottom: auto;
|
||||
}
|
||||
}
|
||||
|
||||
#bottom_icons_holder{
|
||||
|
Loading…
x
Reference in New Issue
Block a user