Poporavki izgleda admin tabele narocil na mobitelu
This commit is contained in:
parent
54fda9063a
commit
dd75be0d77
@ -61,6 +61,11 @@ function prepareNarocilaTableAdmin(){
|
|||||||
deferRender: true,
|
deferRender: true,
|
||||||
dom: 'Blfrtip',
|
dom: 'Blfrtip',
|
||||||
responsive: true,
|
responsive: true,
|
||||||
|
columnDefs: [
|
||||||
|
{responsivePriority: 1, targets: 0},
|
||||||
|
{responsivePriority: 2, targets: 7},
|
||||||
|
{responsivePriority: 3, targets: 4}
|
||||||
|
],
|
||||||
language: {
|
language: {
|
||||||
"url": siteUrl+"admin/survey/script/datatables/Slovenian.json"
|
"url": siteUrl+"admin/survey/script/datatables/Slovenian.json"
|
||||||
},
|
},
|
||||||
@ -118,6 +123,11 @@ function preparePlacilaTableAdmin(){
|
|||||||
deferRender: true,
|
deferRender: true,
|
||||||
dom: 'Blfrtip',
|
dom: 'Blfrtip',
|
||||||
responsive: true,
|
responsive: true,
|
||||||
|
columnDefs: [
|
||||||
|
{responsivePriority: 1, targets: 0},
|
||||||
|
{responsivePriority: 2, targets: 3},
|
||||||
|
{responsivePriority: 3, targets: 2}
|
||||||
|
],
|
||||||
language: {
|
language: {
|
||||||
"url": siteUrl+"admin/survey/script/datatables/Slovenian.json"
|
"url": siteUrl+"admin/survey/script/datatables/Slovenian.json"
|
||||||
},
|
},
|
||||||
|
@ -340,7 +340,14 @@ class UserNarocila{
|
|||||||
|
|
||||||
foreach($data as $usr_id => $data_row){
|
foreach($data as $usr_id => $data_row){
|
||||||
|
|
||||||
echo '<tr>';
|
if($data_row['status'] == '0')
|
||||||
|
$status_color = 'red';
|
||||||
|
elseif($data_row['status'] == '1')
|
||||||
|
$status_color = 'green';
|
||||||
|
else
|
||||||
|
$status_color = 'black';
|
||||||
|
|
||||||
|
echo '<tr class="'.$status_color.'_bg">';
|
||||||
|
|
||||||
echo '<td>'.$data_row['name'].' '.$data_row['surname'].' '.($data_row['podjetje_ime'] != '' ? '('.$data_row['podjetje_ime'].')' : '').'</td>';
|
echo '<td>'.$data_row['name'].' '.$data_row['surname'].' '.($data_row['podjetje_ime'] != '' ? '('.$data_row['podjetje_ime'].')' : '').'</td>';
|
||||||
echo '<td><span class="as_link" onClick="edit_user(\''.$data_row['usr_id'].'\'); return false;">'.$data_row['email'].'</span></td>';
|
echo '<td><span class="as_link" onClick="edit_user(\''.$data_row['usr_id'].'\'); return false;">'.$data_row['email'].'</span></td>';
|
||||||
@ -361,14 +368,6 @@ class UserNarocila{
|
|||||||
else
|
else
|
||||||
echo '<td>'.$cena['final'].'</td>';
|
echo '<td>'.$cena['final'].'</td>';
|
||||||
|
|
||||||
|
|
||||||
if($data_row['status'] == '0')
|
|
||||||
$status_color = 'red';
|
|
||||||
elseif($data_row['status'] == '1')
|
|
||||||
$status_color = 'green';
|
|
||||||
else
|
|
||||||
$status_color = 'black';
|
|
||||||
|
|
||||||
echo '<td class="'.$status_color.'">';
|
echo '<td class="'.$status_color.'">';
|
||||||
|
|
||||||
echo $lang['srv_narocilo_status_'.$data_row['status']];
|
echo $lang['srv_narocilo_status_'.$data_row['status']];
|
||||||
|
@ -26925,6 +26925,17 @@ label.user_access_locked:hover,
|
|||||||
#narocila table.dataTable.user_narocila_admin {
|
#narocila table.dataTable.user_narocila_admin {
|
||||||
padding: 20px 0;
|
padding: 20px 0;
|
||||||
}
|
}
|
||||||
|
@media screen and (max-width: 700px) {
|
||||||
|
#narocila table.dataTable.user_narocila_admin tr.red_bg {
|
||||||
|
/*background-color: #eecccc;*/
|
||||||
|
}
|
||||||
|
#narocila table.dataTable.user_narocila_admin tr.green_bg {
|
||||||
|
background-color: #ddeedd;
|
||||||
|
}
|
||||||
|
#narocila table.dataTable.user_narocila_admin tr.black_bg {
|
||||||
|
background-color: #eeeeee;
|
||||||
|
}
|
||||||
|
}
|
||||||
#narocila table.dataTable.user_narocila_admin td:nth-child(n+3) {
|
#narocila table.dataTable.user_narocila_admin td:nth-child(n+3) {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
@ -206,6 +206,20 @@ label.user_access_locked,
|
|||||||
table.dataTable.user_narocila_admin{
|
table.dataTable.user_narocila_admin{
|
||||||
padding: 20px 0;
|
padding: 20px 0;
|
||||||
|
|
||||||
|
@media screen and (max-width: 700px) {
|
||||||
|
tr{
|
||||||
|
&.red_bg{
|
||||||
|
/*background-color: #eecccc;*/
|
||||||
|
}
|
||||||
|
&.green_bg{
|
||||||
|
background-color: #ddeedd;
|
||||||
|
}
|
||||||
|
&.black_bg{
|
||||||
|
background-color: #eeeeee;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
td:nth-child(n+3){
|
td:nth-child(n+3){
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user