Files
firefly-iii/resources/views/v1/budgets/create.twig

65 lines
2.7 KiB
Twig
Raw Normal View History

2016-11-06 16:17:22 +01:00
{% extends "./layout/default" %}
2015-06-19 20:59:14 +02:00
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
2015-06-19 20:59:14 +02:00
{% endblock %}
{% block content %}
2020-03-19 08:56:00 +01:00
<form method="POST" action="{{ route('budgets.store') }}" accept-charset="UTF-8" class="form-horizontal" id="store" enctype="multipart/form-data">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
2016-10-22 22:03:00 +02:00
<input name="active" type="hidden" value="1">
<div class="row">
2017-06-30 07:17:25 +02:00
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<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') }}
</div>
2015-06-22 07:24:44 +02:00
</div>
2015-05-02 08:32:20 +02:00
</div>
2020-03-13 20:56:26 +01:00
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
{# panel for auto-budget#}
2020-03-13 21:15:54 +01:00
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="box-body">
{{ ExpandedForm.select('auto_budget_type', autoBudgetTypes,null, {helpText: trans('firefly.auto_budget_help')}) }}
{{ CurrencyForm.currencyList('auto_budget_currency_id') }}
2020-03-13 21:15:54 +01:00
{{ ExpandedForm.amountNoCurrency('auto_budget_amount') }}
{{ ExpandedForm.select('auto_budget_period', autoBudgetPeriods, null) }}
2020-03-19 08:56:00 +01:00
{{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
2020-03-13 21:15:54 +01:00
</div>
</div>
2020-03-13 20:56:26 +01:00
</div>
</div>
<div class="row">
2017-06-30 07:17:25 +02:00
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
2018-01-12 18:42:48 +01: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','budget') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">{{ 'store_new_budget'|_ }}</button>
</div>
2015-05-02 08:32:20 +02:00
</div>
2015-05-02 08:32:20 +02:00
</div>
</div>
</form>
2015-05-02 08:32:20 +02:00
{% endblock %}
2018-12-22 06:21:06 +01:00
{% block scripts %}
2020-01-04 11:16:14 +01:00
<script type="text/javascript" src="v1/js/ff/budgets/create.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
2019-01-01 15:43:03 +01:00
{% endblock %}