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

104 lines
3.0 KiB
PHP
Raw Normal View History

2013-11-26 13:45:07 +01:00
@extends('accounts.nav')
@section('content')
2013-12-07 19:45:00 +01:00
@parent
2013-11-26 13:45:07 +01:00
<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'
)); }}
2014-01-15 15:01:24 +01:00
{{ Former::populate($account) }}
2013-11-26 13:45:07 +01:00
{{ 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">
2014-02-18 16:07:22 +01:00
<div class="col-md-5">
2013-11-26 13:45:07 +01:00
2014-02-18 22:56:18 +01:00
{{ Former::legend('Details') }}
2013-11-29 13:09:21 +01:00
{{ Former::text('name') }}
2014-03-03 19:26:45 +01:00
{{ Former::text('work_email')->label('Email') }}
{{ Former::text('work_phone')->label('Phone') }}
2014-03-17 18:38:19 +01:00
{{ Former::file('logo')->max(2, 'MB')->accept('image')->inlineHelp('Supported: JPEG, GIF and PNG. Recommended size: 120px width, 80px height') }}
2013-11-29 13:09:21 +01:00
@if (file_exists($account->getLogoPath()))
<center>
2014-03-18 19:55:50 +01:00
{{ HTML::image($account->getLogoPath(), "Logo") }} &nbsp;
<a href="#" onclick="deleteLogo()">Remove logo</a>
2014-02-18 22:56:18 +01:00
</center><br/>
2013-11-29 13:09:21 +01:00
@endif
2013-11-26 13:45:07 +01:00
2014-02-18 22:56:18 +01:00
{{ Former::select('size_id')->addOption('','')->label('Size')
->fromQuery($sizes, 'name', 'id') }}
{{ Former::select('industry_id')->addOption('','')->label('Industry')
->fromQuery($industries, 'name', 'id') }}
2013-11-29 13:09:21 +01:00
{{ Former::legend('Address') }}
{{ Former::text('address1')->label('Street') }}
2014-01-02 18:16:00 +01:00
{{ Former::text('address2')->label('Apt/Suite') }}
2013-11-29 13:09:21 +01:00
{{ Former::text('city') }}
2014-01-02 18:16:00 +01:00
{{ Former::text('state')->label('State/Province') }}
2013-11-29 13:09:21 +01:00
{{ Former::text('postal_code') }}
{{ Former::select('country_id')->addOption('','')->label('Country')
2014-01-06 19:03:00 +01:00
->fromQuery($countries, 'name', '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
2014-02-18 16:07:22 +01:00
<div class="col-md-5 col-md-offset-1">
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') }}
2014-01-06 19:03:00 +01:00
2014-02-18 16:07:22 +01:00
{{ Former::legend('Localization') }}
{{ Former::select('currency_id')->addOption('','')->label('Currency')
->fromQuery($currencies, 'name', 'id') }}
{{ Former::select('timezone_id')->addOption('','')->label('Timezone')
->fromQuery($timezones, 'location', 'id') }}
{{ Former::select('date_format_id')->addOption('','')->label('Date Format')
->fromQuery($dateFormats, 'label', 'id') }}
{{ Former::select('datetime_format_id')->addOption('','')->label('Date/Time Format')
->fromQuery($datetimeFormats, 'label', 'id') }}
2014-01-06 19:03:00 +01:00
2013-11-29 13:09:21 +01:00
</div>
</div>
2013-12-03 23:00:01 +01:00
<center>
{{ Button::lg_success_submit('Save')->append_with_icon('floppy-disk') }}
2013-12-03 23:00:01 +01:00
</center>
2013-11-26 13:45:07 +01:00
{{ Former::close() }}
2014-03-18 19:55:50 +01:00
{{ Form::open(['url' => 'remove_logo', 'class' => 'removeLogoForm']) }}
{{ Form::close() }}
2013-11-28 22:10:01 +01:00
<script type="text/javascript">
$(function() {
$('#country_id').combobox();
});
2014-03-18 19:55:50 +01:00
function deleteLogo() {
if (confirm('Are you sure?')) {
$('.removeLogoForm').submit();
}
}
2013-11-28 22:10:01 +01:00
</script>
2013-11-26 13:45:07 +01:00
@stop