[Redizajn 1KA] - Urejanje --> Nastavitve --> Telefonska anketa - v2 // Dodaj

This commit is contained in:
tejagerjovic 2022-04-14 03:03:37 +02:00
parent dabcf61d97
commit 03d0ea3a9e
3 changed files with 1539 additions and 1483 deletions

View File

@ -516,7 +516,6 @@ class SurveyTelephone {
function addRecipientsView( $fields = array(), $recipients_list=null) {
#prikažemo vmesnik za dodajanje respondentov
global $lang;
echo '<h2>'.$lang['srv_inv_add_recipients_heading'].'</h2>';
echo '<div id="inv_import">';
$this->displayAddRecipientsView($fields, $recipients_list);
@ -560,12 +559,12 @@ class SurveyTelephone {
# profili respondentov
echo '<div id="inv_recipients_profiles_holder">';
echo '<p class="bottom8 bold">'.$lang['srv_inv_recipient_select_list'].'</p>';
echo '<p>'.$lang['srv_inv_recipient_select_list'].'</p>';
$this->listRecipientsProfiles();
echo '</div>'; # id=inv_recipients_profiles_holder
echo '<div id="inv_import_list_container">';
echo '<fieldset id="inv_import_list_container"><legend>'.$lang['srv_inv_recipiens_from'].'</legend>';
$sqlSysMapping = sisplet_query("SELECT * FROM srv_invitations_mapping WHERE sid = '$this->sid'");
if (mysqli_num_rows($sqlSysMapping) > 0) {
@ -580,8 +579,6 @@ class SurveyTelephone {
.($sysUserToAdd > 0 ? ' ('.$sysUserToAdd.')' : '').'</label></span>';
echo Help::display('inv_recipiens_from_system');*/
echo '<br class="clr"/>';
echo '<br class="clr"/>';
if ($import_type == 3) {
#$this->displayFromSystemVariables();
$this->createSystemVariablesMapping();
@ -605,6 +602,7 @@ class SurveyTelephone {
echo '<input id="'.$field.'_chk" type="checkbox" class="inv_checkbox' . $hidden_checkbox . '"'.($is_selected == true ? ' checked="checked"' : '').'>';
echo '<label'.$label_for.'>'.$lang['srv_'.$field].'</label>';
echo '</li>';
if ($is_selected == 1) {
$field_lang[] = $lang['srv_'.$field];
}
@ -618,12 +616,12 @@ class SurveyTelephone {
echo '<div id="inv_import_list"'.($import_type != 1 ? '' : ' class="hidden"').'>' ;
echo '<p class="top32 bottom16">'.$lang['srv_inv_recipiens_email_note'].'</p>';
echo '<p class="top16">'.$lang['srv_inv_recipiens_sample2'].'</p>';
echo '<p class="top16">'.$lang['srv_telephone_add_sample'].'</p>';
echo '<p class="top16 gray italic">'.$lang['srv_telephone_add_sample'].'</p>';
echo '<p class="top16">'.$lang['srv_inv_recipiens_fields'].' <span id="inv_field_list" class="bold">';
echo implode(',',$field_lang);
echo '</span>';
echo '<textarea id="inv_recipients_list" name="inv_recipients_list">';
if (is_array($recipients_list) && count($recipients_list) > 0 ) {
echo implode("\n",$recipients_list);
@ -663,9 +661,6 @@ class SurveyTelephone {
echo '</div>'; # id=inv_import_list
}
echo '</div>'; # id=inv_import_list_container
echo '</div>'; # id=inv_import
echo '<div class="button_holder">';
# če je začasen avtor, ne ponudimo shrani
if ((int)$ppid != 0) {
@ -675,6 +670,9 @@ class SurveyTelephone {
# če že imamo prejemnike v bazi ponudimo gumb naprej
echo '<button class="medium blue" onclick="phn_add_recipients(); return false;">'.$lang['srv_telephone_add'].'</button>';
echo '</div>';
echo '</fieldset>'; # id=inv_import_list_container
echo '</div>'; # id=inv_import
}
function listRecipientsProfiles() {

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@ div.page_telephone {
display: flex;
flex-direction: row;
margin-bottom: 32px;
margin-bottom: 42px;
div.phn_step_nav {
display: flex;
@ -92,7 +92,6 @@ div.page_telephone {
&.settings {
margin-right: 32px;
display: none;
}
}
}
@ -108,74 +107,109 @@ div.page_telephone {
display: flex;
flex-direction: row;
width: 100%;
gap: 8px;
gap: 32px;
box-sizing: border-box;
div#inv_recipients_profiles_holder {
padding: 16px 8px;
min-height: 355px;
width: 25%;
height: fit-content;
padding: 16px;
background: $white;
border: 1px solid $gray;
width: 25%;
overflow: hidden;
box-sizing: border-box;
background-color: $light-gray;
div#phn_import_list_profiles {
border: 1px solid $gray;
background-color: $white;
min-height: 100px;
min-height: 200px;
max-height: 600px;
ol {
margin: 0;
padding: 0;
border-bottom: 1px solid $gray;
display: flex;
flex-direction: column;
overflow-y: auto;
width: 100%;
max-height: 400px;
border: 1px solid $gray;
background-color: white;
margin-top: 4px;
ol {
display: flex;
flex-direction: column;
margin: 0px;
padding: 0px;
li {
list-style-image: none;
list-style-position: outside;
list-style-type: none;
line-height: 20px;
border-top: 1px solid $gray;
padding: 0 5px;
cursor: pointer;
list-style-type: none;
display: flex;
align-items: center;
justify-content: space-between;
height: 35px;
padding: 0px 8px;
border-bottom: 1px solid $gray;
&:last-child{
border-bottom: 0;
}
&.active {
color: $white;
background-color: $blue;
color: $blue;
background-color: $medium-blue2;
}
&:hover {
background-color: $medium-blue2;
}
.faicon{
margin-left: 8px;
&:before{
font-size: 16px;
}
}
}
}
}
}
div#inv_import_list_container {
fieldset#inv_import_list_container {
padding: 16px;
min-height: 355px;
width: 75%;
border: 1px solid $gray;
box-sizing: border-box;
margin-top: -10px;
// Stlying za boxe?
textarea {
width: 100%;
height: 120px;
}
}
div.button_holder {
justify-content: right;
margin-top: 32px;
margin-bottom: 0;
}
div.button_holder {
justify-content: right;
margin-top: 32px;
button {
&:last-of-type {
margin-right: 0;
button {
&:last-of-type {
margin-right: 0;
}
}
}
}
}
//Preglej