Skip to content

Commit

Permalink
style: note riga row-list
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasalva87 committed Feb 27, 2025
1 parent f0adb68 commit 647a407
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions include/common/riga.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,12 +369,12 @@ function controlla_sconto() {
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");
Expand Down
8 changes: 4 additions & 4 deletions include/common/sconto.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ function aggiorna_sconto_percentuale() {
}
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("");
}
Expand All @@ -95,9 +95,9 @@ function aggiorna_sconto_unitario(){
}
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("");
}
Expand Down
2 changes: 1 addition & 1 deletion modules/contratti/row-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@

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>
Expand Down
2 changes: 1 addition & 1 deletion modules/ddt/row-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@

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>';
Expand Down
6 changes: 3 additions & 3 deletions modules/fatture/row-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@
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 '
Expand Down
2 changes: 1 addition & 1 deletion modules/interventi/row-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@

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>
Expand Down
2 changes: 1 addition & 1 deletion modules/ordini/row-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@

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>';
Expand Down
2 changes: 1 addition & 1 deletion modules/preventivi/row-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@

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>
Expand Down
2 changes: 1 addition & 1 deletion plugins/listino_clienti/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
<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">
Expand Down
2 changes: 1 addition & 1 deletion plugins/listino_fornitori/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
<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">
Expand Down

0 comments on commit 647a407

Please sign in to comment.