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
7364dcf8fc
commit
7b6e2086eb
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,6 +18,7 @@
|
|||||||
/ninja.sublime-workspace
|
/ninja.sublime-workspace
|
||||||
/tests/_log
|
/tests/_log
|
||||||
.env.development.php
|
.env.development.php
|
||||||
|
.env.php
|
||||||
.idea
|
.idea
|
||||||
.project
|
.project
|
||||||
/nbproject/private/
|
/nbproject/private/
|
@ -64,7 +64,7 @@ class AccountController extends \BaseController
|
|||||||
Auth::login($user, true);
|
Auth::login($user, true);
|
||||||
Event::fire('user.login');
|
Event::fire('user.login');
|
||||||
|
|
||||||
return Redirect::to('invoices/create');
|
return Redirect::to('invoices/create')->with('sign_up', Input::get('sign_up'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function enableProPlan()
|
public function enableProPlan()
|
||||||
|
@ -16,6 +16,9 @@ class DashboardController extends \BaseController
|
|||||||
->leftJoin('invoices', 'clients.id', '=', 'invoices.client_id')
|
->leftJoin('invoices', 'clients.id', '=', 'invoices.client_id')
|
||||||
->where('accounts.id', '=', Auth::user()->account_id)
|
->where('accounts.id', '=', Auth::user()->account_id)
|
||||||
->where('clients.is_deleted', '=', false)
|
->where('clients.is_deleted', '=', false)
|
||||||
|
->where('invoices.is_deleted', '=', false)
|
||||||
|
->where('invoices.is_recurring', '=', false)
|
||||||
|
->where('invoices.is_quote', '=', false)
|
||||||
->groupBy('accounts.id')
|
->groupBy('accounts.id')
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ class HomeController extends BaseController
|
|||||||
public function invoiceNow()
|
public function invoiceNow()
|
||||||
{
|
{
|
||||||
if (Auth::check()) {
|
if (Auth::check()) {
|
||||||
return Redirect::to('invoices/create');
|
return Redirect::to('invoices/create')->with('sign_up', Input::get('sign_up'));
|
||||||
} else {
|
} else {
|
||||||
return View::make('public.header', ['invoiceNow' => true]);
|
return View::make('public.header', ['invoiceNow' => true]);
|
||||||
}
|
}
|
||||||
|
@ -587,6 +587,8 @@ Want something changed? We're {{ link_to('https://github.com/hillelcoren/invoice
|
|||||||
@if (Auth::check() && !Utils::isNinja() && !Auth::user()->registered)
|
@if (Auth::check() && !Utils::isNinja() && !Auth::user()->registered)
|
||||||
$('#closeSignUpButton').hide();
|
$('#closeSignUpButton').hide();
|
||||||
showSignUp();
|
showSignUp();
|
||||||
|
@elseif(Session::get('sign_up') || Input::get('sign_up'))
|
||||||
|
showSignUp();
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@yield('onReady')
|
@yield('onReady')
|
||||||
|
@ -51,6 +51,7 @@
|
|||||||
|
|
||||||
{{ Form::open(array('url' => 'get_started', 'id' => 'startForm')) }}
|
{{ Form::open(array('url' => 'get_started', 'id' => 'startForm')) }}
|
||||||
{{ Form::hidden('guest_key') }}
|
{{ Form::hidden('guest_key') }}
|
||||||
|
{{ Form::hidden('sign_up', Input::get('sign_up')) }}
|
||||||
{{ Form::close() }}
|
{{ Form::close() }}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -2879,3 +2879,18 @@ box-shadow: 0px 0px 15px 0px rgba(0, 5, 5, 0.2);
|
|||||||
.plans-table .cell .cta {margin-bottom: 0 !important;}
|
.plans-table .cell .cta {margin-bottom: 0 !important;}
|
||||||
.plans-table .pro {margin-top: 40px;}
|
.plans-table .pro {margin-top: 40px;}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* https://github.com/twbs/bootstrap/issues/13984 */
|
||||||
|
.radio input[type="radio"],
|
||||||
|
.checkbox input[type="checkbox"] {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 5px;
|
||||||
|
height: inherit;
|
||||||
|
width: inherit;
|
||||||
|
/* bootstrap 3.2.0 fix */
|
||||||
|
float: left;
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
margin-top: 3px;
|
||||||
|
min-height: 30px;
|
||||||
|
}
|
@ -771,3 +771,18 @@ box-shadow: 0px 0px 15px 0px rgba(0, 5, 5, 0.2);
|
|||||||
.plans-table .cell .cta {margin-bottom: 0 !important;}
|
.plans-table .cell .cta {margin-bottom: 0 !important;}
|
||||||
.plans-table .pro {margin-top: 40px;}
|
.plans-table .pro {margin-top: 40px;}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* https://github.com/twbs/bootstrap/issues/13984 */
|
||||||
|
.radio input[type="radio"],
|
||||||
|
.checkbox input[type="checkbox"] {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 5px;
|
||||||
|
height: inherit;
|
||||||
|
width: inherit;
|
||||||
|
/* bootstrap 3.2.0 fix */
|
||||||
|
float: left;
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
margin-top: 3px;
|
||||||
|
min-height: 30px;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user