mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge branch 'master' of https://github.com/hillelcoren/invoice-ninja
Merged from parent.
This commit is contained in:
commit
7c39574720
@ -29,7 +29,7 @@ App::before(function($request)
|
||||
}
|
||||
else if (Auth::check())
|
||||
{
|
||||
$locale = Session::get(SESSION_LOCALE, DEFUALT_LOCALE);
|
||||
$locale = Session::get(SESSION_LOCALE, DEFAULT_LOCALE);
|
||||
App::setLocale($locale);
|
||||
}
|
||||
});
|
||||
|
@ -291,7 +291,7 @@ return array(
|
||||
|
||||
// Pro Plan
|
||||
'pro_plan' => [
|
||||
'remove_logo' => ':link to remove the Invoice Ninja logo by joining the pro plan',
|
||||
'remove_logo' => ':link to remove the Invoice Ninja logo by joining the Pro Plan',
|
||||
'remove_logo_link' => 'Click here',
|
||||
],
|
||||
|
||||
|
@ -145,7 +145,7 @@ return array(
|
||||
'status' => 'Stato',
|
||||
'invoice_total' => 'Totale Fattura',
|
||||
'frequency' => 'Frequenza',
|
||||
'start_date' => 'Daata Inizio',
|
||||
'start_date' => 'Data Inizio',
|
||||
'end_date' => 'Data Fine',
|
||||
'transaction_reference' => 'Riferimento Transazione',
|
||||
'method' => 'Metodo',
|
||||
|
@ -178,7 +178,7 @@ class Account extends Eloquent
|
||||
Session::put(SESSION_DATE_PICKER_FORMAT, $this->date_format ? $this->date_format->picker_format : DEFAULT_DATE_PICKER_FORMAT);
|
||||
Session::put(SESSION_DATETIME_FORMAT, $this->datetime_format ? $this->datetime_format->format : DEFAULT_DATETIME_FORMAT);
|
||||
Session::put(SESSION_CURRENCY, $this->currency_id ? $this->currency_id : DEFAULT_CURRENCY);
|
||||
Session::put(SESSION_LOCALE, $this->language_id ? $this->language->locale : DEFUALT_LOCALE);
|
||||
Session::put(SESSION_LOCALE, $this->language_id ? $this->language->locale : DEFAULT_LOCALE);
|
||||
}
|
||||
|
||||
public function getInvoiceLabels()
|
||||
|
@ -16,7 +16,7 @@ class TaxRateRepository
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!Utils::parseFloat($record->rate) || !trim($record->name))
|
||||
if (!isset($record->name) || !Utils::parseFloat($record->rate) || !trim($record->name))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
@ -60,12 +60,12 @@ Route::group(array('before' => 'auth'), function()
|
||||
Route::get('force_inline_pdf', 'UserController@forcePDFJS');
|
||||
|
||||
Route::get('account/getSearchData', array('as' => 'getSearchData', 'uses' => 'AccountController@getSearchData'));
|
||||
Route::get('account/enable_pro_plan', 'AccountController@enableProPlan');
|
||||
Route::get('company/{section?}', 'AccountController@showSection');
|
||||
Route::get('company/{section?}', 'AccountController@showSection');
|
||||
Route::post('company/{section?}', 'AccountController@doSection');
|
||||
Route::post('user/setTheme', 'UserController@setTheme');
|
||||
Route::post('remove_logo', 'AccountController@removeLogo');
|
||||
|
||||
Route::post('account/go_pro', 'AccountController@enableProPlan');
|
||||
|
||||
Route::resource('clients', 'ClientController');
|
||||
Route::get('api/clients', array('as'=>'api.clients', 'uses'=>'ClientController@getDatatable'));
|
||||
Route::get('api/activities/{client_id?}', array('as'=>'api.activities', 'uses'=>'ActivityController@getDatatable'));
|
||||
@ -229,7 +229,7 @@ define('DEFAULT_DATE_FORMAT', 'M j, Y');
|
||||
define('DEFAULT_DATE_PICKER_FORMAT', 'M d, yyyy');
|
||||
define('DEFAULT_DATETIME_FORMAT', 'F j, Y, g:i a');
|
||||
define('DEFAULT_QUERY_CACHE', 120); // minutes
|
||||
define('DEFUALT_LOCALE', 'en');
|
||||
define('DEFAULT_LOCALE', 'en');
|
||||
|
||||
define('GATEWAY_PAYPAL_EXPRESS', 17);
|
||||
define('NINJA_ACCOUNT_KEY', 'zg4ylmzDkdkPOT8yoKQw9LTWaoZJx79h');
|
||||
|
@ -286,7 +286,7 @@ Want something changed? We're {{ link_to('https://github.com/hillelcoren/invoice
|
||||
|
||||
<div class="modal-footer" id="signUpFooter" style="margin-top: 0px">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('texts.close') }} <i class="glyphicon glyphicon-remove-circle"></i></button>
|
||||
<button type="button" class="btn btn-primary" id="saveSignUpButton" onclick="validateServerSignUp()" disabled>{{ trans('texts.save') }} <i class="glyphicon glyphicon-floppy-disk"></i></button>
|
||||
<button type="button" class="btn btn-primary" id="saveSignUpButton" onclick="validateServerSignUp()" disabled>{{ trans('texts.save') }} <i class="glyphicon glyphicon-floppy-disk"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -274,8 +274,9 @@
|
||||
<iframe id="theFrame" style="display:none" frameborder="1" width="100%" height="1180"></iframe>
|
||||
<canvas id="theCanvas" style="display:none;width:100%;border:solid 1px #CCCCCC;"></canvas>
|
||||
|
||||
@if (false && !Auth::user()->isPro())
|
||||
{{ trans('texts.pro_plan.remove_logo', ['link'=>link_to('account/enable_pro_plan', trans('texts.pro_plan.remove_logo_link'))]) }}
|
||||
@if (!Auth::user()->isPro())
|
||||
<a href="#" onclick="showProPlan()">{{ trans('texts.pro_plan.remove_logo_link') }}</a>
|
||||
{{ trans('texts.pro_plan.remove_logo') }}
|
||||
@endif
|
||||
|
||||
<div class="modal fade" id="clientModal" tabindex="-1" role="dialog" aria-labelledby="clientModalLabel" aria-hidden="true">
|
||||
@ -423,16 +424,40 @@
|
||||
</div>
|
||||
|
||||
<div class="modal-footer" style="margin-top: 0px">
|
||||
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
|
||||
<button type="button" class="btn btn-primary" data-dismiss="modal">{{ trans('texts.close') }}</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{{ Former::close() }}
|
||||
|
||||
|
||||
{{ Former::open('account/go_pro') }}
|
||||
<div class="modal fade" id="proPlanModal" tabindex="-1" role="dialog" aria-labelledby="proPlanModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog" style="min-width:150px">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-title" id="proPlanModalLabel">{{ trans('texts.sign_up') }}</h4>
|
||||
</div>
|
||||
|
||||
<div style="background-color: #fff; padding-left: 16px; padding-right: 16px">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer" style="margin-top: 0px">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('texts.close') }}</button>
|
||||
{{ Button::primary_submit(trans('texts.sign_up')) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ Former::close() }}
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
@ -445,6 +470,10 @@
|
||||
$('#recurringModal').modal('show');
|
||||
}
|
||||
|
||||
function showProPlan() {
|
||||
$('#proPlanModal').modal('show');
|
||||
}
|
||||
|
||||
$(function() {
|
||||
|
||||
$('#country_id').combobox().on('change', function(e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user