mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-13 01:30:11 +01:00
style: note riga row-list
This commit is contained in:
parent
c8da908572
commit
61a5f501e7
@ -369,12 +369,12 @@ if (in_array($module->name, ['Fatture di vendita', 'Fatture di acquisto'])) {
|
||||
div_margine.css("margin-top", "-20px");
|
||||
div_prezzi.css("margin-top", "-20px");
|
||||
div_prezzi.css("margin-bottom", "20px");
|
||||
div.html(`<span class="right badge badge-default" >'.tr('Sconto').'</small>`);
|
||||
div.html(`<span class="text-xs" >'.tr('Sconto').'</small>`);
|
||||
} else if (sconto < 0) {
|
||||
div_margine.css("margin-top", "-20px");
|
||||
div_prezzi.css("margin-top", "-20px");
|
||||
div_prezzi.css("margin-bottom", "20px");
|
||||
div.html(`<span class="right badge badge-default" >'.tr('Maggiorazione').'</small>`);
|
||||
div.html(`<span class="text-xs" >'.tr('Maggiorazione').'</small>`);
|
||||
} else {
|
||||
div_margine.css("margin-top", "0px");
|
||||
div_prezzi.css("margin-top", "0px");
|
||||
|
@ -75,9 +75,9 @@ echo '
|
||||
}
|
||||
|
||||
if (sconto > 0) {
|
||||
div.html(`<span class="right badge badge-default" >'.tr('Sconto').'</small>`);
|
||||
div.html(`<span class="text-xs" >'.tr('Sconto').'</small>`);
|
||||
} else if (sconto < 0) {
|
||||
div.html(`<span class="right badge badge-default" >'.tr('Maggiorazione').'</small>`);
|
||||
div.html(`<span class="text-xs" >'.tr('Maggiorazione').'</small>`);
|
||||
} else {
|
||||
div.html("");
|
||||
}
|
||||
@ -95,9 +95,9 @@ echo '
|
||||
}
|
||||
|
||||
if (sconto > 0) {
|
||||
div.html(`<span class="right badge badge-default" >'.tr('Sconto').'</small>`);
|
||||
div.html(`<span class="text-xs" >'.tr('Sconto').'</small>`);
|
||||
} else if (sconto < 0) {
|
||||
div.html(`<span class="right badge badge-default" >'.tr('Maggiorazione').'</small>`);
|
||||
div.html(`<span class="text-xs" >'.tr('Maggiorazione').'</small>`);
|
||||
} else {
|
||||
div.html("");
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ foreach ($righe as $riga) {
|
||||
|
||||
if (!empty($riga->note)) {
|
||||
echo '
|
||||
<br><span class="right badge badge-default">'.nl2br($riga->note).'</small>';
|
||||
<br><span class="text-xs">'.nl2br($riga->note).'</small>';
|
||||
}
|
||||
echo '
|
||||
</td>
|
||||
|
@ -128,7 +128,7 @@ foreach ($righe as $riga) {
|
||||
|
||||
if (!empty($riga->note)) {
|
||||
echo '
|
||||
<br><span class="right badge badge-default">'.nl2br($riga->note).'</small>';
|
||||
<br><span class="text-xs">'.nl2br($riga->note).'</small>';
|
||||
}
|
||||
echo '
|
||||
</td>';
|
||||
|
@ -189,10 +189,10 @@ foreach ($righe as $riga) {
|
||||
if (strlen($riga->note) > 50) {
|
||||
$prima_parte = substr($riga->note, 0, (strpos($riga->note, ' ', 50) < 60) && (!str_starts_with($riga->note, ' ')) ? strpos($riga->note, ' ', 50) : 50);
|
||||
$seconda_parte = substr($riga->note, (strpos($riga->note, ' ', 50) < 60) && (!str_starts_with($riga->note, ' ')) ? strpos($riga->note, ' ', 50) : 50);
|
||||
$stringa_modificata = '<span class="right badge badge-default">'.$prima_parte.'</small>
|
||||
<span id="read-more-target-'.$riga->id.'" class="read-more-target"><span class="right badge badge-default">'.$seconda_parte.'</small></span><a href="#read-more-target-'.$riga->id.'" class="read-more-trigger">...</a>';
|
||||
$stringa_modificata = '<span class="text-xs">'.$prima_parte.'</small>
|
||||
<span id="read-more-target-'.$riga->id.'" class="read-more-target"><span class="text-xs">'.$seconda_parte.'</small></span><a href="#read-more-target-'.$riga->id.'" class="read-more-trigger">...</a>';
|
||||
} else {
|
||||
$stringa_modificata = '<span class="right badge badge-default">'.$riga->note.'</small>';
|
||||
$stringa_modificata = '<span class="text-xs">'.$riga->note.'</small>';
|
||||
}
|
||||
|
||||
echo '
|
||||
|
@ -106,7 +106,7 @@ foreach ($righe as $riga) {
|
||||
|
||||
if (!empty($riga->note)) {
|
||||
echo '
|
||||
<br><span class="right badge badge-default">'.nl2br($riga->note).'</small>';
|
||||
<br><span class="text-xs">'.nl2br($riga->note).'</small>';
|
||||
}
|
||||
echo '
|
||||
</td>
|
||||
|
@ -151,7 +151,7 @@ foreach ($righe as $riga) {
|
||||
|
||||
if (!empty($riga->note)) {
|
||||
echo '
|
||||
<br><span class="right badge badge-default">'.nl2br($riga->note).'</small>';
|
||||
<br><span class="text-xs">'.nl2br($riga->note).'</small>';
|
||||
}
|
||||
echo '
|
||||
</td>';
|
||||
|
@ -119,7 +119,7 @@ foreach ($righe as $key => $riga) {
|
||||
|
||||
if (!empty($riga->note)) {
|
||||
echo '
|
||||
<br><span class="right badge badge-default">'.nl2br($riga->note).'</small>';
|
||||
<br><span class="text-xs">'.nl2br($riga->note).'</small>';
|
||||
}
|
||||
echo '
|
||||
</td>
|
||||
|
@ -97,7 +97,7 @@ if (!$clienti->isEmpty()) {
|
||||
|
||||
<td class="text-right">
|
||||
'.moneyFormat($dettaglio->prezzo_unitario).'
|
||||
<p><span class="right badge badge-default tip" title="'.Translator::timestampToLocale($dettaglio['updated_at']).'"><i class="fa fa-clock-o"></i> '.Carbon::parse($dettaglio['updated_at'])->diffForHumans().'</small></p>
|
||||
<p><span class="text-xs tip" title="'.Translator::timestampToLocale($dettaglio['updated_at']).'"><i class="fa fa-clock-o"></i> '.Carbon::parse($dettaglio['updated_at'])->diffForHumans().'</small></p>
|
||||
</td>
|
||||
|
||||
<td class="text-right">
|
||||
|
@ -177,7 +177,7 @@ if (!$fornitori_disponibili->isEmpty()) {
|
||||
|
||||
<td class="text-right">
|
||||
'.moneyFormat($dettaglio->prezzo_unitario).'
|
||||
<p><span class="right badge badge-default tip" title="'.Translator::timestampToLocale($dettaglio['updated_at']).'"><i class="fa fa-clock-o"></i> '.$dettaglio->updated_at->diffForHumans().'</small></p>
|
||||
<p><span class="text-xs tip" title="'.Translator::timestampToLocale($dettaglio['updated_at']).'"><i class="fa fa-clock-o"></i> '.$dettaglio->updated_at->diffForHumans().'</small></p>
|
||||
</td>
|
||||
|
||||
<td class="text-right">
|
||||
|
Loading…
x
Reference in New Issue
Block a user