From c961bce07ad2bd1f2b726b28e7b6d7e251b91b15 Mon Sep 17 00:00:00 2001 From: tejagerjovic Date: Thu, 8 Sep 2022 07:12:53 +0200 Subject: [PATCH] [Redizajn 1KA v2] Testiranje --> Komentarji - novo okno v testiranju ankete - v delu --- .../survey/app/Controllers/BodyController.php | 70 +++++++-- .../pages/survey_testiranje/komentarji.scss | 142 ++++++++++++++++++ 2 files changed, 202 insertions(+), 10 deletions(-) diff --git a/main/survey/app/Controllers/BodyController.php b/main/survey/app/Controllers/BodyController.php index 071b969a3..949f1b3c2 100644 --- a/main/survey/app/Controllers/BodyController.php +++ b/main/survey/app/Controllers/BodyController.php @@ -2350,7 +2350,7 @@ class BodyController extends Controller $_GET['testdata'] == 'on') ) { - echo ''; + echo ''; $show_survey_comment = $_GET['show_survey_comment']; if ($row['forum'] == 0 || $row['thread'] == 0) { @@ -2364,7 +2364,7 @@ class BodyController extends Controller $rowf = mysqli_fetch_array($sqlf); $rowf['count']--; //zaradi 1. avtomatskega posta - echo ''; + echo ''; echo self::$lang['srv_comment_splosen'] . ' '; echo ''; @@ -2375,15 +2375,65 @@ class BodyController extends Controller if (mysqli_num_rows($s) == 0) $show_survey_comment = 1; } - echo ''; + echo ''; + + //dropdown na klik ikone + echo '
'; + + echo '
'; + echo ''; + echo $lang['comments']; + echo '
'; + + $comment_link = 'window.location.href=\'' . $site_url . 'admin/survey/index.php?anketa='.$row['id'].'&a=komentarji\'; return false;'; + echo ''; + + $comment_link = 'window.location.href=\'' . $site_url . 'admin/survey/index.php?anketa='.$row['id'].'&a=komentarji_anketa\'; return false;'; + echo ''; + + echo '
'; + $ba = new BranchingAjax($this->anketa); + $ba->add_comment_field(0, '0', '1', false, false); + echo '
'; + + echo '
'; + echo ' '; + + echo '
'; + echo '
'; + echo ''; + echo '
'; + echo '
'; + echo ''; + echo '
'; + echo '
'; + + echo '
'; //button holder + + echo '
'; //comment_dropdown + + // Klik izven - zapremo dropdown + echo ''; } - echo ''; - // Ce je tole vklopljeno se js porusi? - //echo ''; - echo ''; - echo ''; - echo ''; echo '
'; } @@ -2417,7 +2467,7 @@ class BodyController extends Controller $sqlf = sisplet_query("SELECT COUNT(*) AS count FROM post WHERE tid='$row[thread_resp]'"); $rowf = mysqli_fetch_array($sqlf); $rowf['count']--; //zaradi 1. avtomatskega posta - echo ''; + echo ''; echo self::$lang['srv_comment_splosen'] . ' '; echo ''; diff --git a/resources/sass/admin_new/pages/survey_testiranje/komentarji.scss b/resources/sass/admin_new/pages/survey_testiranje/komentarji.scss index 3a82ab665..7ecc394af 100644 --- a/resources/sass/admin_new/pages/survey_testiranje/komentarji.scss +++ b/resources/sass/admin_new/pages/survey_testiranje/komentarji.scss @@ -876,6 +876,148 @@ div.page_komentarji_anketa { } } } + +span#test_comments { + position: relative; + + #comment_dropdown { + position: absolute; + background-color: $white; + top: 35px; + right: 0; + width: 305px; + + z-index: 9999; + + box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.12); + border-radius: 2px; + + font-family: $font_family; + + padding: 12px; + + cursor: auto !important; + + .title { + width: 100%; + margin-bottom: 16px; + padding-bottom: 12px; + + font-weight: 600; + font-size: 16px; + text-transform: uppercase; + + border-bottom: 1px $gray solid; + + font-size: 14px !important; + color: $black; + + display: flex; + flex-direction: row; + align-content: center; + + span.faicon.comment_dropdown { + margin-right: 6px; + line-height: 17px !important; + &::before{ + color: $blue !important; + font-weight: 400; + font-size: 14px !important; + content: "\f27a"; + } + } + } + + .links { + margin-bottom: 16px; + color: $blue; + + font-weight: 400; + font-size: 14px !important; + + display: flex; + flex-direction: row; + align-content: center; + + cursor: pointer; + width: fit-content; + + + span.faicon { + margin-left: 8px; + line-height: 17px !important; + &::before{ + color: $blue !important; + font-size: 14px !important; + } + } + + } + + #comment_field { + + padding-top: 16px; + border-top: 1px solid $gray; + margin-bottom: 10px; + + textarea { + height: 130px; + width: 100%; + margin: 0; + } + } + + .button_holder { + display: flex; + flex-direction: row; + justify-content: space-between; + padding-top: 8px; + border-top: 1px solid $gray; + + margin-bottom: 0; + + button { + min-width: 128px; + } + + .options { + display: flex; + flex-direction: row; + + .square { + box-sizing: border-box; + border: 1px solid $blue; + width: 28px; + height: 28px; + margin-left: 8px; + + display: flex; + justify-content: center; + align-content: center; + + color: $blue; + font-size: 14px !important; + + cursor: pointer; + + &.blue { + background-color: $blue; + span.faicon::before { + font-size: 14px !important; + color: $white; + } + } + + span.faicon::before { + $font_weight: 400; + font-size: 16px !important; + } + } + } + } + } +} + #quick_comments_link.newCss { text-align: center;