mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-08 07:03:23 -06:00
72 lines
2.3 KiB
Twig
72 lines
2.3 KiB
Twig
{% extends "./layout/default.twig" %}
|
|
|
|
{% block breadcrumbs %}
|
|
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, bill) }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
{{ Form.model(bill, {'class' : 'form-horizontal','id' : 'update','url' : route('bills.update', bill.id)}) }}
|
|
|
|
<input type="hidden" name="id" value="{{bill.id}}" />
|
|
|
|
<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') }}
|
|
{{ ExpandedForm.date('date',bill.date.format('Y-m-d')) }}
|
|
{{ ExpandedForm.select('repeat_freq',periods) }}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</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) }}
|
|
|
|
</div>
|
|
</div>
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ 'options'|_ }}</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
{{ ExpandedForm.optionsList('update','bill') }}
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<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> Update bill
|
|
</button>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
{% endblock %}
|
|
{% block styles %}
|
|
<link href="css/bootstrap-tagsinput.css" type="text/css" rel="stylesheet" media="all">
|
|
{% endblock %}
|
|
{% block scripts %}
|
|
<script type="text/javascript" src="js/bootstrap-tagsinput.min.js"></script>
|
|
{% endblock %}
|