Relabel add item to add product

This commit is contained in:
Hillel Coren 2017-11-02 12:08:29 +02:00
parent 07367c4f3a
commit a5ce4bce95
3 changed files with 3 additions and 4 deletions

View File

@ -256,7 +256,7 @@ class InvoicePresenter extends EntityPresenter
} }
if ($invoice->onlyHasTasks()) { if ($invoice->onlyHasTasks()) {
$actions[] = ['url' => 'javascript:onAddItemClick()', 'label' => trans('texts.add_item')]; $actions[] = ['url' => 'javascript:onAddItemClick()', 'label' => trans('texts.add_product')];
} }
if ($invoice->canBePaid()) { if ($invoice->canBePaid()) {

View File

@ -2433,7 +2433,6 @@ $LANG = array(
'include_errors' => 'Include Errors', 'include_errors' => 'Include Errors',
'include_errors_help' => 'Include :link from storage/logs/laravel-error.log', 'include_errors_help' => 'Include :link from storage/logs/laravel-error.log',
'recent_errors' => 'recent errors', 'recent_errors' => 'recent errors',
'add_item' => 'Add Item',
'customer' => 'Customer', 'customer' => 'Customer',
'customers' => 'Customers', 'customers' => 'Customers',
'created_customer' => 'Successfully created customer', 'created_customer' => 'Successfully created customer',
@ -2517,7 +2516,7 @@ $LANG = array(
'one_time_password' => 'One Time Password', 'one_time_password' => 'One Time Password',
'set_phone_for_two_factor' => 'Set your phone number to enable.', 'set_phone_for_two_factor' => 'Set your phone number to enable.',
'enabled_two_factor' => 'Successfully enabled Two-Factor Authentication', 'enabled_two_factor' => 'Successfully enabled Two-Factor Authentication',
'add_product' => 'Add Product',
); );

View File

@ -556,7 +556,7 @@
@elseif (! $invoice->isQuote() && Request::is('*/clone')) @elseif (! $invoice->isQuote() && Request::is('*/clone'))
{!! Button::normal(trans($invoice->is_recurring ? 'texts.disable_recurring' : 'texts.enable_recurring'))->withAttributes(['id' => 'recurrButton', 'onclick' => 'onRecurrClick()'])->appendIcon(Icon::create('repeat')) !!} {!! Button::normal(trans($invoice->is_recurring ? 'texts.disable_recurring' : 'texts.enable_recurring'))->withAttributes(['id' => 'recurrButton', 'onclick' => 'onRecurrClick()'])->appendIcon(Icon::create('repeat')) !!}
@elseif (! empty($tasks)) @elseif (! empty($tasks))
{!! Button::normal(trans('texts.add_item'))->withAttributes(['id' => 'addItemButton', 'onclick' => 'onAddItemClick()'])->appendIcon(Icon::create('plus-sign')) !!} {!! Button::normal(trans('texts.add_product'))->withAttributes(['id' => 'addItemButton', 'onclick' => 'onAddItemClick()'])->appendIcon(Icon::create('plus-sign')) !!}
@endif @endif
@endif @endif
@if ($invoice->trashed()) @if ($invoice->trashed())