firefly-iii/resources/views/bills/edit.twig

67 lines
2.4 KiB
Twig
Raw Normal View History

2015-05-02 05:51:02 -05:00
{% extends "./layout/default.twig" %}
2015-06-19 13:59:14 -05:00
{% block breadcrumbs %}
2015-05-02 05:51:02 -05:00
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, bill) }}
2015-06-19 13:59:14 -05:00
{% endblock %}
{% block content %}
2015-05-02 05:51:02 -05:00
{{ Form.model(bill, {'class' : 'form-horizontal','id' : 'update','url' : route('bills.update', bill.id)}) }}
2015-06-22 10:55:37 -05:00
<input type="hidden" name="id" value="{{ bill.id }}"/>
2015-05-02 05:51:02 -05:00
2015-06-22 10:55:37 -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">
{{ ExpandedForm.text('name') }}
{{ ExpandedForm.tags('match') }}
{{ ExpandedForm.amount('amount_min') }}
{{ ExpandedForm.amount('amount_max') }}
2016-03-29 08:33:09 -05:00
{{ ExpandedForm.date('date',bill.date.format('Y-m-d'), {helpText: trans('firefly.bill_date_little_relevance')}) }}
2015-06-22 10:55:37 -05:00
{{ ExpandedForm.select('repeat_freq',periods) }}
</div>
2015-05-02 05:51:02 -05:00
</div>
2015-06-22 10:55:37 -05:00
</div>
<div class="col-lg-6 col-md-12 col-sm-6">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="box-body">
{{ ExpandedForm.integer('skip') }}
{{ ExpandedForm.checkbox('automatch',1) }}
{{ ExpandedForm.checkbox('active',1) }}
2015-05-02 05:51:02 -05:00
2015-06-22 10:55:37 -05:00
</div>
2015-05-02 05:51:02 -05:00
</div>
2015-06-20 00:29:25 -05:00
<div class="box">
<div class="box-header with-border">
2015-06-20 02:54:01 -05:00
<h3 class="box-title">{{ 'options'|_ }}</h3>
2015-05-02 05:51:02 -05:00
</div>
2015-06-20 00:29:25 -05:00
<div class="box-body">
2015-05-02 05:51:02 -05:00
{{ ExpandedForm.optionsList('update','bill') }}
</div>
2015-06-22 10:55:37 -05:00
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">
2015-07-26 00:39:04 -05:00
{{ 'update_bill'|_ }}
2015-06-22 10:55:37 -05:00
</button>
</div>
2015-05-02 05:51:02 -05:00
</div>
2015-06-22 10:55:37 -05:00
</div>
2015-05-02 05:51:02 -05:00
</div>
2015-06-22 10:55:37 -05:00
{{ Form.close|raw }}
2015-05-02 05:51:02 -05:00
{% endblock %}
{% block styles %}
<link href="css/bootstrap-tagsinput.css" type="text/css" rel="stylesheet" media="all">
{% endblock %}
{% block scripts %}
2016-04-10 10:51:51 -05:00
<script type="text/javascript" src="js/lib/bootstrap-tagsinput.min.js"></script>
2015-05-02 05:51:02 -05:00
{% endblock %}