[Redizajn 1KA] Popupi: Analize > Grafi > Nastavitve - Barve - v2

This commit is contained in:
tejagerjovic 2022-06-17 04:47:26 +02:00
parent 1592fd4c23
commit 125cdd1c8b
7 changed files with 32 additions and 20 deletions

View File

@ -10438,6 +10438,13 @@ class SurveyChart {
echo '<h2>'.$lang['srv_chart_skin_long'].'</h2>'; echo '<h2>'.$lang['srv_chart_skin_long'].'</h2>';
echo '<div class="popup_close"><a href="#" onClick="close_chartColor(); return false;">✕</a></div>'; echo '<div class="popup_close"><a href="#" onClick="close_chartColor(); return false;">✕</a></div>';
// Opozorilo - privzetih ne morejo spreminjati
if(!is_numeric($skin)){
echo '<div id="chart_skin_note">';
echo $lang['srv_chart_skin_warning'];
echo '</div>';
}
echo '<script type="text/javascript" charset="utf-8"> echo '<script type="text/javascript" charset="utf-8">
$(document).ready(function() { $(document).ready(function() {
@ -10533,7 +10540,7 @@ class SurveyChart {
//$value = (self::$settings['colors'][$i] != '') ? self::$settings['colors'][$i] : $default_colors[$i]; //$value = (self::$settings['colors'][$i] != '') ? self::$settings['colors'][$i] : $default_colors[$i];
$value = $default_colors[$i]; $value = $default_colors[$i];
echo ' <div class="form-item"><label for="'.$name.'">'.$lang['srv_color'].' '.($i+1).': </label><input type="text" id="'.$name.'" name="'.$name.'" class="colorwell" value="'.$value.'" /></div>'; echo ' <div class="form-item"><label for="'.$name.'">'.$lang['srv_color'].' '.($i+1).': </label><input onfocus="toggleGrafiColorWheel();" type="text" id="'.$name.'" name="'.$name.'" class="colorwell" value="'.$value.'" /></div>';
} }
// reset na default barvo // reset na default barvo
@ -10544,23 +10551,17 @@ class SurveyChart {
echo '<div id="chart_settings_profiles_right">'; echo '<div id="chart_settings_profiles_right">';
// Izbira custom skina // Izbira custom skina
echo '<div id="chart_custom_skin_cover">';
echo '<div id="chart_custom_skin">'; echo '<div id="chart_custom_skin">';
echo '<div id="picker"></div>'; echo '<div id="picker"></div>';
echo '</div>';
echo '</div>'; echo '</div>';
echo '</div>'; #right echo '</div>'; #right
echo '</div>'; #wrap echo '</div>'; #wrap
// Opozorilo - privzetih ne morejo spreminjati
if(!is_numeric($skin)){
echo '<div id="chart_skin_note">';
echo $lang['srv_chart_skin_warning'];
echo '</div>';
}
// cover Div // cover Div
echo '<div id="dsp_cover_div"></div>'; echo '<div id="dsp_cover_div"></div>';
@ -10616,7 +10617,7 @@ class SurveyChart {
echo '<div class="button_holder">'; echo '<div class="button_holder">';
echo '<button class="medium white-black" onClick="close_chartColor(); return false;">'.$lang['srv_zapri'].'</button>'; echo '<button class="medium white-black" onClick="close_chartColor(); return false;">'.$lang['srv_zapri'].'</button>';
echo '<button class="medium white-blue" onClick="chart_skin_action(\'show_new\'); return false;">'.$lang['srv_save_new_profile'].'</button>'; echo '<button class="medium white-blue" onClick="chart_skin_action(\'show_new\'); return false;">'.$lang['srv_save_new_selection'].'</button>';
echo '<button class="medium blue" onclick="save_chartColor(); return false;">'.$lang['save'].'</button>'; echo '<button class="medium blue" onclick="save_chartColor(); return false;">'.$lang['save'].'</button>';
echo '</div>'; echo '</div>';

View File

@ -5612,4 +5612,8 @@ function toggleAddComment (box_id) {
$(toggle).toggle(); $(toggle).toggle();
$(wrapper).toggle(); $(wrapper).toggle();
}
function toggleGrafiColorWheel () {
$("#chart_custom_skin_cover").css("pointer-events", "auto");
} }

View File

@ -3322,6 +3322,7 @@ $lang = array (
"srv_new_profile_ime" => "Nov profil", "srv_new_profile_ime" => "Nov profil",
"srv_create_new_profile" => "Ustvari nov profil", "srv_create_new_profile" => "Ustvari nov profil",
"srv_save_new_profile" => "Shrani kot nov profil", "srv_save_new_profile" => "Shrani kot nov profil",
"srv_save_new_selection" => "Shrani kot nov nabor",
"srv_rename_profile" => "Preimenuj", "srv_rename_profile" => "Preimenuj",
"srv_delete_profile" => "Izbri&#353;i", "srv_delete_profile" => "Izbri&#353;i",
"srv_close_profile" => "Zapri", #Prekli&#269;i "srv_close_profile" => "Zapri", #Prekli&#269;i

View File

@ -3290,6 +3290,7 @@ $lang = array (
"srv_new_profile_name" => "New profile", "srv_new_profile_name" => "New profile",
"srv_choose_profile" => "Choose profile", "srv_choose_profile" => "Choose profile",
"srv_save_new_profile" => "Save as a new profile", "srv_save_new_profile" => "Save as a new profile",
"srv_save_new_selection" => "Save as a new selection",
"srv_new_profile_ime" => "New profile", "srv_new_profile_ime" => "New profile",
"srv_create_new_profile" => "Create new profile", "srv_create_new_profile" => "Create new profile",
"srv_rename_profile" => "Rename", "srv_rename_profile" => "Rename",

View File

@ -29752,16 +29752,17 @@ ul.vrednost_sort input[type=text] {
text-indent: 0px; text-indent: 0px;
} }
#chart_custom_skin_cover {
pointer-events: none;
}
#chart_settings_profiles_middle #div_chart_skin_previews { #chart_settings_profiles_middle #div_chart_skin_previews {
position: fixed; position: fixed;
top: 193px; top: 19.8%;
left: 90px; left: 7%;
width: 200px; width: 200px;
padding: 16px; padding: 16px;
background-color: white; background-color: white;
box-shadow: 0 0 20px black;
-moz-box-shadow: 0 0 20px black;
-webkit-box-shadow: 0 0 20px black;
} }
#chart_settings_profiles_middle .div_chart_skin_preview { #chart_settings_profiles_middle .div_chart_skin_preview {
display: none; display: none;
@ -31757,6 +31758,7 @@ input#endDate {
border: 1px solid #E5E5E5; border: 1px solid #E5E5E5;
background-color: #F8F8F8; background-color: #F8F8F8;
border-radius: 2px; border-radius: 2px;
margin-bottom: 16px;
} }
#div_chart_settings_profiles #chart_settings_profiles_wrap { #div_chart_settings_profiles #chart_settings_profiles_wrap {
display: flex; display: flex;

View File

@ -475,17 +475,19 @@ ul.vrednost_sort {
text-indent: 0px; text-indent: 0px;
} }
#chart_custom_skin_cover {
pointer-events: none;
}
#chart_settings_profiles_middle { #chart_settings_profiles_middle {
#div_chart_skin_previews { #div_chart_skin_previews {
position: fixed; position: fixed;
top: 193px; top: 19.8%;
left: 90px; left: 7%;
width: 200px; width: 200px;
padding: 16px; padding: 16px;
background-color: white; background-color: white;
box-shadow: 0 0 20px black;
-moz-box-shadow: 0 0 20px black;
-webkit-box-shadow: 0 0 20px black;
} }
.div_chart_skin_preview { .div_chart_skin_preview {
display: none; display: none;

View File

@ -27,6 +27,7 @@
border: 1px solid $gray; border: 1px solid $gray;
background-color: $light-gray; background-color: $light-gray;
border-radius: 2px; border-radius: 2px;
margin-bottom: 16px;
} }
#chart_settings_profiles_wrap { #chart_settings_profiles_wrap {