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

64 lines
2.5 KiB
Twig
Raw Normal View History

2015-05-01 22:44:35 +02:00
{% extends "./layout/default.twig" %}
2015-06-19 20:59:14 +02:00
{% block breadcrumbs %}
2015-05-01 22:44:35 +02:00
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, what) }}
2015-06-19 20:59:14 +02:00
{% endblock %}
{% block content %}
2015-05-01 22:44:35 +02:00
<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">
2015-06-20 07:29:25 +02:00
<div class="box box-primary">
<div class="box-header with-border">
2015-06-20 09:54:01 +02:00
<h3 class="box-title">{{ 'mandatoryFields'|_ }}</h3>
2015-05-01 23:17:17 +02:00
</div>
2015-06-20 07:29:25 +02:00
<div class="box-body">
2015-05-01 23:17:17 +02:00
{{ 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' %}
2015-06-20 07:29:25 +02:00
<div class="box">
<div class="box-header with-border">
2015-06-20 09:54:01 +02:00
<h3 class="box-title">{{ 'optionalFields'|_ }}</h3>
2015-05-01 23:17:17 +02:00
</div>
2015-06-20 07:29:25 +02:00
<div class="box-body">
2015-05-01 23:17:17 +02:00
{{ 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-06-20 07:29:25 +02:00
<div class="box">
<div class="box-header with-border">
2015-06-20 09:54:01 +02:00
<h3 class="box-title">{{ 'options'|_ }}</h3>
2015-05-01 23:17:17 +02:00
</div>
2015-06-20 07:29:25 +02:00
<div class="box-body">
2015-05-01 23:17:17 +02:00
{{ 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">
2015-05-21 07:30:38 +02:00
<i class="fa fa-plus-circle"></i> {{ ('store_new_' ~ what ~ '_account')|_ }}
2015-05-01 23:17:17 +02:00
</button>
</p>
2015-05-01 22:44:35 +02:00
</div>
</div>
</form>
{% endblock %}