firefly-iii/resources/views/piggy-banks/create.twig

55 lines
1.9 KiB
Twig
Raw Normal View History

2015-05-02 04:32:45 -05:00
{% extends "./layout/default.twig" %}
2015-06-19 13:59:14 -05:00
{% block breadcrumbs %}
2015-05-02 04:32:45 -05:00
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }}
2015-06-19 13:59:14 -05:00
{% endblock %}
{% block content %}
2015-05-02 04:32:45 -05:00
{{ Form.open({'class' : 'form-horizontal','id' : 'store','url' : route('piggy-banks.store')}) }}
2015-06-21 03:50:45 -05:00
<input type="hidden" name="repeats" value="0"/>
2015-05-02 04:32:45 -05:00
2015-06-21 03:50:45 -05:00
<div class="row">
<div class="col-lg-6 col-md-12 col-sm-6">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">{{ 'mandatoryFields'|_ }}</h3>
</div>
<div class="box-body">
2015-05-02 04:32:45 -05:00
2015-06-21 03:50:45 -05:00
{{ ExpandedForm.text('name') }}
{{ ExpandedForm.select('account_id',accounts,null,{'label' : 'saveOnAccount'|_}) }}
{{ ExpandedForm.amount('targetamount') }}
2015-05-02 04:32:45 -05:00
2015-06-21 03:50:45 -05:00
</div>
2015-05-02 04:32:45 -05:00
</div>
</div>
2015-06-21 03:50:45 -05:00
<div class="col-lg-6 col-md-12 col-sm-12">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="box-body">
{{ ExpandedForm.date('targetdate') }}
</div>
2015-05-02 04:32:45 -05:00
</div>
2015-06-21 03:50:45 -05:00
<!-- panel for options -->
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'options'|_ }}</h3>
</div>
<div class="box-body">
{{ ExpandedForm.optionsList('create','piggy bank') }}
</div>
<div class="box-footer">
<button type="submit" class="btn btn-success pull-right">
2015-07-26 00:39:04 -05:00
{{ 'store_piggy_bank'|_ }}
2015-06-21 03:50:45 -05:00
</button>
</div>
2015-05-02 04:32:45 -05:00
</div>
2015-06-21 03:50:45 -05:00
</div>
2015-05-02 04:32:45 -05:00
</div>
2015-06-21 03:50:45 -05:00
{{ Form.close|raw }}
2015-05-02 04:32:45 -05:00
{% endblock %}