mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Design update migration
This commit is contained in:
parent
5f2f316d0b
commit
c0904b0021
@ -507,7 +507,7 @@ class PdfMock
|
||||
'$status_logo' => '<div class="stamp is-paid"> ' . ctrans('texts.paid') .'</div>',
|
||||
'$show_shipping_address' => $this->settings->show_shipping_address ? 'flex' : 'none',
|
||||
'$show_shipping_address_block' => $this->settings->show_shipping_address ? 'block' : 'none',
|
||||
'$show_shipping_address_visibility' => $this->settings->show_shipping_address ? 'visible' : 'hidden',
|
||||
'$show_shipping_address_visibility' => $this->settings->show_shipping_address ? '1' : '0',
|
||||
'$start_date' => '31/01/2023',
|
||||
'$end_date' => '31/12/2023',
|
||||
'$history' => '',
|
||||
|
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Gateway;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
|
||||
Gateway::whereIn('id', [60, 15])->update(['visible' => 1]);
|
||||
|
||||
\Illuminate\Support\Facades\Artisan::call('ninja:design-update');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
};
|
@ -32,7 +32,6 @@
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
size: $page_size $page_layout;
|
||||
|
||||
}
|
||||
|
||||
p {
|
||||
@ -44,19 +43,13 @@
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
line-height: var(--line-height);
|
||||
margin-bottom:10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.client-wrapper{
|
||||
.client-wrapper {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
grid-template-areas: "a b c ";
|
||||
grid-auto-columns: minmax(0, 1fr);
|
||||
grid-auto-flow: column;
|
||||
justify-content:left;
|
||||
line-height: var(--line-height);
|
||||
|
||||
grid-template-columns: 1fr auto 1fr;
|
||||
border: 0px solid #000;
|
||||
}
|
||||
|
||||
.company-logo {
|
||||
@ -69,11 +62,18 @@
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
||||
#entity-details {
|
||||
text-align: left;
|
||||
#entity-container {
|
||||
border: 0px solid #000;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#entity-details {
|
||||
text-align: left;
|
||||
line-height: var(--line-height) !important;
|
||||
white-space: nowrap;
|
||||
border: 0px solid #000;
|
||||
margin-right: 0;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
#entity-details>tr,
|
||||
@ -92,7 +92,8 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: var(--line-height);
|
||||
white-space: nowrap;
|
||||
/* white-space: nowrap; */
|
||||
border: 0px solid #000;
|
||||
}
|
||||
|
||||
#shipping-details {
|
||||
@ -100,6 +101,7 @@
|
||||
flex-direction: column;
|
||||
line-height: var(--line-height);
|
||||
white-space: nowrap;
|
||||
border: 1px solid #000;
|
||||
}
|
||||
|
||||
[data-ref="table"] {
|
||||
@ -285,6 +287,13 @@
|
||||
color: #505050;
|
||||
}
|
||||
|
||||
#logo-container {
|
||||
margin-right: 0;
|
||||
margin-left: auto;
|
||||
text-align: right;
|
||||
border: 0px solid #000;
|
||||
}
|
||||
|
||||
.pqrcode {}
|
||||
|
||||
/** Useful snippets, uncomment to enable. **/
|
||||
@ -332,16 +341,15 @@
|
||||
<div class="header-wrapper">
|
||||
<div id="company-details"></div>
|
||||
<div id="company-address"></div>
|
||||
<div>
|
||||
<img class="company-logo" src="$company.logo" alt="$company.name logo" />
|
||||
|
||||
<div id="logo-container">
|
||||
<img class="company-logo" src="$company.logo" alt="$company.name logo">
|
||||
</div>
|
||||
</div>
|
||||
<div class="client-wrapper">
|
||||
<div id="client-details"></div>
|
||||
<div id="vendor-details"></div>
|
||||
<div id="shipping-details"></div>
|
||||
<div>
|
||||
<div id="entity-container">
|
||||
<table id="entity-details" cellspacing="0" cellpadding="0" dir="$dir"></table>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user