mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Updating text files
This commit is contained in:
parent
31b4e17c18
commit
1e288aafdf
@ -709,12 +709,21 @@ class AccountController extends \BaseController
|
||||
$path = Input::file('logo')->getRealPath();
|
||||
File::delete('logo/'.$account->account_key.'.jpg');
|
||||
|
||||
$image = Image::make($path)->resize(200, 120, true, false);
|
||||
$image = Image::make($path);
|
||||
$mimeType = $file->getMimeType();
|
||||
|
||||
if ($image->width == 200 && $mimeType == 'image/jpeg') {
|
||||
$file->move('logo/', $account->account_key . '.jpg');
|
||||
} else {
|
||||
$image->resize(200, 120, true, false);
|
||||
Image::canvas($image->width, $image->height, '#FFFFFF')->insert($image)->save($account->getLogoPath());
|
||||
}
|
||||
|
||||
Event::fire('user.refresh');
|
||||
//$image = Image::make($path)->resize(200, 120, true, false);
|
||||
//Image::canvas($image->width, $image->height, '#FFFFFF')->insert($image)->save($account->getLogoPath());
|
||||
}
|
||||
|
||||
Event::fire('user.refresh');
|
||||
Session::flash('message', trans('texts.updated_settings'));
|
||||
|
||||
return Redirect::to('company/details');
|
||||
|
@ -493,5 +493,11 @@ return array(
|
||||
'discount_percent' => 'Percent',
|
||||
'discount_amount' => 'Amount',
|
||||
|
||||
'invoice_history' => 'Invoice History',
|
||||
'quote_history' => 'Quote History',
|
||||
'current_version' => 'Current version',
|
||||
'select_versiony' => 'Select version',
|
||||
'view_history' => 'View History',
|
||||
|
||||
|
||||
);
|
||||
|
@ -483,6 +483,11 @@ return array(
|
||||
'discount_percent' => 'Percent',
|
||||
'discount_amount' => 'Amount',
|
||||
|
||||
'invoice_history' => 'Invoice History',
|
||||
'quote_history' => 'Quote History',
|
||||
'current_version' => 'Current version',
|
||||
'select_versiony' => 'Select version',
|
||||
'view_history' => 'View History',
|
||||
|
||||
|
||||
);
|
||||
|
@ -463,5 +463,11 @@ return array(
|
||||
'discount_percent' => 'Percent',
|
||||
'discount_amount' => 'Amount',
|
||||
|
||||
'invoice_history' => 'Invoice History',
|
||||
'quote_history' => 'Quote History',
|
||||
'current_version' => 'Current version',
|
||||
'select_versiony' => 'Select version',
|
||||
'view_history' => 'View History',
|
||||
|
||||
|
||||
);
|
@ -484,5 +484,11 @@ return array(
|
||||
'discount_percent' => 'Percent',
|
||||
'discount_amount' => 'Amount',
|
||||
|
||||
'invoice_history' => 'Invoice History',
|
||||
'quote_history' => 'Quote History',
|
||||
'current_version' => 'Current version',
|
||||
'select_versiony' => 'Select version',
|
||||
'view_history' => 'View History',
|
||||
|
||||
|
||||
);
|
@ -486,6 +486,11 @@ return array(
|
||||
'discount_percent' => 'Percent',
|
||||
'discount_amount' => 'Amount',
|
||||
|
||||
'invoice_history' => 'Invoice History',
|
||||
'quote_history' => 'Quote History',
|
||||
'current_version' => 'Current version',
|
||||
'select_versiony' => 'Select version',
|
||||
'view_history' => 'View History',
|
||||
|
||||
|
||||
);
|
||||
|
@ -494,6 +494,11 @@ return array(
|
||||
'discount_percent' => 'Percent',
|
||||
'discount_amount' => 'Amount',
|
||||
|
||||
'invoice_history' => 'Invoice History',
|
||||
'quote_history' => 'Quote History',
|
||||
'current_version' => 'Current version',
|
||||
'select_versiony' => 'Select version',
|
||||
'view_history' => 'View History',
|
||||
|
||||
);
|
||||
|
||||
|
@ -492,6 +492,12 @@ return array(
|
||||
'discount_percent' => 'Percent',
|
||||
'discount_amount' => 'Amount',
|
||||
|
||||
'invoice_history' => 'Invoice History',
|
||||
'quote_history' => 'Quote History',
|
||||
'current_version' => 'Current version',
|
||||
'select_versiony' => 'Select version',
|
||||
'view_history' => 'View History',
|
||||
|
||||
|
||||
|
||||
);
|
@ -487,6 +487,12 @@ return array(
|
||||
'discount_percent' => 'Percent',
|
||||
'discount_amount' => 'Amount',
|
||||
|
||||
'invoice_history' => 'Invoice History',
|
||||
'quote_history' => 'Quote History',
|
||||
'current_version' => 'Current version',
|
||||
'select_versiony' => 'Select version',
|
||||
'view_history' => 'View History',
|
||||
|
||||
|
||||
|
||||
);
|
@ -474,6 +474,11 @@ return array(
|
||||
'discount_percent' => 'Percent',
|
||||
'discount_amount' => 'Amount',
|
||||
|
||||
'invoice_history' => 'Invoice History',
|
||||
'quote_history' => 'Quote History',
|
||||
'current_version' => 'Current version',
|
||||
'select_versiony' => 'Select version',
|
||||
'view_history' => 'View History',
|
||||
|
||||
|
||||
|
||||
|
@ -24,9 +24,9 @@
|
||||
<p> </p>
|
||||
|
||||
@if ($invoice->client->account->isGatewayConfigured() && !$invoice->isPaid() && !$invoice->is_recurring)
|
||||
<div class="pull-right" style="width:270px">
|
||||
{{ Button::normal(trans('texts.download_pdf'), array('onclick' => 'onDownloadClick()', 'class' => 'btn-lg')) }}
|
||||
{{ Button::success_link(URL::to('payment/' . $invitation->invitation_key), trans('texts.pay_now'), array('class' => 'btn-lg pull-right')) }}
|
||||
<div class="pull-right" style="text-align:right">
|
||||
{{ Button::normal(trans('texts.download_pdf'), array('onclick' => 'onDownloadClick()', 'class' => 'btn-lg')) }}
|
||||
{{ Button::success_link(URL::to('payment/' . $invitation->invitation_key), trans('texts.pay_now'), array('class' => 'btn-lg')) }}
|
||||
</div>
|
||||
@else
|
||||
<div class="pull-right">
|
||||
@ -55,7 +55,8 @@
|
||||
|
||||
function onDownloadClick() {
|
||||
var doc = generatePDF(invoice, invoice.invoice_design.javascript, true);
|
||||
doc.save('Invoice-' + invoice.invoice_number + '.pdf');
|
||||
var fileName = invoice.is_quote ? invoiceLabels.quote : invoiceLabels.invoice;
|
||||
doc.save(fileName + '-' + invoice.invoice_number + '.pdf');
|
||||
}
|
||||
|
||||
|
||||
|
@ -1386,6 +1386,12 @@ table.compare-table-paid th {
|
||||
}
|
||||
}
|
||||
|
||||
/* Hide bootstrap sort header icons */
|
||||
table.table thead .sorting:after { content: '' !important }
|
||||
table.table thead .sorting_asc:after { content: '' !important }
|
||||
table.table thead .sorting_desc:after { content: '' !important}
|
||||
table.table thead .sorting_asc_disabled:after { content: '' !important }
|
||||
table.table thead .sorting_desc_disabled:after { content: '' !important }
|
||||
/*
|
||||
* Table styles
|
||||
*/
|
||||
|
@ -1369,3 +1369,10 @@ table.compare-table-paid th {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Hide bootstrap sort header icons */
|
||||
table.table thead .sorting:after { content: '' !important }
|
||||
table.table thead .sorting_asc:after { content: '' !important }
|
||||
table.table thead .sorting_desc:after { content: '' !important}
|
||||
table.table thead .sorting_asc_disabled:after { content: '' !important }
|
||||
table.table thead .sorting_desc_disabled:after { content: '' !important }
|
0
public/logo/.gitkeep
Normal file → Executable file
0
public/logo/.gitkeep
Normal file → Executable file
0
public/logo/zg4ylmzDkdkPOT8yoKQw9LTWaoZJx79h.jpg
Normal file → Executable file
0
public/logo/zg4ylmzDkdkPOT8yoKQw9LTWaoZJx79h.jpg
Normal file → Executable file
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Loading…
x
Reference in New Issue
Block a user