mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Bug fixes
This commit is contained in:
parent
ada7246b2b
commit
a787427688
9
.env.development.php
Normal file
9
.env.development.php
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return array(
|
||||||
|
|
||||||
|
//'DISABLE_REGISTRATION' => true,
|
||||||
|
//'TAG_MANAGER_KEY' => '',
|
||||||
|
//'ANALYTICS_KEY' => '',
|
||||||
|
|
||||||
|
);
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,7 +11,6 @@
|
|||||||
/bootstrap/compiled.php
|
/bootstrap/compiled.php
|
||||||
/bootstrap/environment.php
|
/bootstrap/environment.php
|
||||||
/vendor
|
/vendor
|
||||||
/.env.development.php
|
|
||||||
/.DS_Store
|
/.DS_Store
|
||||||
/Thumbs.db
|
/Thumbs.db
|
||||||
/ninja.sublime-project
|
/ninja.sublime-project
|
||||||
|
@ -21,6 +21,11 @@ class AccountController extends \BaseController {
|
|||||||
|
|
||||||
public function getStarted()
|
public function getStarted()
|
||||||
{
|
{
|
||||||
|
if (Utils::isRegistrationDisabled())
|
||||||
|
{
|
||||||
|
return Redirect::away(NINJA_URL.'/invoice_now');
|
||||||
|
}
|
||||||
|
|
||||||
if (Auth::check())
|
if (Auth::check())
|
||||||
{
|
{
|
||||||
return Redirect::to('invoices/create');
|
return Redirect::to('invoices/create');
|
||||||
|
@ -76,12 +76,10 @@ class HomeController extends BaseController {
|
|||||||
$message = Input::get('message');
|
$message = Input::get('message');
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'name' => $name,
|
|
||||||
'email' => $email,
|
|
||||||
'text' => $message
|
'text' => $message
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->mailer->sendTo(CONTACT_EMAIL, CONTACT_EMAIL, CONTACT_NAME, 'Invoice Ninja Feedback', 'contact', $data);
|
$this->mailer->sendTo(CONTACT_EMAIL, $email, $name, 'Invoice Ninja Feedback', 'contact', $data);
|
||||||
|
|
||||||
$message = trans('texts.sent_message');
|
$message = trans('texts.sent_message');
|
||||||
Session::flash('message', $message);
|
Session::flash('message', $message);
|
||||||
|
@ -152,6 +152,7 @@ class InvoiceController extends \BaseController {
|
|||||||
{
|
{
|
||||||
$invoice->id = null;
|
$invoice->id = null;
|
||||||
$invoice->invoice_number = Auth::user()->account->getNextInvoiceNumber();
|
$invoice->invoice_number = Auth::user()->account->getNextInvoiceNumber();
|
||||||
|
$invoice->balance = $invoice->amount;
|
||||||
$method = 'POST';
|
$method = 'POST';
|
||||||
$url = "{$entityType}s";
|
$url = "{$entityType}s";
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,11 @@ class Utils
|
|||||||
return isset($_ENV['NINJA_DEV']) && $_ENV['NINJA_DEV'];
|
return isset($_ENV['NINJA_DEV']) && $_ENV['NINJA_DEV'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function isRegistrationDisabled()
|
||||||
|
{
|
||||||
|
return isset($_ENV['DISABLE_REGISTRATION']) && $_ENV['DISABLE_REGISTRATION'];
|
||||||
|
}
|
||||||
|
|
||||||
public static function isPro()
|
public static function isPro()
|
||||||
{
|
{
|
||||||
return Auth::check() && Auth::user()->isPro();
|
return Auth::check() && Auth::user()->isPro();
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
$clientSelect.combobox();
|
$clientSelect.combobox();
|
||||||
|
|
||||||
$('#currency_id').combobox();
|
$('#currency_id').combobox();
|
||||||
$('#credit_date').datepicker('update', new Date({{ strtotime(Utils::today()) * 1000 }}));
|
$('#credit_date').datepicker('update', new Date());
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,3 +1 @@
|
|||||||
Name: {{ $name }}<br/>
|
{{ nl2br($text) }}
|
||||||
Email: {{ $email }}<p/>
|
|
||||||
Message: {{ nl2br($text) }}
|
|
||||||
|
@ -1,4 +1 @@
|
|||||||
Name: {{ $name }}
|
{{ $text }}
|
||||||
Email: {{ $email }}
|
|
||||||
|
|
||||||
Message: {{ $text }}
|
|
@ -8,7 +8,7 @@
|
|||||||
{{ $clientName }},<p/>
|
{{ $clientName }},<p/>
|
||||||
|
|
||||||
{{ trans("texts.{$entityType}_message", ['amount' => $invoiceAmount]) }}<p/>
|
{{ trans("texts.{$entityType}_message", ['amount' => $invoiceAmount]) }}<p/>
|
||||||
{{ $link }}<p/>
|
<a href="{{ $link }}">{{ $link }}</a><p/>
|
||||||
|
|
||||||
@if ($emailFooter)
|
@if ($emailFooter)
|
||||||
{{ nl2br($emailFooter) }}
|
{{ nl2br($emailFooter) }}
|
||||||
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
@if ($showNinjaFooter)
|
@if ($showNinjaFooter)
|
||||||
<p/>
|
<p/>
|
||||||
{{ trans('texts.ninja_email_footer', ['site' => '<a href="https://www.invoiceninja.com/?utm_source=view_email_footer">Invoice Ninja</a>']) }}
|
{{ trans('texts.ninja_email_footer', ['site' => '<a href="https://www.invoiceninja.com/?utm_source=invoice_email_footer">Invoice Ninja</a>']) }}
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
{{ trans("texts.notification_{$entityType}_paid", ['amount' => $paymentAmount, 'client' => $clientName, 'invoice' => $invoiceNumber]) }} <p/>
|
{{ trans("texts.notification_{$entityType}_paid", ['amount' => $paymentAmount, 'client' => $clientName, 'invoice' => $invoiceNumber]) }} <p/>
|
||||||
|
|
||||||
{{ trans("texts.{$entityType}_link_message") }} <br/>
|
{{ trans("texts.{$entityType}_link_message") }} <br/>
|
||||||
{{ $invoiceLink }} <p/>
|
<a href="{{ $invoiceLink }}">{{ $invoiceLink }}</a><p/>
|
||||||
|
|
||||||
{{ trans('texts.email_signature') }} <br/>
|
{{ trans('texts.email_signature') }} <br/>
|
||||||
{{ trans('texts.email_from') }} <p/>
|
{{ trans('texts.email_from') }} <p/>
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
populateInvoiceComboboxes({{ $clientPublicId }}, {{ $invoicePublicId }});
|
populateInvoiceComboboxes({{ $clientPublicId }}, {{ $invoicePublicId }});
|
||||||
|
|
||||||
$('#payment_type_id').combobox();
|
$('#payment_type_id').combobox();
|
||||||
$('#payment_date').datepicker('update', new Date({{ strtotime(Utils::today()) * 1000 }}));
|
$('#payment_date').datepicker('update', new Date());
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
4
bootstrap/environment.default.php
Executable file
4
bootstrap/environment.default.php
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return 'development';
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user