New CC help text.

This commit is contained in:
James Cole 2015-04-03 21:25:04 +02:00
parent 1c04477393
commit 78d04230d5
3 changed files with 16 additions and 1 deletions

View File

@ -36,7 +36,7 @@
{!! ExpandedForm::balance('openingBalance') !!}
{!! ExpandedForm::date('openingBalanceDate', date('Y-m-d')) !!}
{!! ExpandedForm::select('accountRole',Config::get('firefly.accountRoles')) !!}
{!! ExpandedForm::select('accountRole',Config::get('firefly.accountRoles'),null,['helpText' => 'Any extra options resulting from your choice can be set later.']) !!}
{!! ExpandedForm::balance('virtualBalance') !!}
</div>

View File

@ -38,6 +38,18 @@
</div>
</div>
<!-- panel for credit card options -->
@if(Session::get('preFilled')['accountRole'] == 'ccAsset')
<div class="panel panel-default">
<div class="panel-heading">
<i class="fa fa-credit-card"></i> Credit card options
</div>
<div class="panel-body">
Will be here.
</div>
</div>
@endif
<!-- panel for options -->
<div class="panel panel-default">
<div class="panel-heading">

View File

@ -2,6 +2,9 @@
<label for="{{{$options['id']}}}" class="col-sm-4 control-label">{{{$label}}}</label>
<div class="col-sm-8">
{!! Form::select($name, $list, $selected , $options ) !!}
@if(isset($options['helpText']))
<p class="help-block">{{$options['helpText']}}</p>
@endif
@include('form.feedback')
</div>