Aggiunta colorazione righe controllo database
This commit is contained in:
parent
8b4bd266c5
commit
7b0d4e3d51
|
@ -116,7 +116,7 @@ if (!empty($results)) {
|
||||||
|
|
||||||
if (!empty($errors)) {
|
if (!empty($errors)) {
|
||||||
echo '
|
echo '
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>'.tr('Colonna').'</th>
|
<th>'.tr('Colonna').'</th>
|
||||||
|
@ -127,8 +127,13 @@ if (!empty($results)) {
|
||||||
<tbody>';
|
<tbody>';
|
||||||
|
|
||||||
foreach ($errors as $name => $diff) {
|
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 '
|
echo '
|
||||||
<tr>
|
<tr class="bg-'.$class.'" >
|
||||||
<td>
|
<td>
|
||||||
'.$name.'
|
'.$name.'
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue