2014-04-18 10:57:31 +02:00
|
|
|
@extends('accounts.nav')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
@parent
|
|
|
|
|
2014-04-25 15:04:57 +02:00
|
|
|
@if (!Auth::user()->account->isPro())
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2014-04-29 22:46:40 +02:00
|
|
|
<div style="font-size:larger;" class="col-md-8 col-md-offset-2">{{ trans('texts.pro_plan_advanced_settings', ['link'=>'<a href="#" onclick="showProPlan()">'.trans('texts.pro_plan.remove_logo_link').'</a>']) }}</div>
|
2014-04-25 15:04:57 +02:00
|
|
|
<p/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
2014-04-18 10:57:31 +02:00
|
|
|
{{ Former::open()->addClass('col-md-8 col-md-offset-2 warn-on-exit') }}
|
|
|
|
{{ Former::populate($account) }}
|
|
|
|
|
|
|
|
{{ Former::legend('company_fields') }}
|
|
|
|
{{ Former::text('custom_label1')->label(trans('texts.field_label')) }}
|
|
|
|
{{ Former::text('custom_value1')->label(trans('texts.field_value')) }}
|
|
|
|
<p> </p>
|
|
|
|
{{ Former::text('custom_label2')->label(trans('texts.field_label')) }}
|
|
|
|
{{ Former::text('custom_value2')->label(trans('texts.field_value')) }}
|
|
|
|
|
|
|
|
{{ Former::legend('client_fields') }}
|
|
|
|
{{ Former::text('custom_client_label1')->label(trans('texts.field_label')) }}
|
|
|
|
{{ Former::text('custom_client_label2')->label(trans('texts.field_label')) }}
|
|
|
|
|
2014-04-29 22:46:40 +02:00
|
|
|
{{ Former::legend('invoice_design') }}
|
|
|
|
{{ Former::text('primary_color') }}
|
|
|
|
{{ Former::text('secondary_color') }}
|
|
|
|
|
2014-04-18 10:57:31 +02:00
|
|
|
@if (Auth::user()->isPro())
|
|
|
|
{{ Former::actions( Button::lg_success_submit(trans('texts.save'))->append_with_icon('floppy-disk') ) }}
|
|
|
|
@else
|
|
|
|
<script>
|
|
|
|
$(function() {
|
|
|
|
$('form.warn-on-exit input').prop('disabled', true);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
{{ Former::close() }}
|
|
|
|
|
2014-04-29 22:46:40 +02:00
|
|
|
<script>
|
|
|
|
$(function() {
|
|
|
|
var options = {
|
|
|
|
preferredFormat: "hex",
|
|
|
|
disabled: {{ Auth::user()->isPro() ? 'false' : 'true' }},
|
|
|
|
showInitial: false,
|
|
|
|
showInput: true,
|
|
|
|
allowEmpty: true,
|
2014-04-29 22:51:15 +02:00
|
|
|
clickoutFiresChange: true,
|
2014-04-29 22:46:40 +02:00
|
|
|
};
|
|
|
|
$('#primary_color').spectrum(options);
|
|
|
|
$('#secondary_color').spectrum(options);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2014-04-18 10:57:31 +02:00
|
|
|
|
|
|
|
@stop
|