Poporavki izgleda admin tabele narocil na mobitelu
This commit is contained in:
parent
54fda9063a
commit
dd75be0d77
@ -61,6 +61,11 @@ function prepareNarocilaTableAdmin(){
|
||||
deferRender: true,
|
||||
dom: 'Blfrtip',
|
||||
responsive: true,
|
||||
columnDefs: [
|
||||
{responsivePriority: 1, targets: 0},
|
||||
{responsivePriority: 2, targets: 7},
|
||||
{responsivePriority: 3, targets: 4}
|
||||
],
|
||||
language: {
|
||||
"url": siteUrl+"admin/survey/script/datatables/Slovenian.json"
|
||||
},
|
||||
@ -118,6 +123,11 @@ function preparePlacilaTableAdmin(){
|
||||
deferRender: true,
|
||||
dom: 'Blfrtip',
|
||||
responsive: true,
|
||||
columnDefs: [
|
||||
{responsivePriority: 1, targets: 0},
|
||||
{responsivePriority: 2, targets: 3},
|
||||
{responsivePriority: 3, targets: 2}
|
||||
],
|
||||
language: {
|
||||
"url": siteUrl+"admin/survey/script/datatables/Slovenian.json"
|
||||
},
|
||||
|
@ -340,7 +340,14 @@ class UserNarocila{
|
||||
|
||||
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><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
|
||||
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 $lang['srv_narocilo_status_'.$data_row['status']];
|
||||
|
@ -26925,6 +26925,17 @@ label.user_access_locked:hover,
|
||||
#narocila table.dataTable.user_narocila_admin {
|
||||
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) {
|
||||
text-align: center;
|
||||
}
|
||||
|
@ -206,6 +206,20 @@ label.user_access_locked,
|
||||
table.dataTable.user_narocila_admin{
|
||||
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){
|
||||
text-align: center;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user