Files
firefly-iii/resources/twig/accounts/create.twig

61 lines
2.5 KiB
Twig
Raw Normal View History

2015-05-01 22:44:35 +02:00
{% extends "./layout/default.twig" %}
{% block content %}
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, what) }}
<form action="{{ route('accounts.store') }}" method="post" id="store" class="form-horizontal">
2015-05-01 23:17:17 +02:00
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
2015-05-01 22:44:35 +02:00
<input type="hidden" name="what" value="{{ what }}" />
2015-05-01 23:17:17 +02: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 22:42:45 +02:00
<i class="fa {{ subTitleIcon }}"></i> {{ 'mandatoryFields'|_ }}
2015-05-01 23:17:17 +02:00
</div>
<div class="panel-body">
{{ ExpandedForm.text('name') }}
</div>
</div>
2015-05-01 22:44:35 +02:00
</div>
2015-05-01 23:17:17 +02: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 22:42:45 +02:00
<i class="fa fa-smile-o"></i> {{ 'optionalFields'|_ }}
2015-05-01 23:17:17 +02:00
</div>
<div class="panel-body">
{{ ExpandedForm.balance('openingBalance') }}
{{ ExpandedForm.date('openingBalanceDate', phpdate('Y-m-d')) }}
2015-05-01 23:35:35 +02:00
{{ ExpandedForm.select('accountRole', Config.get('firefly.accountRoles'),null,{'helpText' : 'Any extra options resulting from your choice can be set later.'}) }}
2015-05-01 23:17:17 +02:00
{{ ExpandedForm.balance('virtualBalance') }}
</div>
</div>
{% endif %}
2015-05-09 13:56:03 +02:00
2015-05-01 23:17:17 +02:00
<div class="panel panel-default">
<div class="panel-heading">
2015-05-09 22:42:45 +02:00
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
2015-05-01 23:17:17 +02:00
</div>
<div class="panel-body">
{{ ExpandedForm.optionsList('create','account') }}
</div>
</div>
2015-05-01 22:44:35 +02:00
</div>
</div>
2015-05-01 23:17:17 +02: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">
<i class="fa fa-plus-circle"></i> Store new {{ what }} account
</button>
</p>
2015-05-01 22:44:35 +02:00
</div>
</div>
</form>
{% endblock %}