2016-11-06 16:17:22 +01:00
|
|
|
{% extends "./layout/default" %}
|
2015-06-19 20:59:14 +02:00
|
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
2017-12-23 20:46:52 +01:00
|
|
|
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, budget) }}
|
2015-06-19 20:59:14 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
2015-05-02 09:06:07 +02:00
|
|
|
{{ Form.model(budget, {'class' : 'form-horizontal','id' : 'update','url' : route('budgets.update',budget.id) } ) }}
|
2015-06-22 07:24:44 +02:00
|
|
|
<input type="hidden" name="id" value="{{ budget.id }}"/>
|
2015-05-02 09:06:07 +02:00
|
|
|
<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">
|
2015-06-20 07:29:25 +02:00
|
|
|
<div class="box box-primary">
|
|
|
|
|
<div class="box-header with-border">
|
2015-06-20 09:54:01 +02:00
|
|
|
<h3 class="box-title">{{ 'mandatoryFields'|_ }}</h3>
|
2015-05-02 09:06:07 +02:00
|
|
|
</div>
|
2015-06-20 07:29:25 +02:00
|
|
|
<div class="box-body">
|
2018-06-18 21:07:09 +02:00
|
|
|
{# only correct way to do active checkbox #}
|
|
|
|
|
{{ ExpandedForm.checkbox('active', 1) }}
|
2015-05-02 09:06:07 +02:00
|
|
|
{{ ExpandedForm.text('name') }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
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 #}
|
2015-06-20 07:29:25 +02:00
|
|
|
<div class="box">
|
|
|
|
|
<div class="box-header with-border">
|
2015-06-20 09:54:01 +02:00
|
|
|
<h3 class="box-title">{{ 'options'|_ }}</h3>
|
2015-05-02 09:06:07 +02:00
|
|
|
</div>
|
2015-06-20 07:29:25 +02:00
|
|
|
<div class="box-body">
|
2015-06-22 07:24:44 +02:00
|
|
|
{{ ExpandedForm.optionsList('update','budget') }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box-footer">
|
2015-07-26 07:39:04 +02:00
|
|
|
<button type="submit" class="btn pull-right btn-success">{{ 'update_budget'|_ }}</button>
|
2015-05-02 09:06:07 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2015-06-22 07:24:44 +02:00
|
|
|
{{ Form.close|raw }}
|
2015-05-02 09:06:07 +02:00
|
|
|
|
|
|
|
|
{% endblock %}
|