testiranje: avtomatski vnosi: styling

This commit is contained in:
Nejc Kovač 2022-08-25 11:42:28 +02:00
parent 11bb95a483
commit ce3685726b
3 changed files with 78 additions and 58 deletions

View File

@ -502,11 +502,11 @@ class SurveyAdminSettings {
echo '<div class="setting_item">'; echo '<div class="setting_item">';
echo '<input type="radio" id="defValidProfile2" name="defValidProfile" '.($row['defValidProfile']==2?' checked':'').' value="2">'; echo '<input type="radio" id="defValidProfile2" name="defValidProfile" '.($row['defValidProfile']==2?' checked':'').' value="2">';
echo '<label for="defValidProfile2">'.$lang['srv_prikaz_default_valid1'].'</label>'; echo '<label for="defValidProfile2">'.'(5,6) '.$lang['srv_data_valid_units'].'</label>';
echo '</div>'; echo '</div>';
echo '<div class="setting_item">'; echo '<div class="setting_item">';
echo '<input type="radio" id="defValidProfile3" name="defValidProfile" '.($row['defValidProfile']==3?' checked':'').' value="3">'; echo '<input type="radio" id="defValidProfile3" name="defValidProfile" '.($row['defValidProfile']==3?' checked':'').' value="3">';
echo '<label for="defValidProfile3">'.$lang['srv_prikaz_default_valid2'].'</label>'; echo '<label for="defValidProfile3">'.'(6) '.$lang['srv_data_finished_units'].'</label>';
echo '</div>'; echo '</div>';
echo '</div>'; echo '</div>';
@ -8802,7 +8802,7 @@ class SurveyAdminSettings {
echo $lang['srv_stevilo_vnosov'].':'; echo $lang['srv_stevilo_vnosov'].':';
echo '<div class="max_wrap">'; echo '<div class="max_wrap">';
echo '<input class="text large" type="text" name="stevilo_vnosov" value="1" onkeyup="max_stevilo_vnosov();">'; echo '<input class="text large" type="text" name="stevilo_vnosov" value="1" onkeyup="max_stevilo_vnosov();">';
echo '<span class="gray">(max 1000)</span>'; echo '<span class="gray">(max. 1000)</span>';
echo '</div>'; echo '</div>';
echo '</div>'; echo '</div>';
@ -8822,6 +8822,9 @@ class SurveyAdminSettings {
echo '<a class="noline" href="#" onClick="delete_test_data();"><span class="faicon trash empty link-right"></span>'.$lang['srv_delete_testdata'].'</a> ('.$total_rows.')'; echo '<a class="noline" href="#" onClick="delete_test_data();"><span class="faicon trash empty link-right"></span>'.$lang['srv_delete_testdata'].'</a> ('.$total_rows.')';
if ($total_rows > 0) {
echo '<table class="table_header">'; echo '<table class="table_header">';
echo '<tbody>'; echo '<tbody>';
echo '<tr>'; echo '<tr>';
@ -8831,11 +8834,10 @@ class SurveyAdminSettings {
echo '</tbody>'; echo '</tbody>';
echo '</table>'; echo '</table>';
if ($total_rows > 0) {
$prevpage = 0; $prevpage = 0;
$sql = sisplet_query("SELECT s.id, s.gru_id, s.tip, s.naslov, g.naslov AS pagename FROM srv_spremenljivka s, srv_grupa g WHERE s.gru_id=g.id AND s.visible='1' AND g.ank_id='$this->anketa' ORDER BY g.vrstni_red, s.vrstni_red"); $sql = sisplet_query("SELECT s.id, s.gru_id, s.tip, s.naslov, g.naslov AS pagename FROM srv_spremenljivka s, srv_grupa g WHERE s.gru_id=g.id AND s.visible='1' AND g.ank_id='$this->anketa' ORDER BY g.vrstni_red, s.vrstni_red");
while ($row = mysqli_fetch_array($sql)) { while ($row = mysqli_fetch_array($sql)) {

View File

@ -10174,41 +10174,43 @@ div .table-horizontal-scroll-wrapper2 table {
padding: 0px; padding: 0px;
} }
.page_num_fieldset { #anketa_edit .page_num_fieldset {
padding-top: 0px; padding-top: 0px;
padding-bottom: 0px; padding-bottom: 0px;
margin: 12px 0px; margin: 0px;
} }
#anketa_edit .page_num {
.page_num { text-align: center;
margin-left: 39%;
color: #333333; color: #333333;
position: relative; position: relative;
margin: 4px 0px;
} }
#anketa_edit .table_header {
.table_header {
width: 100%; width: 100%;
margin: 16px 0px 0px 0px; margin: 16px 0px 0px 0px;
background-color: #F8F8F8;
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
} }
.table_header tr { #anketa_edit .table_header tr {
width: 100%; width: 100%;
} }
.table_header tr td:first-of-type { #anketa_edit .table_header tr td:first-of-type {
width: 40%; width: 46%;
padding-left: 16px; padding-left: 16px;
} }
.table_header tr td:last-of-type { #anketa_edit .table_header tr td:last-of-type {
width: 60%; width: 54%;
padding-left: 16px; padding-left: 16px;
} }
#anketa_edit .avt_vnosi_table {
.avt_vnosi_table td:first-of-type { margin: 0px;
width: 40%;
} }
.avt_vnosi_table td:last-of-type { #anketa_edit .avt_vnosi_table td:first-of-type {
width: 60%; width: 46%;
}
#anketa_edit .avt_vnosi_table td:last-of-type {
width: 54%;
} }
/* /*

View File

@ -112,19 +112,26 @@ div {
border-top: 1px dashed #E5E5E5; border-top: 1px dashed #E5E5E5;
padding: 0px; padding: 0px;
} }
#anketa_edit {
.page_num_fieldset{ .page_num_fieldset{
padding-top: 0px; padding-top: 0px;
padding-bottom: 0px; padding-bottom: 0px;
margin: 12px 0px; margin: 0px;
} }
.page_num{ .page_num{
margin-left: 39%; text-align: center;
color: #333333; color: #333333;
position: relative; position: relative;
margin: 4px 0px;
} }
@ -132,6 +139,7 @@ div {
.table_header{ .table_header{
width: 100%; width: 100%;
margin: 16px 0px 0px 0px; margin: 16px 0px 0px 0px;
background-color: #F8F8F8;
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
@ -141,22 +149,30 @@ div {
td:first-of-type { td:first-of-type {
width: 40%; width: 46%;
padding-left: 16px; padding-left: 16px;
} }
td:last-of-type { td:last-of-type {
width: 60%; width: 54%;
padding-left: 16px; padding-left: 16px;
} }
} }
} }
.avt_vnosi_table{ .avt_vnosi_table{
margin: 0px;
td:first-of-type { td:first-of-type {
width: 40%; width: 46%;
} }
td:last-of-type { td:last-of-type {
width: 60%; width: 54%;
} }
} }
}