mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-03 20:56:21 +00:00
Fixes for account routes.
This commit is contained in:
@@ -28,7 +28,21 @@
|
||||
@if($errors->has('name'))
|
||||
<p class="text-danger">{{$errors->first('name')}}</p>
|
||||
@else
|
||||
<span class="help-block">Use something descriptive such as "checking account" or "My Bank Main Account".</span>
|
||||
@if($what == 'asset')
|
||||
<span class="help-block">
|
||||
Use something descriptive such as "checking account" or "My Bank Main Account".
|
||||
</span>
|
||||
@endif
|
||||
@if($what == 'expense')
|
||||
<span class="help-block">
|
||||
Use something descriptive such as "Albert Heijn" or "Amazon".
|
||||
</span>
|
||||
@endif
|
||||
@if($what == 'revenue')
|
||||
<span class="help-block">
|
||||
Use something descriptive such as "my mom" or "my job".
|
||||
</span>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@@ -91,7 +105,7 @@
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-4 col-sm-8">
|
||||
<button type="submit" class="btn btn-default btn-success">Create the account</button>
|
||||
<button type="submit" class="btn btn-default btn-success">Create the {{{$what}}} account</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
</div>
|
||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||
@if($account->accounttype->type == 'Default account')
|
||||
@if($account->accounttype->type == 'Default account' || $account->accounttype->type == 'Asset account')
|
||||
<h4>Optional fields</h4>
|
||||
|
||||
<div class="form-group">
|
||||
@@ -58,7 +58,7 @@
|
||||
@if(!is_null($openingBalance))
|
||||
{{ Form::input('date','openingbalancedate', Input::old('openingbalancedate') ?: $openingBalance->date->format('Y-m-d'), ['class' => 'form-control']) }}
|
||||
@else
|
||||
{{ Form::input('date','openingbalancedate', Input::old('openingbalancedate') ?: date('Y-m-d'), ['class' => 'form-control']) }}
|
||||
{{ Form::input('date','openingbalancedate', Input::old('openingbalancedate') ?: '', ['class' => 'form-control']) }}
|
||||
@endif
|
||||
@if($errors->has('openingbalancedate'))
|
||||
<p class="text-danger">{{$errors->first('openingbalancedate')}}</p>
|
||||
|
||||
Reference in New Issue
Block a user