mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Update edit client layout
This commit is contained in:
parent
7c96b23022
commit
8ff7b7fd21
@ -95,7 +95,11 @@ class ClientPresenter extends EntityPresenter
|
||||
$state = e($client->{$prefix . 'state'});
|
||||
$postalCode = e($client->{$prefix . 'post_code'});
|
||||
|
||||
if ($city || $state || $postalCode) {
|
||||
return Utils::cityStateZip($city, $state, $postalCode, $swap);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -2540,6 +2540,7 @@ $LANG = array(
|
||||
'shipping_state' => 'Shipping State/Province',
|
||||
'shipping_postal_code' => 'Shipping Postal Code',
|
||||
'shipping_country' => 'Shipping Country',
|
||||
'classify' => 'Classify',
|
||||
|
||||
);
|
||||
|
||||
|
@ -163,12 +163,27 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel panel-default" style="min-height:505px">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{!! trans('texts.additional_info') !!}</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
<div role="tabpanel">
|
||||
<ul class="nav nav-tabs" role="tablist" style="border: none">
|
||||
<li role="presentation" class="active">
|
||||
<a href="#defaults" aria-controls="defaults" role="tab" data-toggle="tab">{{ trans('texts.defaults') }}</a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a href="#notes" aria-controls="notes" role="tab" data-toggle="tab">{{ trans('texts.notes') }}</a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a href="#classify" aria-controls="classify" role="tab" data-toggle="tab">{{ trans('texts.classify') }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tab-content" style="padding-top:24px;">
|
||||
<div role="tabpanel" class="tab-pane active" id="defaults">
|
||||
{!! Former::select('currency_id')->addOption('','')
|
||||
->placeholder($account->currency ? $account->currency->name : '')
|
||||
->fromQuery($currencies, 'name', 'id') !!}
|
||||
@ -178,18 +193,24 @@
|
||||
{!! Former::select('payment_terms')->addOption('','')
|
||||
->fromQuery(\App\Models\PaymentTerm::getSelectOptions(), 'name', 'num_days')
|
||||
->placeholder($account->present()->paymentTerms)
|
||||
->help(trans('texts.payment_terms_help')) !!}
|
||||
->help(trans('texts.payment_terms_help') . ' | ' . link_to('/settings/payment_terms', trans('texts.customize_options'))) !!}
|
||||
@if ($account->isModuleEnabled(ENTITY_TASK))
|
||||
{!! Former::text('task_rate')
|
||||
->placeholder($account->present()->taskRate)
|
||||
->help('task_rate_help') !!}
|
||||
@endif
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane" id="notes">
|
||||
{!! Former::textarea('public_notes')->rows(6) !!}
|
||||
{!! Former::textarea('private_notes')->rows(6) !!}
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane" id="classify">
|
||||
{!! Former::select('size_id')->addOption('','')
|
||||
->fromQuery($sizes, 'name', 'id') !!}
|
||||
{!! Former::select('industry_id')->addOption('','')
|
||||
->fromQuery($industries, 'name', 'id') !!}
|
||||
{!! Former::textarea('public_notes') !!}
|
||||
{!! Former::textarea('private_notes') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user