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

40 lines
1.6 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.open({'class' : 'form-horizontal','id' : 'destroy','url' : route('bills.destroy',bill.id)}) }}
2015-06-22 10:55:37 -05:00
<div class="row">
<div class="col-lg-6 col-lg-offset-3 col-md-12 col-sm-12">
<div class="box box-danger">
<div class="box-header with-border">
<h3 class="box-title">{{ trans('form.delete_bill', {'name': bill.name}) }}</h3>
</div>
<div class="box-body">
<p class="text-danger">
{{ trans('form.permDeleteWarning') }}
</p>
<p>
{{ trans('form.bill_areYouSure', {'name': bill.name}) }}
</p>
<p>
{% if bill.transactionjournals|length > 0 %}
{{ Lang.choice('form.bill_keep_transactions', bill.transactionjournals|length,{count: bill.transactionjournals|length}) }}
{% endif %}
</p>
</div>
<div class="box-footer">
<input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}" class="btn btn-danger pull-right"/>
<a href="{{ URL.previous() }}" class="btn-default btn">{{ trans('form.cancel') }}</a>
</div>
2015-05-02 05:51:02 -05:00
</div>
</div>
</div>
2015-06-22 10:55:37 -05:00
{{ Form.close|raw }}
{% endblock %}