mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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'});
|
$state = e($client->{$prefix . 'state'});
|
||||||
$postalCode = e($client->{$prefix . 'post_code'});
|
$postalCode = e($client->{$prefix . 'post_code'});
|
||||||
|
|
||||||
return Utils::cityStateZip($city, $state, $postalCode, $swap);
|
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_state' => 'Shipping State/Province',
|
||||||
'shipping_postal_code' => 'Shipping Postal Code',
|
'shipping_postal_code' => 'Shipping Postal Code',
|
||||||
'shipping_country' => 'Shipping Country',
|
'shipping_country' => 'Shipping Country',
|
||||||
|
'classify' => 'Classify',
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -163,33 +163,54 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default" style="min-height:505px">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">{!! trans('texts.additional_info') !!}</h3>
|
<h3 class="panel-title">{!! trans('texts.additional_info') !!}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|
||||||
{!! Former::select('currency_id')->addOption('','')
|
<div role="tabpanel">
|
||||||
->placeholder($account->currency ? $account->currency->name : '')
|
<ul class="nav nav-tabs" role="tablist" style="border: none">
|
||||||
->fromQuery($currencies, 'name', 'id') !!}
|
<li role="presentation" class="active">
|
||||||
{!! Former::select('language_id')->addOption('','')
|
<a href="#defaults" aria-controls="defaults" role="tab" data-toggle="tab">{{ trans('texts.defaults') }}</a>
|
||||||
->placeholder($account->language ? trans('texts.lang_'.$account->language->name) : '')
|
</li>
|
||||||
->fromQuery($languages, 'name', 'id') !!}
|
<li role="presentation">
|
||||||
{!! Former::select('payment_terms')->addOption('','')
|
<a href="#notes" aria-controls="notes" role="tab" data-toggle="tab">{{ trans('texts.notes') }}</a>
|
||||||
->fromQuery(\App\Models\PaymentTerm::getSelectOptions(), 'name', 'num_days')
|
</li>
|
||||||
->placeholder($account->present()->paymentTerms)
|
<li role="presentation">
|
||||||
->help(trans('texts.payment_terms_help')) !!}
|
<a href="#classify" aria-controls="classify" role="tab" data-toggle="tab">{{ trans('texts.classify') }}</a>
|
||||||
@if ($account->isModuleEnabled(ENTITY_TASK))
|
</li>
|
||||||
{!! Former::text('task_rate')
|
</ul>
|
||||||
->placeholder($account->present()->taskRate)
|
</div>
|
||||||
->help('task_rate_help') !!}
|
<div class="tab-content" style="padding-top:24px;">
|
||||||
@endif
|
<div role="tabpanel" class="tab-pane active" id="defaults">
|
||||||
{!! Former::select('size_id')->addOption('','')
|
{!! Former::select('currency_id')->addOption('','')
|
||||||
->fromQuery($sizes, 'name', 'id') !!}
|
->placeholder($account->currency ? $account->currency->name : '')
|
||||||
{!! Former::select('industry_id')->addOption('','')
|
->fromQuery($currencies, 'name', 'id') !!}
|
||||||
->fromQuery($industries, 'name', 'id') !!}
|
{!! Former::select('language_id')->addOption('','')
|
||||||
{!! Former::textarea('public_notes') !!}
|
->placeholder($account->language ? trans('texts.lang_'.$account->language->name) : '')
|
||||||
{!! Former::textarea('private_notes') !!}
|
->fromQuery($languages, 'name', 'id') !!}
|
||||||
|
{!! Former::select('payment_terms')->addOption('','')
|
||||||
|
->fromQuery(\App\Models\PaymentTerm::getSelectOptions(), 'name', 'num_days')
|
||||||
|
->placeholder($account->present()->paymentTerms)
|
||||||
|
->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') !!}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user