mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
Aggiunta colorazione righe controllo database
This commit is contained in:
parent
8b4bd266c5
commit
7b0d4e3d51
@ -116,7 +116,7 @@ if (!empty($results)) {
|
||||
|
||||
if (!empty($errors)) {
|
||||
echo '
|
||||
<table class="table table-bordered table-striped">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>'.tr('Colonna').'</th>
|
||||
@ -127,8 +127,13 @@ if (!empty($results)) {
|
||||
<tbody>';
|
||||
|
||||
foreach ($errors as $name => $diff) {
|
||||
if(count($diff) == 1 && array_key_exists('type',$diff) && str_contains($diff['type']['expected'] , $diff['type']['current'])){
|
||||
$class="info";
|
||||
}else{
|
||||
$class="warning";
|
||||
}
|
||||
echo '
|
||||
<tr>
|
||||
<tr class="bg-'.$class.'" >
|
||||
<td>
|
||||
'.$name.'
|
||||
</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user