1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-24 02:11:34 +02:00
invoiceninja/app/views/accounts/details.blade.php

75 lines
1.9 KiB
PHP
Raw Normal View History

2013-11-26 13:45:07 +01:00
@extends('accounts.nav')
@section('content')
@parent
<style type="text/css">
#logo {
padding-top: 6px;
}
</style>
2013-12-03 23:00:01 +01:00
{{ Former::open_for_files()->addClass('col-md-10 col-md-offset-1')->rules(array(
2013-11-26 13:45:07 +01:00
'name' => 'required',
'email' => 'email|required'
)); }}
{{ Former::populate($account); }}
{{ Former::populateField('first_name', $account->users()->first()->first_name) }}
{{ Former::populateField('last_name', $account->users()->first()->last_name) }}
2013-12-02 20:54:24 +01:00
{{ Former::populateField('email', $account->users()->first()->email) }}
2013-11-26 13:45:07 +01:00
{{ Former::populateField('phone', $account->users()->first()->phone) }}
2013-11-29 13:09:21 +01:00
<div class="row">
<div class="col-md-6">
2013-11-26 13:45:07 +01:00
2013-11-29 13:09:21 +01:00
{{ Former::legend('Account') }}
{{ Former::text('name') }}
2013-12-02 13:22:29 +01:00
{{ Former::select('timezone_id')->addOption('','')->label('Timezone')
->fromQuery($timezones, 'location', 'id')->select($account->timezone_id) }}
2013-11-29 13:09:21 +01:00
{{ Former::file('logo')->max(2, 'MB')->accept('image')->wrap('test') }}
@if (file_exists($account->getLogoPath()))
<center>
{{ HTML::image($account->getLogoPath(), "Logo") }}
</center>
@endif
2013-11-26 13:45:07 +01:00
2013-11-29 13:09:21 +01:00
{{ Former::legend('Address') }}
{{ Former::text('address1')->label('Street') }}
{{ Former::text('address2')->label('Apt/Floor') }}
{{ Former::text('city') }}
{{ Former::text('state') }}
{{ Former::text('postal_code') }}
{{ Former::select('country_id')->addOption('','')->label('Country')
->fromQuery($countries, 'name', 'id')->select($account ? $account->country_id : '') }}
2013-11-26 13:45:07 +01:00
2013-11-29 13:09:21 +01:00
</div>
2013-11-26 13:45:07 +01:00
2013-11-29 13:09:21 +01:00
<div class="col-md-6">
2013-11-26 13:45:07 +01:00
2013-11-29 13:09:21 +01:00
{{ Former::legend('Users') }}
{{ Former::text('first_name') }}
{{ Former::text('last_name') }}
2013-12-02 20:54:24 +01:00
{{ Former::text('email') }}
2013-11-29 13:09:21 +01:00
{{ Former::text('phone') }}
</div>
</div>
2013-12-03 23:00:01 +01:00
<center>
{{ Button::lg_primary_submit('Save') }}
</center>
2013-11-26 13:45:07 +01:00
{{ Former::close() }}
2013-11-28 22:10:01 +01:00
<script type="text/javascript">
$(function() {
$('#country_id').combobox();
});
</script>
2013-11-26 13:45:07 +01:00
@stop