+
+ {!! Datatable::table()
+ ->addColumn(
+ trans('texts.date'),
+ trans('texts.duration'),
+ trans('texts.description'),
+ trans('texts.status'))
+ ->setUrl(url('api/tasks/'. $client->public_id))
+ ->setOptions('sPaginationType', 'bootstrap')
+ ->setOptions('bFilter', false)
+ ->setOptions('aaSorting', [['0', 'desc']])
+ ->render('datatable') !!}
+
+
+ @endif
+
+
+ @if (Utils::isPro() && $hasQuotes)
{!! Datatable::table()
@@ -277,7 +297,7 @@
}
function onDeleteClick() {
- if (confirm("{{ trans('texts.are_you_sure') }}")) {
+ if (confirm("{!! trans('texts.are_you_sure') !!}")) {
$('#action').val('delete');
$('.mainForm').submit();
}
diff --git a/resources/views/credits/edit.blade.php b/resources/views/credits/edit.blade.php
index 04aecfe2a9..3cb86b89fe 100644
--- a/resources/views/credits/edit.blade.php
+++ b/resources/views/credits/edit.blade.php
@@ -27,8 +27,8 @@
+ {!! Button::normal(trans('texts.cancel'))->large()->asLinkTo(URL::to('/credits'))->appendIcon(Icon::create('remove-circle')) !!}
{!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!}
- {!! Button::normal(trans('texts.cancel'))->large()->asLinkTo('/credits')->appendIcon(Icon::create('remove-circle')) !!}
{!! Former::close() !!}
@@ -65,8 +65,4 @@
-@stop
-
-@section('onReady')
- //$('.client-select input.form-control').focus();
@stop
\ No newline at end of file
diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php
index 32755bf0b9..661edbe5e0 100644
--- a/resources/views/dashboard.blade.php
+++ b/resources/views/dashboard.blade.php
@@ -94,14 +94,12 @@
@foreach ($pastDue as $invoice)
- @if (!$invoice->client->trashed())
{!! $invoice->getLink() !!} |
{{ $invoice->client->getDisplayName() }} |
{{ Utils::fromSqlDate($invoice->due_date) }} |
- {{ Utils::formatMoney($invoice->balance, $invoice->client->currency_id) }} |
+ {{ Utils::formatMoney($invoice->balance, $invoice->client->getCurrencyId()) }} |
- @endif
@endforeach
@@ -123,14 +121,12 @@
@foreach ($upcoming as $invoice)
- @if (!$invoice->client->trashed())
{!! $invoice->getLink() !!} |
{{ $invoice->client->getDisplayName() }} |
{{ Utils::fromSqlDate($invoice->due_date) }} |
- {{ Utils::formatMoney($invoice->balance, $invoice->client->currency_id) }} |
+ {{ Utils::formatMoney($invoice->balance, $invoice->client->getCurrencyId()) }} |
- @endif
@endforeach
diff --git a/resources/views/errors/503.blade.php b/resources/views/errors/503.blade.php
new file mode 100644
index 0000000000..a5f06c9393
--- /dev/null
+++ b/resources/views/errors/503.blade.php
@@ -0,0 +1 @@
+We're currently undergoing a brief maintenance, we'll be right back.
\ No newline at end of file
diff --git a/resources/views/header.blade.php b/resources/views/header.blade.php
index 104704e7fd..4ae7ce5d6c 100644
--- a/resources/views/header.blade.php
+++ b/resources/views/header.blade.php
@@ -106,7 +106,7 @@
success: function(result) {
if (result) {
localStorage.setItem('guest_key', '');
- trackUrl('/signed_up');
+ trackEvent('/account', '/signed_up');
NINJA.isRegistered = true;
$('#signUpButton').hide();
$('#myAccountButton').html(result);
@@ -150,7 +150,7 @@
@if (Auth::check() && !Auth::user()->isPro())
function submitProPlan(feature) {
- trackUrl('/submit_pro_plan/' + feature);
+ trackEvent('/account', '/submit_pro_plan/' + feature);
if (NINJA.isRegistered) {
$('#proPlanDiv, #proPlanFooter').hide();
$('#proPlanWorking').show();
@@ -211,7 +211,18 @@
}
- $(function() {
+ // keep the token cookie valid to prevent token mismatch errors
+ function keepAlive() {
+ window.setTimeout(function() {
+ $.get('{{ URL::to('/keep_alive') }}', function(data) {
+ keepAlive();
+ })
+ }, 1000 * 60 * 60);
+ }
+
+ $(function() {
+ keepAlive();
+
window.setTimeout(function() {
$(".alert-hide").fadeOut(500);
}, 2000);
@@ -252,7 +263,7 @@
validateSignUp();
$('#signUpModal').on('shown.bs.modal', function () {
- trackUrl('/view_sign_up');
+ trackEvent('/account', '/view_sign_up');
$(['first_name','last_name','email','password']).each(function(i, field) {
var $input = $('form.signUpForm #new_'+field);
if (!$input.val()) {
@@ -299,9 +310,7 @@
{!! HTML::nav_link('dashboard', 'dashboard') !!}
{!! HTML::menu_link('client') !!}
- @if (Utils::isPro())
- {!! HTML::menu_link('quote') !!}
- @endif
+ {!! HTML::menu_link('task') !!}
{!! HTML::menu_link('invoice') !!}
{!! HTML::menu_link('payment') !!}
{!! HTML::menu_link('credit') !!}
@@ -404,10 +413,6 @@
- @if (!isset($showBreadcrumbs) || $showBreadcrumbs)
- {!! HTML::breadcrumbs() !!}
- @endif
-
@if (Session::has('warning'))
{{ Session::get('warning') }}
@endif
@@ -427,6 +432,10 @@
{{ Session::get('error') }}
@endif
+ @if (!isset($showBreadcrumbs) || $showBreadcrumbs)
+ {!! HTML::breadcrumbs() !!}
+ @endif
+
@yield('content')
diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php
index 687d39a1e6..8a7d7b1e1e 100644
--- a/resources/views/invoices/edit.blade.php
+++ b/resources/views/invoices/edit.blade.php
@@ -7,7 +7,7 @@
@if (Auth::user()->account->utf8_invoices)
-
+
@endif
@@ -43,7 +43,7 @@
{{ trans('texts.edit_client') }} |
- {!! link_to('/clients/'.$invoice->client->public_id, trans('texts.view_client'), ['target' => '_blank']) !!}
+ {!! link_to('/clients/'.$invoice->client->public_id, trans('texts.view_client'), ['target' => '_blank']) !!}
@@ -83,7 +83,8 @@
{!! Former::text('due_date')->data_bind("datePicker: due_date, valueUpdate: 'afterkeydown'")
->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT, DEFAULT_DATE_PICKER_FORMAT))->append('') !!}
- {!! Former::text('partial')->data_bind("value: partial, valueUpdate: 'afterkeydown'")->onchange('onPartialChange()') !!}
+ {!! Former::text('partial')->data_bind("value: partial, valueUpdate: 'afterkeydown'")->onchange('onPartialChange()')
+ ->rel('tooltip')->data_toggle('tooltip')->data_placement('bottom')->title(trans('texts.partial_value')) !!}
@if ($entityType == ENTITY_INVOICE)