Files
firefly-iii/resources/views/piggy-banks/edit.twig

70 lines
2.7 KiB
Twig
Raw Normal View History

2016-11-06 08:11:43 +01:00
{% extends "./layout/default" %}
2015-06-19 20:59:14 +02:00
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, piggyBank) }}
2015-06-19 20:59:14 +02:00
{% endblock %}
{% block content %}
2015-05-02 11:32:45 +02:00
{{ Form.model(piggyBank, {'class' : 'form-horizontal','id' : 'update','url' : route('piggy-banks.update',piggyBank.id)}) }}
2015-06-21 10:50:45 +02:00
<input type="hidden" name="repeats" value="0"/>
<input type="hidden" name="id" value="{{ piggyBank.id }}"/>
<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-21 10:50:45 +02:00
<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') }}
2018-03-07 10:18:22 +01:00
{{ ExpandedForm.assetAccountList('account_id', null, {label: 'saveOnAccount'|_ }) }}
2015-06-21 10:50:45 +02:00
{{ ExpandedForm.amount('targetamount') }}
</div>
2015-05-02 11:32:45 +02:00
</div>
</div>
2017-06-30 07:17:25 +02:00
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
2015-06-21 10:50:45 +02:00
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="box-body">
2017-11-22 21:41:48 +01:00
{{ ExpandedForm.date('startdate') }}
2015-06-21 10:50:45 +02:00
{{ ExpandedForm.date('targetdate') }}
{{ ExpandedForm.textarea('note', null, {helpText: trans('firefly.field_supports_markdown')}) }}
2015-06-21 10:50:45 +02:00
</div>
2015-05-02 11:32:45 +02:00
</div>
2018-01-12 18:42:48 +01:00
{# panel for options #}
2015-06-21 10:50:45 +02:00
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'options'|_ }}</h3>
</div>
<div class="box-body">
{{ ExpandedForm.optionsList('update','piggy bank') }}
</div>
<div class="box-footer">
<button type="submit" class="btn btn-success pull-right">
{{ 'update_piggy_button'|_ }}
</button>
</div>
2015-05-02 11:32:45 +02:00
</div>
2015-06-21 10:50:45 +02:00
</div>
2015-05-02 11:32:45 +02:00
</div>
2015-06-21 10:50:45 +02:00
{{ Form.close|raw }}
2015-05-02 11:32:45 +02:00
{% endblock %}
{% block scripts %}
<script type="text/javascript" src="js/lib/modernizr-custom.js?v={{ FF_VERSION }}"></script>
<script type="text/javascript" src="js/lib/jquery-ui.min.js?v={{ FF_VERSION }}"></script>
<script type="text/javascript" src="js/ff/piggy-banks/create.js?v={{ FF_VERSION }}"></script>
{% endblock %}
{% block styles %}
<link href="css/jquery-ui/jquery-ui.structure.min.css?v={{ FF_VERSION }}" type="text/css" rel="stylesheet" media="all">
<link href="css/jquery-ui/jquery-ui.theme.min.css?v={{ FF_VERSION }}" type="text/css" rel="stylesheet" media="all">
{% endblock %}