From 78d04230d597217b82c843b6b1269e9fe9a0874a Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 3 Apr 2015 21:25:04 +0200 Subject: [PATCH] New CC help text. --- resources/views/accounts/create.blade.php | 2 +- resources/views/accounts/edit.blade.php | 12 ++++++++++++ resources/views/form/select.blade.php | 3 +++ 3 files changed, 16 insertions(+), 1 deletion(-) 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') !!} 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 @@ + + @if(Session::get('preFilled')['accountRole'] == 'ccAsset') +
+
+ Credit card options +
+
+ Will be here. +
+
+ @endif +
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 @@
{!! Form::select($name, $list, $selected , $options ) !!} + @if(isset($options['helpText'])) +

{{$options['helpText']}}

+ @endif @include('form.feedback')