Bug fixes

This commit is contained in:
Hillel Coren 2015-01-22 11:23:52 +02:00
parent 7364dcf8fc
commit 7b6e2086eb
8 changed files with 39 additions and 2 deletions

1
.gitignore vendored
View File

@ -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/

View File

@ -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()

View File

@ -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();

View File

@ -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]);
} }

View File

@ -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')

View File

@ -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>

View File

@ -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;
}

View File

@ -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;
}