From 85fda0c59c0637aa25e067fb3f62efb36c43a217 Mon Sep 17 00:00:00 2001 From: pero1203 Date: Mon, 12 Sep 2022 12:02:55 +0200 Subject: [PATCH] GDPR zahtevke - dokoncan v2 --- admin/survey/SurveyAdminAjax.php | 5 +- admin/survey/classes/class.GDPR.php | 88 ++++++++++--------- public/css/admin_new.css | 64 ++++++++++++-- public/img/icons/envelope_img.svg | 3 - .../sass/admin_new/basic/icons/standard.scss | 6 ++ .../pages/gdpr_pages/gdpr_tables.scss | 81 ++++++++++++++--- 6 files changed, 184 insertions(+), 63 deletions(-) delete mode 100644 public/img/icons/envelope_img.svg diff --git a/admin/survey/SurveyAdminAjax.php b/admin/survey/SurveyAdminAjax.php index d416d02dd..c9a9faa42 100644 --- a/admin/survey/SurveyAdminAjax.php +++ b/admin/survey/SurveyAdminAjax.php @@ -7350,10 +7350,7 @@ class SurveyAdminAjax { $sql = sisplet_query("SELECT text FROM srv_gdpr_requests WHERE id = '".$id_sporocila."'"); $row = mysqli_fetch_array($sql); - echo '
'; - echo 'envelope image'; - echo '

SPOROČILO RESPONDENTA

'; - echo '
'; + echo '

SPOROČILO RESPONDENTA

'; echo ''; diff --git a/admin/survey/classes/class.GDPR.php b/admin/survey/classes/class.GDPR.php index 1adaae991..de771ae9f 100644 --- a/admin/survey/classes/class.GDPR.php +++ b/admin/survey/classes/class.GDPR.php @@ -419,42 +419,47 @@ class GDPR{ // Tabela neizvrsenih zahtevkov if(count($request_list) > 0){ - echo ''.$lang['srv_gdpr_requests_list_unresolved'].''; + echo '
'.$lang['srv_gdpr_requests_list_unresolved'].'
'; echo '
'; echo '
'; echo ''; echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; + echo ' '; + echo ' '; + echo ' '; + echo ' '; + echo ' '; + echo ' '; + echo ' '; echo ''; foreach($request_list as $request_id => $request){ - echo ''; + echo ''; // Checkbox ce je zahteva opravljena - echo ''; - echo ''; - - echo ''; + echo ' '; - echo ''; + echo ' '; - echo ''; + echo ' '; + + echo ' '; - echo ''; + echo ' '; + + echo ' '; // Komentar avtorja - echo ''; + echo ' '; echo ''; } @@ -467,41 +472,44 @@ class GDPR{ // Tabela opravljenih zahtevkov if(count($request_list_done) > 0){ - echo ''.$lang['srv_gdpr_requests_list_resolved'].''; + echo '
'.$lang['srv_gdpr_requests_list_resolved'].'
'; - echo '
'; - echo '
'; + echo '
'; + echo '
'; echo '
'.$lang['srv_gdpr_requests_resolved'].''.$lang['srv_gdpr_requests_survey'].''.$lang['srv_gdpr_requests_text'].''.$lang['srv_gdpr_requests_email'].''.$lang['srv_gdpr_requests_type'].''.$lang['srv_gdpr_requests_date_sent'].''.$lang['srv_gdpr_requests_comment'].''.$lang['srv_gdpr_requests_resolved'].''.$lang['srv_gdpr_requests_survey'].''.$lang['srv_gdpr_requests_text'].''.$lang['srv_gdpr_requests_email'].''.$lang['srv_gdpr_requests_type'].''.$lang['srv_gdpr_requests_date_sent'].''.$lang['srv_gdpr_requests_comment'].'
'; - echo '
'; - echo '
'; + echo ' '; + echo ' '.$request['email'].''.$lang['srv_gdpr_requests_type_'.$request['type']].''.$request['email'].''.date('j.n.Y', strtotime($request['datum'])).''; + echo '
'.$lang['srv_gdpr_requests_type_'.$request['type']].'
'; + echo '
'.date('j.n.Y', strtotime($request['datum'])).''; + echo ' '; + echo '
'; echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; + echo ' '; + echo ' '; + echo ' '; + echo ' '; + echo ' '; + echo ' '; + echo ' '; echo ''; foreach($request_list_done as $request_id => $request){ - echo ''; + echo ''; // Checkbox ce je zahteva opravljena - echo ''; - echo ''; + echo ' '; + echo ' '; - echo ''; - echo ''; + echo ' '; + + echo ' '; - echo ''; - - echo ''; + echo ' '; + echo ' '; + // Komentar avtorja - echo ''; - - + echo ' '; echo ''; } diff --git a/public/css/admin_new.css b/public/css/admin_new.css index ccb4cac9a..5c7f3532f 100644 --- a/public/css/admin_new.css +++ b/public/css/admin_new.css @@ -6152,6 +6152,11 @@ span.faicon.fa-x::before { content: "X"; } +span.faicon.envelope::before { + content: ""; + font-weight: 400; +} + /* To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates @@ -11192,14 +11197,18 @@ table.gdpr_surveys { width: 100%; } table.gdpr_surveys th { + box-sizing: border-box; + height: 56px; + font-size: 16px; background-color: #F8F8F8; } -table.gdpr_surveys tr { - background-color: #FFEFEF; +table.gdpr_surveys td { + box-sizing: border-box; + height: 52px; + font-size: 14px; } table.gdpr_surveys th, table.gdpr_surveys td { - font-size: 14px; border: 1px solid #E5E5E5; } table.gdpr_surveys th:first-child { @@ -11215,12 +11224,57 @@ table.gdpr_surveys tr.red_row td { table.gdpr_surveys tr.green_row td { background-color: #E3F6DE; } +table.gdpr_surveys.requests { + white-space: wrap; + margin: 0; +} table.gdpr_surveys.requests td div.gdpr_requests_wrap { max-width: 204px; min-width: 204px; - overflow-wrap: break-word; + /*overflow-wrap: break-word; white-space: normal; - padding: 8px 0px; + padding: 8px 0px;*/ + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} +table.gdpr_surveys.requests td div.request_type { + display: flex; + align-items: center; + justify-content: center; + box-sizing: border-box; + width: 100%; + padding: 8px 16px; + border-radius: 2px; +} +table.gdpr_surveys.requests td div.request_type.type1, table.gdpr_surveys.requests td div.request_type.type6 { + background-color: #FFEFEF; +} +table.gdpr_surveys.requests td div.request_type.type2 { + background-color: #E3F6DE; +} +table.gdpr_surveys.requests td div.request_type.type3, table.gdpr_surveys.requests td div.request_type.type4, table.gdpr_surveys.requests td div.request_type.type5 { + background-color: #F4F9FE; +} +table.gdpr_surveys.requests td .faicon.envelope { + cursor: pointer; + color: #1E88E5; + font-size: 18px; + transition: 0.2s; +} +table.gdpr_surveys.requests td .faicon.envelope:hover { + color: #0059ab; +} +table.gdpr_surveys.requests td textarea.gdpr_requests_comment { + width: 320px; + font-size: 14px; +} + +.gdpr_request_table_title { + margin: 32px 0 16px 0; + text-transform: uppercase; + font-size: 16px; + font-weight: 600; } div#gdrp_requests_unresolved { diff --git a/public/img/icons/envelope_img.svg b/public/img/icons/envelope_img.svg deleted file mode 100644 index bc089494b..000000000 --- a/public/img/icons/envelope_img.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/sass/admin_new/basic/icons/standard.scss b/resources/sass/admin_new/basic/icons/standard.scss index 34f01fdc8..a4f62e43c 100644 --- a/resources/sass/admin_new/basic/icons/standard.scss +++ b/resources/sass/admin_new/basic/icons/standard.scss @@ -710,4 +710,10 @@ span.faicon.screwdriver::before{ span.faicon.fa-x::before{ content: "\58"; +} + + +span.faicon.envelope::before { + content: "\f0e0"; + font-weight: 400; } \ No newline at end of file diff --git a/resources/sass/admin_new/pages/gdpr_pages/gdpr_tables.scss b/resources/sass/admin_new/pages/gdpr_pages/gdpr_tables.scss index 18a78270d..94a13b377 100644 --- a/resources/sass/admin_new/pages/gdpr_pages/gdpr_tables.scss +++ b/resources/sass/admin_new/pages/gdpr_pages/gdpr_tables.scss @@ -5,22 +5,27 @@ } table.gdpr_surveys { - table-layout: auto; width: 100%; th { + box-sizing: border-box; + height: 56px; + + font-size: 16px; + background-color: #F8F8F8; } + + td{ + box-sizing: border-box; + height: 52px; - tr{ - background-color: #FFEFEF; + font-size: 14px; } th, td, { - font-size: 14px; - border: 1px solid #E5E5E5; } @@ -47,25 +52,79 @@ table.gdpr_surveys { // Seznam zahtevkov &.requests { + white-space: wrap; + margin: 0; td { div{ &.gdpr_requests_wrap { max-width: 204px; min-width: 204px; - overflow-wrap: break-word; + /*overflow-wrap: break-word; white-space: normal; - padding: 8px 0px; + padding: 8px 0px;*/ + + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } } + + div.request_type{ + display: flex; + align-items: center; + justify-content: center; + + box-sizing: border-box; + width: 100%; + padding: 8px 16px; + + border-radius: 2px; + + &.type1, + &.type6{ + background-color: $light-red; + } + &.type2{ + background-color: $light-green2; + } + &.type3, + &.type4, + &.type5{ + background-color: $medium-blue2; + } + } + + .faicon.envelope{ + cursor: pointer; + + color: $blue; + font-size: 18px; + + transition: 0.2s; + + &:hover{ + color: $dark-blue; + } + } + + textarea.gdpr_requests_comment{ + width: 320px; + + font-size: 14px; + } } - - - - } } +.gdpr_request_table_title{ + margin: 32px 0 16px 0; + + text-transform: uppercase; + font-size: 16px; + font-weight: 600; +} + div#gdrp_requests_unresolved { margin-bottom: 32px; }
'.$lang['srv_gdpr_requests_resolved'].''.$lang['srv_gdpr_requests_survey'].''.$lang['srv_gdpr_requests_text'].''.$lang['srv_gdpr_requests_email'].''.$lang['srv_gdpr_requests_type'].''.$lang['srv_gdpr_requests_date_sent'].''.$lang['srv_gdpr_requests_comment'].''.$lang['srv_gdpr_requests_resolved'].''.$lang['srv_gdpr_requests_survey'].''.$lang['srv_gdpr_requests_text'].''.$lang['srv_gdpr_requests_email'].''.$lang['srv_gdpr_requests_type'].''.$lang['srv_gdpr_requests_date_sent'].''.$lang['srv_gdpr_requests_comment'].'
'.$request['text'].'
'.$request['email'].''.$request['email'].''.$lang['srv_gdpr_requests_type_'.$request['type']].''.date('j.n.Y', strtotime($request['datum'])).''; + echo '
'.$lang['srv_gdpr_requests_type_'.$request['type']].'
'; + echo '
'.date('j.n.Y', strtotime($request['datum'])).''; + echo ' '; + echo '