1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-16 16:13:20 +01:00
invoiceninja/resources/views/invited/details.blade.php

162 lines
6.0 KiB
PHP
Raw Normal View History

2018-01-18 11:16:02 +01:00
@extends('public.header')
@section('content')
@include('payments.payment_css')
<div class="container">
<p>&nbsp;</p>
<div class="panel panel-default">
2018-01-22 08:16:23 +01:00
<div class="panel-body client-details">
2018-01-18 11:16:02 +01:00
<p>&nbsp;</p>
<p>&nbsp;</p>
{!! Former::vertical_open()
->autocomplete('on')
->addClass('payment-form')
->id('payment-form')
->rules(array(
2018-01-19 06:13:02 +01:00
'name' => 'required',
2018-01-20 18:27:59 +01:00
'email' => 'required|email',
'first_name' => 'required',
'last_name' => 'required',
2018-01-19 06:13:02 +01:00
'vat_number' => 'required',
2018-01-18 11:16:02 +01:00
'address1' => 'required',
'city' => 'required',
'state' => 'required',
'postal_code' => 'required',
'country_id' => 'required',
)) !!}
@if ($client)
{{ Former::populate($client) }}
{{ Former::populateField('first_name', $contact->first_name) }}
{{ Former::populateField('last_name', $contact->last_name) }}
{{ Former::populateField('email', $contact->email) }}
@if (!$client->country_id && $client->account->country_id)
{{ Former::populateField('country_id', $client->account->country_id) }}
@endif
@endif
<h3>{{ trans('texts.client_information') }}</h3>
<hr class="form-legend"/>
<div style="padding-bottom: 22px;">
2018-01-19 06:13:02 +01:00
2018-01-18 11:16:02 +01:00
<div class="row">
2018-01-20 18:27:59 +01:00
@if ($client->name)
<div class="col-md-6">
{!! Former::text('name')
->placeholder(trans('texts.name'))
->label('') !!}
</div>
@else
<div class="col-md-6">
{!! Former::text('first_name')
->placeholder(trans('texts.first_name'))
->label('') !!}
</div>
<div class="col-md-6">
{!! Former::text('last_name')
->placeholder(trans('texts.last_name'))
->label('') !!}
</div>
@endif
2018-01-22 08:16:23 +01:00
<div class="col-md-6">
{!! Former::text('email')
->placeholder(trans('texts.email'))
->label('') !!}
</div>
2018-01-18 11:16:02 +01:00
@if ($account->vat_number)
<div class="col-md-6">
{!! Former::text('vat_number')
->placeholder(trans('texts.vat_number'))
->label('') !!}
</div>
@endif
</div>
</div>
<h3>{{ trans('texts.billing_address') }}</h3>
<hr class="form-legend"/>
<div style="padding-bottom: 22px;" class="billing-address">
<div class="row">
<div class="col-md-6">
{!! Former::text('address1')
->autocomplete('address-line1')
->placeholder(trans('texts.address1'))
->label('') !!}
</div>
<div class="col-md-6">
{!! Former::text('address2')
->autocomplete('address-line2')
->placeholder(trans('texts.address2'))
->label('') !!}
</div>
</div>
<div class="row">
<div class="col-md-6">
{!! Former::text('city')
->autocomplete('address-level2')
->placeholder(trans('texts.city'))
->label('') !!}
</div>
<div class="col-md-6">
{!! Former::text('state')
->autocomplete('address-level1')
->placeholder(trans('texts.state'))
->label('') !!}
</div>
</div>
<div class="row">
<div class="col-md-6">
{!! Former::text('postal_code')
->autocomplete('postal-code')
->placeholder(trans('texts.postal_code'))
->label('') !!}
</div>
<div class="col-md-6">
{!! Former::select('country_id')
->placeholder(trans('texts.country_id'))
->fromQuery($countries, 'name', 'id')
->addGroupClass('country-select')
->label('') !!}
</div>
</div>
</div>
<p>&nbsp;</p>
<center>
2018-01-21 07:48:18 +01:00
{!! Button::normal(strtoupper(trans('texts.cancel') ))->asLinkTo($account->enable_client_portal_dashboard ? '/client/dashboard' : '/client/payment_methods')->large() !!} &nbsp;
2018-01-18 11:16:02 +01:00
{!! Button::success(strtoupper(trans('texts.save') ))->submit()->large() !!}
</center>
</div>
{!! Former::close() !!}
</div>
</div>
</div>
<script type="text/javascript">
$(function() {
2018-01-20 18:27:59 +01:00
$('#country_id').combobox();
2018-01-18 11:16:02 +01:00
$('#first_name').focus();
});
</script>
@stop