mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-18 00:53:10 +01:00
bug fixes
This commit is contained in:
parent
2b4245a64f
commit
19e95c854c
@ -47,7 +47,7 @@ class ClientController extends \BaseController {
|
|||||||
->addColumn('checkbox', function($model) { return '<input type="checkbox" name="ids[]" value="' . $model->public_id . '">'; })
|
->addColumn('checkbox', function($model) { return '<input type="checkbox" name="ids[]" value="' . $model->public_id . '">'; })
|
||||||
->addColumn('name', function($model) { return link_to('clients/' . $model->public_id, $model->name); })
|
->addColumn('name', function($model) { return link_to('clients/' . $model->public_id, $model->name); })
|
||||||
->addColumn('first_name', function($model) { return $model->first_name . ' ' . $model->last_name; })
|
->addColumn('first_name', function($model) { return $model->first_name . ' ' . $model->last_name; })
|
||||||
->addColumn('created_at', function($model) { return Utils::timestampToDateString($model->created_at); })
|
->addColumn('created_at', function($model) { return Utils::timestampToDateString(strtotime($model->created_at)); })
|
||||||
->addColumn('email', function($model) { return $model->email ? HTML::mailto($model->email, $model->email) : ''; })
|
->addColumn('email', function($model) { return $model->email ? HTML::mailto($model->email, $model->email) : ''; })
|
||||||
->addColumn('work_phone', function($model) { return Utils::formatPhoneNumber($model->work_phone); })
|
->addColumn('work_phone', function($model) { return Utils::formatPhoneNumber($model->work_phone); })
|
||||||
->addColumn('last_login', function($model) { return Utils::timestampToDateString($model->last_login); })
|
->addColumn('last_login', function($model) { return Utils::timestampToDateString($model->last_login); })
|
||||||
|
@ -194,7 +194,7 @@ class ConfideSetupUsersTable extends Migration {
|
|||||||
$t->text('notes');
|
$t->text('notes');
|
||||||
$t->decimal('balance', 10, 2);
|
$t->decimal('balance', 10, 2);
|
||||||
$t->decimal('paid_to_date', 10, 2);
|
$t->decimal('paid_to_date', 10, 2);
|
||||||
$t->timestamp('last_login');
|
$t->timestamp('last_login')->nullable();
|
||||||
$t->string('website');
|
$t->string('website');
|
||||||
$t->unsignedInteger('client_industry_id')->nullable();
|
$t->unsignedInteger('client_industry_id')->nullable();
|
||||||
$t->unsignedInteger('client_size_id')->nullable();
|
$t->unsignedInteger('client_size_id')->nullable();
|
||||||
|
@ -72,6 +72,9 @@ class Utils
|
|||||||
|
|
||||||
public static function timestampToString($timestamp, $timezone = false, $format)
|
public static function timestampToString($timestamp, $timezone = false, $format)
|
||||||
{
|
{
|
||||||
|
if (!$timestamp) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
$date = Carbon::createFromTimeStamp($timestamp);
|
$date = Carbon::createFromTimeStamp($timestamp);
|
||||||
if ($timezone) {
|
if ($timezone) {
|
||||||
$date->tz = $timezone;
|
$date->tz = $timezone;
|
||||||
|
@ -15,9 +15,11 @@
|
|||||||
//dd(Client::getPrivateId(1));
|
//dd(Client::getPrivateId(1));
|
||||||
//dd(new DateTime());
|
//dd(new DateTime());
|
||||||
//Event::fire('user.signup');
|
//Event::fire('user.signup');
|
||||||
|
//dd(App::environment());
|
||||||
|
|
||||||
include(app_path().'/libraries/utils.php'); // TODO_FIX
|
|
||||||
include(app_path().'/handlers/UserEventHandler.php'); // TODO_FIX
|
include_once(app_path().'/libraries/utils.php'); // TODO_FIX
|
||||||
|
include_once(app_path().'/handlers/UserEventHandler.php'); // TODO_FIX
|
||||||
|
|
||||||
Route::get('/send_emails', function() {
|
Route::get('/send_emails', function() {
|
||||||
Artisan::call('ninja:send-invoices');
|
Artisan::call('ninja:send-invoices');
|
||||||
|
@ -39,9 +39,11 @@
|
|||||||
}
|
}
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
/*
|
||||||
body > div.container {
|
body > div.container {
|
||||||
min-height: 600px;
|
min-height: 600px;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
label.checkbox,
|
label.checkbox,
|
||||||
label.control-label {
|
label.control-label {
|
||||||
@ -230,7 +232,33 @@
|
|||||||
<p/>
|
<p/>
|
||||||
<div>
|
<div>
|
||||||
<a href="{{ URL::to('/') }}" style="font-size:30px;color:black">Invoice Ninja</a>
|
<a href="{{ URL::to('/') }}" style="font-size:30px;color:black">Invoice Ninja</a>
|
||||||
<div style="float:right">
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p style="clear: both"/>
|
||||||
|
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
|
||||||
|
|
||||||
|
<div class="navbar-header">
|
||||||
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1">
|
||||||
|
<span class="sr-only">Toggle navigation</span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
</button>
|
||||||
|
{{ link_to('/', 'Invoice Ninja', array('class'=>'navbar-brand')) }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="collapse navbar-collapse" id="navbar-collapse-1">
|
||||||
|
<ul class="nav navbar-nav" style="font-weight: bold">
|
||||||
|
{{-- HTML::nav_link('home', 'Home') --}}
|
||||||
|
{{ HTML::menu_link('client') }}
|
||||||
|
{{ HTML::menu_link('invoice') }}
|
||||||
|
{{ HTML::menu_link('payment') }}
|
||||||
|
{{ HTML::menu_link('credit') }}
|
||||||
|
{{ HTML::nav_link('reports', 'Reports') }}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="navbar-form navbar-right">
|
||||||
@if (Auth::check() && Auth::user()->registered)
|
@if (Auth::check() && Auth::user()->registered)
|
||||||
{{ Auth::user()->email }}
|
{{ Auth::user()->email }}
|
||||||
@else
|
@else
|
||||||
@ -251,30 +279,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<p style="clear: both"/>
|
|
||||||
<nav class="navbar navbar-default" role="navigation">
|
|
||||||
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<!-- <a class="navbar-brand" href="#">Invoice Ninja</a> -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="navbar-collapse-1">
|
|
||||||
<ul class="nav navbar-nav" style="font-weight: bold">
|
|
||||||
{{-- HTML::nav_link('home', 'Home') --}}
|
|
||||||
{{ HTML::menu_link('client') }}
|
|
||||||
{{ HTML::menu_link('invoice') }}
|
|
||||||
{{ HTML::menu_link('payment') }}
|
|
||||||
{{ HTML::menu_link('credit') }}
|
|
||||||
{{ HTML::nav_link('reports', 'Reports') }}
|
|
||||||
</ul>
|
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Recently Viewed <b class="caret"></b></a>
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Recently Viewed <b class="caret"></b></a>
|
||||||
@ -294,6 +299,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div><!-- /.navbar-collapse -->
|
</div><!-- /.navbar-collapse -->
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
)); }}
|
)); }}
|
||||||
|
|
||||||
<div class="row" style="min-height:195px" onkeypress="formEnterClick(event)">
|
<div class="row" style="min-height:195px" onkeypress="formEnterClick(event)">
|
||||||
<div class="col-md-7" id="col_1">
|
<div class="col-md-5" id="col_1">
|
||||||
{{ Former::select('client')->addOption('', '')->fromQuery($clients, 'name', 'public_id')->data_bind("dropdown: client")
|
{{ Former::select('client')->addOption('', '')->fromQuery($clients, 'name', 'public_id')->data_bind("dropdown: client")
|
||||||
->addGroupClass('client_select closer-row') }}
|
->addGroupClass('client_select closer-row') }}
|
||||||
|
|
||||||
@ -37,23 +37,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ Former::text('discount')->data_bind("value: discount, valueUpdate: 'afterkeydown'") }}
|
|
||||||
{{ Former::textarea('terms')->data_bind("value: wrapped_terms, valueUpdate: 'afterkeydown'") }}
|
{{ Former::textarea('terms')->data_bind("value: wrapped_terms, valueUpdate: 'afterkeydown'") }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4" id="col_2">
|
<div class="col-md-4" id="col_2">
|
||||||
<div data-bind="visible: invoice_status_id() < CONSTS.INVOICE_STATUS_SENT">
|
|
||||||
{{ Former::checkbox('recurring')->text('Enable | <a href="#">Learn more</a>')->data_bind("checked: is_recurring")
|
|
||||||
->inlineHelp($invoice && $invoice->last_sent_date ? 'Last invoice sent ' . Utils::timestampToDateString($invoice->last_sent_date) : '') }}
|
|
||||||
</div>
|
|
||||||
@if ($invoice && $invoice->recurring_invoice_id)
|
|
||||||
<div style="padding-top: 6px">
|
|
||||||
Created by a {{ link_to('/invoices/'.$invoice->recurring_invoice_id, 'recurring invoice') }}
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
<div data-bind="visible: !is_recurring()">
|
<div data-bind="visible: !is_recurring()">
|
||||||
{{ Former::text('invoice_number')->label('Invoice #')->data_bind("value: invoice_number, valueUpdate: 'afterkeydown'") }}
|
{{ Former::text('invoice_number')->label('Invoice #')->data_bind("value: invoice_number, valueUpdate: 'afterkeydown'") }}
|
||||||
{{ Former::text('po_number')->label('PO number')->data_bind("value: po_number, valueUpdate: 'afterkeydown'") }}
|
|
||||||
{{ Former::text('invoice_date')->data_bind("value: invoice_date, valueUpdate: 'afterkeydown'") }}
|
{{ Former::text('invoice_date')->data_bind("value: invoice_date, valueUpdate: 'afterkeydown'") }}
|
||||||
{{ Former::text('due_date')->data_bind("value: due_date, valueUpdate: 'afterkeydown'") }}
|
{{ Former::text('due_date')->data_bind("value: due_date, valueUpdate: 'afterkeydown'") }}
|
||||||
|
|
||||||
@ -64,8 +53,22 @@
|
|||||||
{{ Former::text('start_date')->data_bind("value: start_date, valueUpdate: 'afterkeydown'") }}
|
{{ Former::text('start_date')->data_bind("value: start_date, valueUpdate: 'afterkeydown'") }}
|
||||||
{{ Former::text('end_date')->data_bind("value: end_date, valueUpdate: 'afterkeydown'") }}
|
{{ Former::text('end_date')->data_bind("value: end_date, valueUpdate: 'afterkeydown'") }}
|
||||||
</div>
|
</div>
|
||||||
|
<div data-bind="visible: invoice_status_id() < CONSTS.INVOICE_STATUS_SENT">
|
||||||
|
{{ Former::checkbox('recurring')->text('Enable | <a href="#">Learn more</a>')->data_bind("checked: is_recurring")
|
||||||
|
->inlineHelp($invoice && $invoice->last_sent_date ? 'Last invoice sent ' . Utils::timestampToDateString($invoice->last_sent_date) : '') }}
|
||||||
|
</div>
|
||||||
|
@if ($invoice && $invoice->recurring_invoice_id)
|
||||||
|
<div style="padding-top: 6px">
|
||||||
|
Created by a {{ link_to('/invoices/'.$invoice->recurring_invoice_id, 'recurring invoice') }}
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3" id="col_2">
|
||||||
|
{{ Former::text('po_number')->label('PO number')->data_bind("value: po_number, valueUpdate: 'afterkeydown'") }}
|
||||||
|
{{ Former::text('discount')->data_bind("value: discount, valueUpdate: 'afterkeydown'") }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p> </p>
|
<p> </p>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
<a class="navbar-brand" href="#">Invoice Ninja</a>
|
<!-- <a class="navbar-brand" href="#">Invoice Ninja</a> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="navbar-collapse collapse">
|
<div class="navbar-collapse collapse">
|
||||||
{{ Form::open(array('url' => 'login', 'class' => 'navbar-form navbar-right')) }}
|
{{ Form::open(array('url' => 'login', 'class' => 'navbar-form navbar-right')) }}
|
||||||
|
@ -28,7 +28,7 @@ $app->redirectIfTrailingSlash();
|
|||||||
|
|
||||||
$env = $app->detectEnvironment(array(
|
$env = $app->detectEnvironment(array(
|
||||||
|
|
||||||
'development' => array('precise64'),
|
'development' => array('precise64', 'ubuntu-server-12042-x64-vbox4210'),
|
||||||
'staging' => array('host107.hostmonster.com')
|
'staging' => array('host107.hostmonster.com')
|
||||||
));
|
));
|
||||||
|
|
||||||
|
2
public/packages/barryvdh/laravel-debugbar/vendor/jquery/jquery.min.js
vendored
Executable file
2
public/packages/barryvdh/laravel-debugbar/vendor/jquery/jquery.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user