1
0
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:
Luca 2025-02-27 16:02:13 +01:00 committed by valentina
parent c8da908572
commit 61a5f501e7
10 changed files with 16 additions and 16 deletions

View File

@ -369,12 +369,12 @@ if (in_array($module->name, ['Fatture di vendita', 'Fatture di acquisto'])) {
div_margine.css("margin-top", "-20px"); div_margine.css("margin-top", "-20px");
div_prezzi.css("margin-top", "-20px"); div_prezzi.css("margin-top", "-20px");
div_prezzi.css("margin-bottom", "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) { } else if (sconto < 0) {
div_margine.css("margin-top", "-20px"); div_margine.css("margin-top", "-20px");
div_prezzi.css("margin-top", "-20px"); div_prezzi.css("margin-top", "-20px");
div_prezzi.css("margin-bottom", "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 { } else {
div_margine.css("margin-top", "0px"); div_margine.css("margin-top", "0px");
div_prezzi.css("margin-top", "0px"); div_prezzi.css("margin-top", "0px");

View File

@ -75,9 +75,9 @@ echo '
} }
if (sconto > 0) { 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) { } 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 { } else {
div.html(""); div.html("");
} }
@ -95,9 +95,9 @@ echo '
} }
if (sconto > 0) { 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) { } 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 { } else {
div.html(""); div.html("");
} }

View File

@ -123,7 +123,7 @@ foreach ($righe as $riga) {
if (!empty($riga->note)) { if (!empty($riga->note)) {
echo ' echo '
<br><span class="right badge badge-default">'.nl2br($riga->note).'</small>'; <br><span class="text-xs">'.nl2br($riga->note).'</small>';
} }
echo ' echo '
</td> </td>

View File

@ -128,7 +128,7 @@ foreach ($righe as $riga) {
if (!empty($riga->note)) { if (!empty($riga->note)) {
echo ' echo '
<br><span class="right badge badge-default">'.nl2br($riga->note).'</small>'; <br><span class="text-xs">'.nl2br($riga->note).'</small>';
} }
echo ' echo '
</td>'; </td>';

View File

@ -189,10 +189,10 @@ foreach ($righe as $riga) {
if (strlen($riga->note) > 50) { 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); $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); $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> $stringa_modificata = '<span class="text-xs">'.$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>'; <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 { } else {
$stringa_modificata = '<span class="right badge badge-default">'.$riga->note.'</small>'; $stringa_modificata = '<span class="text-xs">'.$riga->note.'</small>';
} }
echo ' echo '

View File

@ -106,7 +106,7 @@ foreach ($righe as $riga) {
if (!empty($riga->note)) { if (!empty($riga->note)) {
echo ' echo '
<br><span class="right badge badge-default">'.nl2br($riga->note).'</small>'; <br><span class="text-xs">'.nl2br($riga->note).'</small>';
} }
echo ' echo '
</td> </td>

View File

@ -151,7 +151,7 @@ foreach ($righe as $riga) {
if (!empty($riga->note)) { if (!empty($riga->note)) {
echo ' echo '
<br><span class="right badge badge-default">'.nl2br($riga->note).'</small>'; <br><span class="text-xs">'.nl2br($riga->note).'</small>';
} }
echo ' echo '
</td>'; </td>';

View File

@ -119,7 +119,7 @@ foreach ($righe as $key => $riga) {
if (!empty($riga->note)) { if (!empty($riga->note)) {
echo ' echo '
<br><span class="right badge badge-default">'.nl2br($riga->note).'</small>'; <br><span class="text-xs">'.nl2br($riga->note).'</small>';
} }
echo ' echo '
</td> </td>

View File

@ -97,7 +97,7 @@ if (!$clienti->isEmpty()) {
<td class="text-right"> <td class="text-right">
'.moneyFormat($dettaglio->prezzo_unitario).' '.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>
<td class="text-right"> <td class="text-right">

View File

@ -177,7 +177,7 @@ if (!$fornitori_disponibili->isEmpty()) {
<td class="text-right"> <td class="text-right">
'.moneyFormat($dettaglio->prezzo_unitario).' '.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>
<td class="text-right"> <td class="text-right">