1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Fix badgers

This commit is contained in:
David Bomba 2019-08-20 08:29:19 +10:00
parent a40fb82971
commit f3d3385678
2 changed files with 14 additions and 14 deletions

View File

@ -204,28 +204,28 @@ class Invoice extends BaseModel
{
switch ($status) {
case Invoice::STATUS_DRAFT:
return '<h4><span class="badge badge-light">'.ctrans('texts.draft').'</span></h4>';
return '<h5><span class="badge badge-light">'.ctrans('texts.draft').'</span></h5>';
break;
case Invoice::STATUS_SENT:
return '<h4><span class="badge badge-primary">'.ctrans('texts.sent').'</span></h4>';
return '<h5><span class="badge badge-primary">'.ctrans('texts.sent').'</span></h5>';
break;
case Invoice::STATUS_PARTIAL:
return '<h4><span class="badge badge-primary">'.ctrans('texts.partial').'</span></h4>';
return '<h5><span class="badge badge-primary">'.ctrans('texts.partial').'</span></h5>';
break;
case Invoice::STATUS_PAID:
return '<h4><span class="badge badge-success">'.ctrans('texts.paid').'</span></h4>';
return '<h5><span class="badge badge-success">'.ctrans('texts.paid').'</span></h5>';
break;
case Invoice::STATUS_CANCELLED:
return '<h4><span class="badge badge-secondary">'.ctrans('texts.cancelled').'</span></h4>';
return '<h5><span class="badge badge-secondary">'.ctrans('texts.cancelled').'</span></h5>';
break;
case Invoice::STATUS_OVERDUE:
return '<h4><span class="badge badge-danger">'.ctrans('texts.overdue').'</span></h4>';
return '<h5><span class="badge badge-danger">'.ctrans('texts.overdue').'</span></h5>';
break;
case Invoice::STATUS_UNPAID:
return '<h4><span class="badge badge-warning">'.ctrans('texts.unpaid').'</span></h4>';
return '<h5><span class="badge badge-warning">'.ctrans('texts.unpaid').'</span></h5>';
break;
case Invoice::STATUS_REVERSED:
return '<h4><span class="badge badge-info">'.ctrans('texts.reversed').'</span></h4>';
return '<h5><span class="badge badge-info">'.ctrans('texts.reversed').'</span></h5>';
break;
default:
# code...

View File

@ -90,22 +90,22 @@ class Payment extends BaseModel
{
switch ($status) {
case self::STATUS_PENDING:
return '<h4><span class="badge badge-light">'.ctrans('texts.payment_status_1').'</span></h4>';
return '<h6><span class="badge badge-secondary">'.ctrans('texts.payment_status_1').'</span></h6>';
break;
case self::STATUS_VOIDED:
return '<h4><span class="badge badge-light">'.ctrans('texts.payment_status_2').'</span></h4>';
return '<h6><span class="badge badge-warning">'.ctrans('texts.payment_status_2').'</span></h6>';
break;
case self::STATUS_FAILED:
return '<h4><span class="badge badge-light">'.ctrans('texts.payment_status_3').'</span></h4>';
return '<h6><span class="badge badge-danger">'.ctrans('texts.payment_status_3').'</span></h6>';
break;
case self::STATUS_COMPLETED:
return '<h4><span class="badge badge-light">'.ctrans('texts.payment_status_4').'</span></h4>';
return '<h6><span class="badge badge-info">'.ctrans('texts.payment_status_4').'</span></h6>';
break;
case self::STATUS_PARTIALLY_REFUNDED:
return '<h4><span class="badge badge-light">'.ctrans('texts.payment_status_5').'</span></h4>';
return '<h6><span class="badge badge-success">'.ctrans('texts.payment_status_5').'</span></h6>';
break;
case self::STATUS_REFUNDED:
return '<h4><span class="badge badge-light">'.ctrans('texts.payment_status_6').'</span></h4>';
return '<h6><span class="badge badge-primary">'.ctrans('texts.payment_status_6').'</span></h6>';
break;
default:
# code...