firefly-iii/resources/views/form/options.twig

49 lines
1.6 KiB
Twig
Raw Normal View History

2015-05-01 16:17:17 -05:00
{% if type == 'create' %}
<div class="form-group">
<label for="{{ name }}_return_to_form" class="col-sm-4 control-label">
{{ trans('form.returnHere') }}
2015-05-01 16:17:17 -05:00
</label>
2015-06-27 01:06:24 -05:00
2015-05-01 16:17:17 -05:00
<div class="col-sm-8">
<div class="radio">
<label>
2015-06-22 11:50:54 -05:00
{{ Form.checkbox('create_another', '1', false, {'id': name ~ '_return_to_form'}) }}
{{ trans('form.returnHereExplanation') }}
2015-05-01 16:17:17 -05:00
</label>
</div>
</div>
</div>
{% endif %}
{% if type == 'update' %}
<div class="form-group">
<label for="{{ name }}_return_to_edit" class="col-sm-4 control-label">
{{ trans('form.returnHere') }}
2015-05-01 16:17:17 -05:00
</label>
2015-06-27 01:06:24 -05:00
2015-05-01 16:17:17 -05:00
<div class="col-sm-8">
<div class="radio"><label>
2015-07-05 02:05:51 -05:00
{{ Form.checkbox('return_to_edit', '1', Input.old('return_to_edit') == '1', {'id': name ~ '_return_to_edit'}) }}
{{ trans('form.returnHereUpdateExplanation') }}
2015-05-01 16:17:17 -05:00
</label>
</div>
</div>
</div>
{% endif %}
2016-04-29 10:29:13 -05:00
{% if type == 'create' and name == 'transaction' %}
<div class="form-group">
<label for="{{ name }}_split" class="col-sm-4 control-label">
{{ trans('form.split_journal') }}
</label>
2016-04-29 10:29:13 -05:00
<div class="col-sm-8">
<div class="radio"><label>
{{ Form.checkbox('split_journal', '1', Input.old('split_journal') == '1', {'id': name ~ 'split'}) }}
{{ trans('form.split_journal_explanation') }}
</label>
</div>
2016-04-29 10:29:13 -05:00
</div>
</div>
2016-08-12 08:10:03 -05:00
{% endif %}