Mobile filter predlog pri ustvarjanju ankete iz predloge

This commit is contained in:
pero1203 2021-07-28 11:13:50 +02:00
parent 52b6940f0b
commit b32bd94f3f
4 changed files with 46 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class NewSurvey{
echo '<a href="'.$site_url.'admin/survey/index.php?a=ustvari_anketo&b=template" title="'.$lang['srv_newSurvey_survey_template2'].'"><span class="item '.($this->subpage == 'template' ? ' active' : '').'">'.$lang['srv_newSurvey_survey_template'].'</span></a>'; echo '<a href="'.$site_url.'admin/survey/index.php?a=ustvari_anketo&b=template" title="'.$lang['srv_newSurvey_survey_template2'].'"><span class="item '.($this->subpage == 'template' ? ' active' : '').'">'.$lang['srv_newSurvey_survey_template'].'</span></a>';
if($this->subpage == 'template'){ if($this->subpage == 'template'){
echo '<ul>'; echo '<ul class="template_type_menu">';
for($i=0; $i<=10; $i++){ for($i=0; $i<=10; $i++){
echo '<li><a href="'.$site_url.'admin/survey/index.php?a=ustvari_anketo&b=template&c='.$i.'" title="'.$lang['srv_newSurvey_survey_template_cat'.$i].'"><span class="subitem '.($this->subpage == 'template' && $this->template_category == $i ? ' active' : '').'">'.$lang['srv_newSurvey_survey_template_cat'.$i].'</span></a></li>'; echo '<li><a href="'.$site_url.'admin/survey/index.php?a=ustvari_anketo&b=template&c='.$i.'" title="'.$lang['srv_newSurvey_survey_template_cat'.$i].'"><span class="subitem '.($this->subpage == 'template' && $this->template_category == $i ? ' active' : '').'">'.$lang['srv_newSurvey_survey_template_cat'.$i].'</span></a></li>';
} }
@ -341,6 +341,13 @@ class NewSurvey{
echo '<div class="title">' . $lang['srv_newSurvey_survey_template_cat'.$this->template_category] . '</div>'; echo '<div class="title">' . $lang['srv_newSurvey_survey_template_cat'.$this->template_category] . '</div>';
echo '<input type="hidden" name="noSurvey_template_id" id="noSurvey_template_id" value="">'; echo '<input type="hidden" name="noSurvey_template_id" id="noSurvey_template_id" value="">';
// Mobile dropdown za izbiro tipa predloge
echo '<select class="template_type_menu" onchange="location.href=this.value;">';
for($i=0; $i<=10; $i++){
echo '<option value="'.$site_url.'admin/survey/index.php?a=ustvari_anketo&b=template&c='.$i.'" '.($this->subpage == 'template' && $this->template_category == $i ? ' selected="selected"' : '').'>'.$lang['srv_newSurvey_survey_template_cat'.$i].'</option>';
}
echo '</select>';
// Prikaz predlog // Prikaz predlog
foreach($this->templates as $template_id => $template_name){ foreach($this->templates as $template_id => $template_name){

View File

@ -11999,6 +11999,9 @@ and open the template in the editor.
background-color: #ffdda1; background-color: #ffdda1;
border: none; border: none;
} }
#new_anketa_div #right_content .noSurvey_template select.template_type_menu {
display: none;
}
#new_anketa_div #right_content .anketa_from_text { #new_anketa_div #right_content .anketa_from_text {
height: auto; height: auto;
overflow: auto; overflow: auto;
@ -28947,6 +28950,19 @@ fieldset textarea {
#new_anketa_div .fieldset.noSurvey_template .template .template_preview { #new_anketa_div .fieldset.noSurvey_template .template .template_preview {
margin-right: 10px !important; margin-right: 10px !important;
} }
#new_anketa_div #left_menu ul.template_type_menu {
display: none;
}
#new_anketa_div select.template_type_menu {
display: block !important;
height: 40px;
width: 100%;
padding: 2px 5px;
margin-bottom: 40px !important;
font-size: 15px !important;
border: 1px solid #c8e3f8 !important;
border-radius: 1px;
}
table.dashboard { table.dashboard {
border-spacing: 0px; border-spacing: 0px;

View File

@ -86,4 +86,22 @@
} }
} }
} }
#left_menu ul.template_type_menu{
display: none;
}
select.template_type_menu{
display: block !important;
height: 40px;
width: 100%;
padding: 2px 5px;
margin-bottom: 40px !important;
font-size: 15px !important;
border: 1px solid #c8e3f8 !important;
border-radius: 1px;
}
} }

View File

@ -411,6 +411,10 @@ $skin_selector: $orange_very_lighten;
border: none; border: none;
} }
} }
select.template_type_menu{
display: none;
}
} }
.anketa_from_text{ .anketa_from_text{