2015-05-01 15:44:35 -05:00
{% extends "./layout/default.twig" %}
{% block content %}
{{ B readcrumbs .renderIfExists ( R oute .getCurrentRoute .getName , what ) }}
<form action=" {{ route ( 'accounts.store' ) }} " method="post" id="store" class="form-horizontal">
2015-05-01 16:17:17 -05:00
<input type="hidden" name="_token" value=" {{ csrf_token ( ) }} " />
2015-05-01 15:44:35 -05:00
<input type="hidden" name="what" value=" {{ what }} " />
2015-05-01 16:17:17 -05:00
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="panel panel-primary">
<div class="panel-heading">
2015-05-09 15:42:45 -05:00
<i class="fa {{ subTitleIcon }} "></i> {{ 'mandatoryFields' | _ }}
2015-05-01 16:17:17 -05:00
</div>
<div class="panel-body">
{{ E xpandedForm .text ( 'name' ) }}
</div>
</div>
2015-05-01 15:44:35 -05:00
</div>
2015-05-01 16:17:17 -05:00
<div class="col-lg-6 col-md-6 col-sm-12">
{% if what == 'asset' %}
<div class="panel panel-default">
<div class="panel-heading">
2015-05-09 15:42:45 -05:00
<i class="fa fa-smile-o"></i> {{ 'optionalFields' | _ }}
2015-05-01 16:17:17 -05:00
</div>
<div class="panel-body">
{{ E xpandedForm .balance ( 'openingBalance' ) }}
{{ E xpandedForm .date ( 'openingBalanceDate' , phpdate ( 'Y-m-d' ) ) }}
2015-05-01 16:35:35 -05:00
{{ E xpandedForm .select ( 'accountRole' , C onfig .get ( 'firefly.accountRoles' ) , null , { 'helpText' : 'Any extra options resulting from your choice can be set later.' } ) }}
2015-05-01 16:17:17 -05:00
{{ E xpandedForm .balance ( 'virtualBalance' ) }}
</div>
</div>
{% endif %}
2015-05-09 06:56:03 -05:00
2015-05-01 16:17:17 -05:00
<div class="panel panel-default">
<div class="panel-heading">
2015-05-09 15:42:45 -05:00
<i class="fa fa-bolt"></i> {{ 'options' | _ }}
2015-05-01 16:17:17 -05:00
</div>
<div class="panel-body">
{{ E xpandedForm .optionsList ( 'create' , 'account' ) }}
</div>
</div>
2015-05-01 15:44:35 -05:00
</div>
</div>
2015-05-01 16:17:17 -05:00
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<p>
<button type="submit" class="btn btn-lg btn-success">
2015-05-21 00:30:38 -05:00
<i class="fa fa-plus-circle"></i> {{ ( 'store_new_' ~ what ~ '_account' ) | _ }}
2015-05-01 16:17:17 -05:00
</button>
</p>
2015-05-01 15:44:35 -05:00
</div>
</div>
</form>
2015-05-05 05:51:57 -05:00
{% endblock %}