mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
e247fc53e2
2
.gitignore
vendored
2
.gitignore
vendored
@ -14,8 +14,6 @@
|
|||||||
/composer.lock
|
/composer.lock
|
||||||
/.DS_Store
|
/.DS_Store
|
||||||
/Thumbs.db
|
/Thumbs.db
|
||||||
/app.yaml
|
|
||||||
/database.sql
|
|
||||||
/ninja.sublime-project
|
/ninja.sublime-project
|
||||||
/ninja.sublime-workspace
|
/ninja.sublime-workspace
|
||||||
/tests/_log
|
/tests/_log
|
||||||
|
@ -66,4 +66,3 @@ Configure config/database.php and then initialize the database
|
|||||||
* [nnnick/Chart.js](https://github.com/nnnick/Chart.js) - Simple HTML5 Charts using the <canvas> tag
|
* [nnnick/Chart.js](https://github.com/nnnick/Chart.js) - Simple HTML5 Charts using the <canvas> tag
|
||||||
* [josscrowcroft/accounting.js](https://github.com/josscrowcroft/accounting.js) - A lightweight JavaScript library for number, money and currency formatting
|
* [josscrowcroft/accounting.js](https://github.com/josscrowcroft/accounting.js) - A lightweight JavaScript library for number, money and currency formatting
|
||||||
* [jashkenas/underscore](https://github.com/jashkenas/underscore) - JavaScript's utility _ belt
|
* [jashkenas/underscore](https://github.com/jashkenas/underscore) - JavaScript's utility _ belt
|
||||||
* [davejamesmiller/laravel-breadcrumbs](https://github.com/davejamesmiller/laravel-breadcrumbs) - A simple Laravel-style way to create breadcrumbs in Laravel 4
|
|
@ -70,7 +70,7 @@ return array(
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'email_reset_password' => 'confide::emails.passwordreset', // with $user and $token.
|
'email_reset_password' => 'emails.passwordreset_html', // with $user and $token.
|
||||||
'email_account_confirmation' => 'emails.confirm_html', // with $user
|
'email_account_confirmation' => 'emails.confirm_html', // with $user
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -4,12 +4,12 @@ class Credit extends EntityModel
|
|||||||
{
|
{
|
||||||
public function invoice()
|
public function invoice()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('Invoice');
|
return $this->belongsTo('Invoice')->withTrashed();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function client()
|
public function client()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('Client');
|
return $this->belongsTo('Client')->withTrashed();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName()
|
public function getName()
|
||||||
|
@ -9,7 +9,7 @@ class Invoice extends EntityModel
|
|||||||
|
|
||||||
public function client()
|
public function client()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('Client');
|
return $this->belongsTo('Client')->withTrashed();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function invoice_items()
|
public function invoice_items()
|
||||||
|
@ -4,7 +4,7 @@ class Payment extends EntityModel
|
|||||||
{
|
{
|
||||||
public function invoice()
|
public function invoice()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('Invoice');
|
return $this->belongsTo('Invoice')->withTrashed();;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function invitation()
|
public function invitation()
|
||||||
@ -14,7 +14,7 @@ class Payment extends EntityModel
|
|||||||
|
|
||||||
public function client()
|
public function client()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('Client');
|
return $this->belongsTo('Client')->withTrashed();;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function account()
|
public function account()
|
||||||
|
@ -11,7 +11,9 @@ abstract class Mailer {
|
|||||||
'emails.'.$view.'_text'
|
'emails.'.$view.'_text'
|
||||||
];
|
];
|
||||||
|
|
||||||
Mail::queue($views, $data, function($message) use ($toEmail, $fromEmail, $subject)
|
$view = 'emails.' . $view;
|
||||||
|
|
||||||
|
Mail::queue($view, $data, function($message) use ($toEmail, $fromEmail, $subject)
|
||||||
{
|
{
|
||||||
$message->to($toEmail)->replyTo($fromEmail)->subject($subject);
|
$message->to($toEmail)->replyTo($fromEmail)->subject($subject);
|
||||||
});
|
});
|
||||||
|
@ -132,7 +132,7 @@
|
|||||||
<div class="in-thin in-white">{{ Utils::pluralize('active client', $activeClients) }}</div>
|
<div class="in-thin in-white">{{ Utils::pluralize('active client', $activeClients) }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6 average-invoice">
|
<div class="col-md-6 average-invoice">
|
||||||
<div><b>average invoice</b></div>
|
<div><b>Average invoice</b></div>
|
||||||
<div class="in-bold in-white" style="font-size:42px">{{ $invoiceAvg }}</div>
|
<div class="in-bold in-white" style="font-size:42px">{{ $invoiceAvg }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
{{ $link }}<p/>
|
{{ $link }}<p/>
|
||||||
|
|
||||||
@if ($emailFooter)
|
@if ($emailFooter)
|
||||||
{{ $emailFooter }}
|
{{ nl2br($emailFooter) }}
|
||||||
@else
|
@else
|
||||||
Best regards,<br/>
|
Best regards,<br/>
|
||||||
{{ $accountName }}
|
{{ $accountName }}
|
||||||
|
8
app/views/emails/passwordreset_html.blade.php
Normal file
8
app/views/emails/passwordreset_html.blade.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
Hi there! {{ $user->username }}<p/>
|
||||||
|
|
||||||
|
You can reset your account password by clicking the following link {{{ (Confide::checkAction('UserController@reset_password', array($token))) ? : URL::to('user/reset/'.$token) }}}<p/>
|
||||||
|
|
||||||
|
Regards, <br/>
|
||||||
|
The InvoiceNinja Team <p/>
|
||||||
|
|
||||||
|
If you did not request this password reset please email our support: admin@invoiceninja.com <p/>
|
@ -10,7 +10,7 @@
|
|||||||
Thank you for your payment of {{ $paymentAmount }}.<p/>
|
Thank you for your payment of {{ $paymentAmount }}.<p/>
|
||||||
|
|
||||||
@if ($emailFooter)
|
@if ($emailFooter)
|
||||||
{{ $emailFooter }}
|
{{ nl2br($emailFooter) }}
|
||||||
@else
|
@else
|
||||||
Best regards,<br/>
|
Best regards,<br/>
|
||||||
{{ $accountName }}
|
{{ $accountName }}
|
||||||
|
@ -209,7 +209,7 @@
|
|||||||
|
|
||||||
{{ Button::normal('Download PDF', array('onclick' => 'onDownloadClick()')) }}
|
{{ Button::normal('Download PDF', array('onclick' => 'onDownloadClick()')) }}
|
||||||
|
|
||||||
@if (!$invoice || !$invoice->trashed())
|
@if (!$invoice || (!$invoice->trashed() && !$invoice->client->trashed()))
|
||||||
@if ($invoice)
|
@if ($invoice)
|
||||||
|
|
||||||
<div id="primaryActions" style="text-align:left" data-bind="css: $root.enable.save" class="btn-group">
|
<div id="primaryActions" style="text-align:left" data-bind="css: $root.enable.save" class="btn-group">
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
@section('head')
|
@section('head')
|
||||||
|
|
||||||
|
<link href="{{ asset('vendor/bootstrap/dist/css/bootstrap.min.css') }}" rel="stylesheet" type="text/css"/>
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body {
|
body {
|
||||||
padding-top: 40px;
|
padding-top: 40px;
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
@section('head')
|
@section('head')
|
||||||
|
|
||||||
|
<link href="{{ asset('vendor/bootstrap/dist/css/bootstrap.min.css') }}" rel="stylesheet" type="text/css"/>
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body {
|
body {
|
||||||
padding-top: 40px;
|
padding-top: 40px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user