[Redizajn 1KA] Popupi: Urejanje > Vprašalnik - Komentarji v1

This commit is contained in:
tejagerjovic 2022-06-09 08:07:40 +02:00
parent 7f44863a14
commit d34a148b36
4 changed files with 53 additions and 3 deletions

View File

@ -2333,10 +2333,10 @@ class BranchingAjax {
if (($type == 0 || $view==3) && ($admin_type == 0 || $global_user_id==$rowanketa['insert_uid'])) { if (($type == 0 || $view==3) && ($admin_type == 0 || $global_user_id==$rowanketa['insert_uid'])) {
echo '<div style="float:right">'; echo '<div>';
// Link na pregled splosnih komentarjev // Link na pregled splosnih komentarjev
echo '<span style="margin-right: 20px;"><a href="'.$site_url.'/admin/survey/index.php?anketa='.$this->anketa.'&a=komentarji_anketa">'.$lang['srv_comment_overview'].'</a></span>'; echo '<span"><a href="'.$site_url.'/admin/survey/index.php?anketa='.$this->anketa.'&a=komentarji_anketa">'.$lang['srv_comment_overview'].' </a>';
// Link na nastavitve komentarjev // Link na nastavitve komentarjev
echo '<a href="'.$site_url.'/admin/survey/index.php?anketa='.$this->anketa.'&a=urejanje">'.$lang['settings'].'</a>'; echo '<a href="'.$site_url.'/admin/survey/index.php?anketa='.$this->anketa.'&a=urejanje">'.$lang['settings'].'</a>';

View File

@ -2189,7 +2189,7 @@ function load_comment (__this, show) {
} }
$(__this).qtip({ $(__this).qtip({
content: {text: '<div class=qtip_comment"><h1>'+naslov+'</h1><div id="survey_comment_'+$(__this).attr('spremenljivka')+'_'+$(__this).attr('view')+'"></div></div>', title: {button: '&#x2715;'}}, content: {text: '<div class="qtip_comment"><h1>'+naslov+'</h1><div id="survey_comment_'+$(__this).attr('spremenljivka')+'_'+$(__this).attr('view')+'"></div></div>', title: {button: '&#x2715;'}},
fixed: false, show: {when: _when, ready: _ready, solo: true},hide: {when: 'click'}, fixed: false, show: {when: _when, ready: _ready, solo: true},hide: {when: 'click'},
style: {name: 'light', border: {width: 3, radius: 8}, width: 350, tip: {corner: corners[i]}}, style: {name: 'light', border: {width: 3, radius: 8}, width: 350, tip: {corner: corners[i]}},
position: {corner: {tooltip: corners[i], target: opposites[i] }, adjust: {screen : true}}, position: {corner: {tooltip: corners[i], target: opposites[i] }, adjust: {screen : true}},

View File

@ -8061,6 +8061,25 @@ div.setting_holder .setting_item input[type=checkbox][disabled] + label:before {
pointer-events: none; pointer-events: none;
} }
div.qtip_comment {
padding: 2px 16px 16px 16px;
}
div.qtip_comment h1:before {
display: none;
}
div.qtip_comment div textarea {
width: 100%;
margin-bottom: 16px;
}
div.qtip_comment div .button_holder {
display: flex;
flex-direction: row;
justify-content: flex-end;
}
div.qtip_comment div .button_holder button:last-of-type {
margin-right: 0;
}
div.from_text_popup { div.from_text_popup {
overflow: hidden !important; overflow: hidden !important;
} }

View File

@ -129,6 +129,37 @@ div.setting_holder {
} }
} }
//Komentarji
div.qtip_comment {
h1 {
&:before {
display: none;
}
}
padding: 2px 16px 16px 16px;
div {
textarea {
width: 100%;
margin-bottom: 16px;
}
.button_holder {
display: flex;
flex-direction: row;
justify-content:flex-end;
button {
&:last-of-type {
margin-right: 0;
}
}
}
}
}
//Uvoz besedila //Uvoz besedila
div.from_text_popup { div.from_text_popup {
overflow: hidden !important; overflow: hidden !important;