Skip to content

Firefly III: a personal finances manager

New CC help text.

James Cole78d04230d597
diff --git a/resources/views/accounts/create.blade.php b/resources/views/accounts/create.blade.php
index 36de7c194a..f8c9a2d403 100644
--- a/resources/views/accounts/create.blade.php
+++ b/resources/views/accounts/create.blade.php
@@ -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>
diff --git a/resources/views/accounts/edit.blade.php b/resources/views/accounts/edit.blade.php
index b5c8465a95..341cf70051 100644
--- a/resources/views/accounts/edit.blade.php
+++ b/resources/views/accounts/edit.blade.php
@@ -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">
diff --git a/resources/views/form/select.blade.php b/resources/views/form/select.blade.php
index 127ef8849f..e47500beca 100644
--- a/resources/views/form/select.blade.php
+++ b/resources/views/form/select.blade.php
@@ -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>