diff --git a/app/Http/Controllers/PaymentController.php b/app/Http/Controllers/PaymentController.php index df08156c41..9e5ab945cf 100644 --- a/app/Http/Controllers/PaymentController.php +++ b/app/Http/Controllers/PaymentController.php @@ -425,8 +425,7 @@ class PaymentController extends BaseController $details['customerReference'] = $token; } else { $this->error('Token-No-Ref', $this->paymentService->lastError, $accountGateway); - return Redirect::to('payment/'.$invitationKey) - ->withInput(Request::except('cvv')); + return Redirect::to('payment/'.$invitationKey)->withInput(Request::except('cvv')); } } } @@ -471,8 +470,12 @@ class PaymentController extends BaseController Session::save(); $response->redirect(); } else { - $this->error('Fatal', $response->getMessage(), $accountGateway); - return Utils::fatalError('Sorry, there was an error processing your payment. Please try again later.

', $response->getMessage()); + $this->error('Unknown', $response->getMessage(), $accountGateway); + if ($onSite) { + return Redirect::to('payment/'.$invitationKey)->withInput(Request::except('cvv')); + } else { + return Redirect::to('view/'.$invitationKey); + } } } catch (\Exception $e) { $this->error('Uncaught', false, $accountGateway, $e); diff --git a/app/Http/Controllers/TaskController.php b/app/Http/Controllers/TaskController.php index a09e748f09..0630bc8fc3 100644 --- a/app/Http/Controllers/TaskController.php +++ b/app/Http/Controllers/TaskController.php @@ -175,7 +175,7 @@ class TaskController extends BaseController { $action = Input::get('action'); - if (in_array($action, ['archive', 'delete', 'invoice', 'restore', 'add_to_invoice'])) { + if (in_array($action, ['archive', 'delete', 'restore'])) { return self::bulk(); } @@ -190,6 +190,10 @@ class TaskController extends BaseController $task = $this->taskRepo->save($publicId, Input::all()); Session::flash('message', trans($publicId ? 'texts.updated_task' : 'texts.created_task')); + if (in_array($action, ['invoice', 'add_to_invoice'])) { + return self::bulk(); + } + return Redirect::to("tasks/{$task->public_id}/edit"); } diff --git a/app/Http/routes.php b/app/Http/routes.php index 46545c06b6..bfae03344f 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -1,6 +1,5 @@ ['card' => 'images/credit_cards/Test-Visa-Icon.png', 'text' => 'Visa'], diff --git a/public/images/emails/dark.png b/public/images/emails/dark.png new file mode 100644 index 0000000000..dcace88c01 Binary files /dev/null and b/public/images/emails/dark.png differ diff --git a/public/images/emails/light.png b/public/images/emails/light.png new file mode 100644 index 0000000000..7ed0b7916a Binary files /dev/null and b/public/images/emails/light.png differ diff --git a/public/images/emails/plain.png b/public/images/emails/plain.png new file mode 100644 index 0000000000..6de856c05a Binary files /dev/null and b/public/images/emails/plain.png differ diff --git a/resources/lang/da/texts.php b/resources/lang/da/texts.php index bf8770e55c..d4c7799d3d 100644 --- a/resources/lang/da/texts.php +++ b/resources/lang/da/texts.php @@ -981,5 +981,13 @@ 'next_invoice_number' => 'The next invoice number is :number.', 'next_quote_number' => 'The next quote number is :number.', + 'days_before' => 'days before', + 'days_after' => 'days after', + 'field_due_date' => 'due date', + 'field_invoice_date' => 'invoice date', + 'schedule' => 'Schedule', + 'email_designs' => 'Email Designs', + 'assigned_when_sent' => 'Assigned when sent', + ); diff --git a/resources/lang/de/texts.php b/resources/lang/de/texts.php index 0eac9b144a..44b8f65788 100644 --- a/resources/lang/de/texts.php +++ b/resources/lang/de/texts.php @@ -982,5 +982,13 @@ return array( 'created_invoices' => 'Successfully created :count invoice(s)', 'next_invoice_number' => 'The next invoice number is :number.', 'next_quote_number' => 'The next quote number is :number.', + + 'days_before' => 'days before', + 'days_after' => 'days after', + 'field_due_date' => 'due date', + 'field_invoice_date' => 'invoice date', + 'schedule' => 'Schedule', + 'email_designs' => 'Email Designs', + 'assigned_when_sent' => 'Assigned when sent', ); diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 9eb66ca26d..feebbe03c3 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -272,7 +272,7 @@ return array( 'notification_invoice_paid' => 'A payment of :amount was made by client :client towards Invoice :invoice.', 'notification_invoice_sent' => 'The following client :client was emailed Invoice :invoice for :amount.', 'notification_invoice_viewed' => 'The following client :client viewed Invoice :invoice for :amount.', - 'reset_password' => 'You can reset your account password by clicking the following link:', + 'reset_password' => 'You can reset your account password by clicking the following button:', 'reset_password_footer' => 'If you did not request this password reset please email our support: ' . CONTACT_EMAIL, @@ -989,5 +989,7 @@ return array( 'field_due_date' => 'due date', 'field_invoice_date' => 'invoice date', 'schedule' => 'Schedule', - + 'email_designs' => 'Email Designs', + 'assigned_when_sent' => 'Assigned when sent', + ); diff --git a/resources/lang/es/texts.php b/resources/lang/es/texts.php index f95e86ce2b..e84b9c4fe1 100644 --- a/resources/lang/es/texts.php +++ b/resources/lang/es/texts.php @@ -958,5 +958,13 @@ return array( 'created_invoices' => 'Successfully created :count invoice(s)', 'next_invoice_number' => 'The next invoice number is :number.', 'next_quote_number' => 'The next quote number is :number.', + + 'days_before' => 'days before', + 'days_after' => 'days after', + 'field_due_date' => 'due date', + 'field_invoice_date' => 'invoice date', + 'schedule' => 'Schedule', + 'email_designs' => 'Email Designs', + 'assigned_when_sent' => 'Assigned when sent', ); diff --git a/resources/lang/es_ES/texts.php b/resources/lang/es_ES/texts.php index 06ca13b7f3..38892866d6 100644 --- a/resources/lang/es_ES/texts.php +++ b/resources/lang/es_ES/texts.php @@ -980,4 +980,12 @@ return array( 'next_invoice_number' => 'The next invoice number is :number.', 'next_quote_number' => 'The next quote number is :number.', + 'days_before' => 'days before', + 'days_after' => 'days after', + 'field_due_date' => 'due date', + 'field_invoice_date' => 'invoice date', + 'schedule' => 'Schedule', + 'email_designs' => 'Email Designs', + 'assigned_when_sent' => 'Assigned when sent', + ); diff --git a/resources/lang/fr/texts.php b/resources/lang/fr/texts.php index 10f154d893..b7d6de603e 100644 --- a/resources/lang/fr/texts.php +++ b/resources/lang/fr/texts.php @@ -973,5 +973,13 @@ return array( 'created_invoices' => 'Successfully created :count invoice(s)', 'next_invoice_number' => 'The next invoice number is :number.', 'next_quote_number' => 'The next quote number is :number.', + + 'days_before' => 'days before', + 'days_after' => 'days after', + 'field_due_date' => 'due date', + 'field_invoice_date' => 'invoice date', + 'schedule' => 'Schedule', + 'email_designs' => 'Email Designs', + 'assigned_when_sent' => 'Assigned when sent', ); diff --git a/resources/lang/fr_CA/texts.php b/resources/lang/fr_CA/texts.php index 0907f2be3c..ee62df6a71 100644 --- a/resources/lang/fr_CA/texts.php +++ b/resources/lang/fr_CA/texts.php @@ -974,4 +974,12 @@ return array( 'next_invoice_number' => 'The next invoice number is :number.', 'next_quote_number' => 'The next quote number is :number.', + 'days_before' => 'days before', + 'days_after' => 'days after', + 'field_due_date' => 'due date', + 'field_invoice_date' => 'invoice date', + 'schedule' => 'Schedule', + 'email_designs' => 'Email Designs', + 'assigned_when_sent' => 'Assigned when sent', + ); diff --git a/resources/lang/it/texts.php b/resources/lang/it/texts.php index 23632f650e..5a52b2f52e 100644 --- a/resources/lang/it/texts.php +++ b/resources/lang/it/texts.php @@ -975,5 +975,13 @@ return array( 'created_invoices' => 'Successfully created :count invoice(s)', 'next_invoice_number' => 'The next invoice number is :number.', 'next_quote_number' => 'The next quote number is :number.', + + 'days_before' => 'days before', + 'days_after' => 'days after', + 'field_due_date' => 'due date', + 'field_invoice_date' => 'invoice date', + 'schedule' => 'Schedule', + 'email_designs' => 'Email Designs', + 'assigned_when_sent' => 'Assigned when sent', ); diff --git a/resources/lang/lt/texts.php b/resources/lang/lt/texts.php index 851653ca9e..6ccc401ac1 100644 --- a/resources/lang/lt/texts.php +++ b/resources/lang/lt/texts.php @@ -270,7 +270,7 @@ return array( 'notification_invoice_paid' => 'A payment of :amount was made by client :client towards Invoice :invoice.', 'notification_invoice_sent' => 'The following client :client was emailed Invoice :invoice for :amount.', 'notification_invoice_viewed' => 'The following client :client viewed Invoice :invoice for :amount.', - 'reset_password' => 'You can reset your account password by clicking the following link:', + 'reset_password' => 'You can reset your account password by clicking the following button:', 'reset_password_footer' => 'If you did not request this password reset please email our support: ' . CONTACT_EMAIL, @@ -982,6 +982,14 @@ return array( 'created_invoices' => 'Successfully created :count invoice(s)', 'next_invoice_number' => 'The next invoice number is :number.', 'next_quote_number' => 'The next quote number is :number.', + + 'days_before' => 'days before', + 'days_after' => 'days after', + 'field_due_date' => 'due date', + 'field_invoice_date' => 'invoice date', + 'schedule' => 'Schedule', + 'email_designs' => 'Email Designs', + 'assigned_when_sent' => 'Assigned when sent', ); diff --git a/resources/lang/nb_NO/texts.php b/resources/lang/nb_NO/texts.php index 17c7fb66c5..87405d666d 100644 --- a/resources/lang/nb_NO/texts.php +++ b/resources/lang/nb_NO/texts.php @@ -980,5 +980,13 @@ return array( 'created_invoices' => 'Successfully created :count invoice(s)', 'next_invoice_number' => 'The next invoice number is :number.', 'next_quote_number' => 'The next quote number is :number.', + + 'days_before' => 'days before', + 'days_after' => 'days after', + 'field_due_date' => 'due date', + 'field_invoice_date' => 'invoice date', + 'schedule' => 'Schedule', + 'email_designs' => 'Email Designs', + 'assigned_when_sent' => 'Assigned when sent', ); diff --git a/resources/lang/nl/texts.php b/resources/lang/nl/texts.php index 80c02bd1a8..0a133e9fad 100644 --- a/resources/lang/nl/texts.php +++ b/resources/lang/nl/texts.php @@ -976,5 +976,13 @@ return array( 'created_invoices' => 'Successfully created :count invoice(s)', 'next_invoice_number' => 'The next invoice number is :number.', 'next_quote_number' => 'The next quote number is :number.', + + 'days_before' => 'days before', + 'days_after' => 'days after', + 'field_due_date' => 'due date', + 'field_invoice_date' => 'invoice date', + 'schedule' => 'Schedule', + 'email_designs' => 'Email Designs', + 'assigned_when_sent' => 'Assigned when sent', ); diff --git a/resources/lang/pt_BR/texts.php b/resources/lang/pt_BR/texts.php index 8550c1fbd5..f329537527 100644 --- a/resources/lang/pt_BR/texts.php +++ b/resources/lang/pt_BR/texts.php @@ -973,4 +973,12 @@ return array( 'next_invoice_number' => 'The next invoice number is :number.', 'next_quote_number' => 'The next quote number is :number.', + 'days_before' => 'days before', + 'days_after' => 'days after', + 'field_due_date' => 'due date', + 'field_invoice_date' => 'invoice date', + 'schedule' => 'Schedule', + 'email_designs' => 'Email Designs', + 'assigned_when_sent' => 'Assigned when sent', + ); diff --git a/resources/lang/sv/texts.php b/resources/lang/sv/texts.php index 63009b79e4..f8dd95dcd9 100644 --- a/resources/lang/sv/texts.php +++ b/resources/lang/sv/texts.php @@ -978,4 +978,13 @@ return array( 'next_invoice_number' => 'The next invoice number is :number.', 'next_quote_number' => 'The next quote number is :number.', + 'days_before' => 'days before', + 'days_after' => 'days after', + 'field_due_date' => 'due date', + 'field_invoice_date' => 'invoice date', + 'schedule' => 'Schedule', + 'email_designs' => 'Email Designs', + 'assigned_when_sent' => 'Assigned when sent', + + ); diff --git a/resources/views/accounts/email_settings.blade.php b/resources/views/accounts/email_settings.blade.php index 03a597f6fc..1957bf16f9 100644 --- a/resources/views/accounts/email_settings.blade.php +++ b/resources/views/accounts/email_settings.blade.php @@ -53,10 +53,11 @@

{!! Former::select('email_design_id') - ->style('width: 200px') - ->addOption(trans('texts.plain'), 1) - ->addOption(trans('texts.light'), 2) - ->addOption(trans('texts.dark'), 3) + ->appendIcon('question-sign') + ->addGroupClass('email_design_id') + ->addOption(trans('texts.plain'), EMAIL_DESIGN_PLAIN) + ->addOption(trans('texts.light'), EMAIL_DESIGN_LIGHT) + ->addOption(trans('texts.dark'), EMAIL_DESIGN_DARK) ->help(trans('texts.email_design_help')) !!}   @@ -105,6 +106,39 @@
+ + {!! Former::close() !!}