1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/resources/views/accounts/details.blade.php

101 lines
2.6 KiB
PHP
Raw Normal View History

2015-10-14 16:15:39 +02:00
@extends('header')
2015-03-16 22:45:25 +01:00
@section('content')
@parent
<style type="text/css">
#logo {
padding-top: 6px;
}
</style>
2015-04-20 16:34:23 +02:00
{!! Former::open_for_files()->addClass('warn-on-exit')->rules(array(
2015-03-16 22:45:25 +01:00
'name' => 'required',
2015-04-01 21:57:02 +02:00
)) !!}
2015-03-16 22:45:25 +01:00
{{ Former::populate($account) }}
2015-10-14 16:15:39 +02:00
@include('accounts.nav', ['selected' => ACCOUNT_COMPANY_DETAILS])
2015-03-16 22:45:25 +01:00
<div class="row">
2015-10-14 16:15:39 +02:00
<div class="col-md-12">
2015-04-20 16:34:23 +02:00
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{!! trans('texts.details') !!}</h3>
</div>
2015-10-14 19:18:19 +02:00
<div class="panel-body form-padding-right">
2015-04-20 16:34:23 +02:00
2015-04-01 21:57:02 +02:00
{!! Former::text('name') !!}
{!! Former::text('id_number') !!}
{!! Former::text('vat_number') !!}
{!! Former::text('work_email') !!}
{!! Former::text('work_phone') !!}
2015-10-29 15:42:05 +01:00
{!! Former::textarea('email_footer')->label(trans('texts.signature'))->rows(4) !!}
{!! Former::file('logo')->max(2, 'MB')->accept('image')->inlineHelp(trans('texts.logo_help')) !!}
2015-03-16 22:45:25 +01:00
2015-10-13 17:44:01 +02:00
@if ($account->hasLogo())
2015-03-16 22:45:25 +01:00
<center>
2015-08-03 21:08:07 +02:00
{!! HTML::image($account->getLogoPath().'?no_cache='.time(), 'Logo', ['width' => 200]) !!} &nbsp;
2015-03-16 22:45:25 +01:00
<a href="#" onclick="deleteLogo()">{{ trans('texts.remove_logo') }}</a>
</center><br/>
@endif
2015-04-01 21:57:02 +02:00
{!! Former::select('size_id')->addOption('','')->fromQuery($sizes, 'name', 'id') !!}
{!! Former::select('industry_id')->addOption('','')->fromQuery($industries, 'name', 'id') !!}
2015-04-20 16:34:23 +02:00
</div>
</div>
2015-03-16 22:45:25 +01:00
2015-04-20 16:34:23 +02:00
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{!! trans('texts.address') !!}</h3>
</div>
2015-10-14 19:18:19 +02:00
<div class="panel-body form-padding-right">
2015-04-20 16:34:23 +02:00
2015-04-01 21:57:02 +02:00
{!! Former::text('address1') !!}
{!! Former::text('address2') !!}
{!! Former::text('city') !!}
{!! Former::text('state') !!}
{!! Former::text('postal_code') !!}
{!! Former::select('country_id')->addOption('','')
->fromQuery($countries, 'name', 'id') !!}
2015-03-16 22:45:25 +01:00
2015-04-20 16:34:23 +02:00
</div>
</div>
2015-03-16 22:45:25 +01:00
</div>
2015-03-16 22:45:25 +01:00
</div>
<center>
2015-04-01 21:57:02 +02:00
{!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!}
2015-03-16 22:45:25 +01:00
</center>
2015-04-20 16:34:23 +02:00
{!! Former::close() !!}
2015-04-01 21:57:02 +02:00
{!! Form::open(['url' => 'remove_logo', 'class' => 'removeLogoForm']) !!}
{!! Form::close() !!}
2015-03-16 22:45:25 +01:00
<script type="text/javascript">
$(function() {
$('#country_id').combobox();
});
function deleteLogo() {
2015-06-03 19:55:48 +02:00
if (confirm("{!! trans('texts.are_you_sure') !!}")) {
2015-03-16 22:45:25 +01:00
$('.removeLogoForm').submit();
}
}
</script>
2015-05-09 20:25:16 +02:00
@stop
2015-03-16 22:45:25 +01:00
2015-05-09 20:25:16 +02:00
@section('onReady')
$('#name').focus();
2015-03-16 22:45:25 +01:00
@stop