Files
firefly-iii/resources/views/rules/rule-group/edit.twig

55 lines
1.9 KiB
Twig
Raw Normal View History

2016-11-06 08:11:43 +01:00
{% extends "./layout/default" %}
2016-01-13 18:34:56 +01:00
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, ruleGroup) }}
2016-01-13 18:34:56 +01:00
{% endblock %}
{% block content %}
2016-12-06 08:59:08 +01:00
{{ Form.model(ruleGroup, {'class' : 'form-horizontal','id' : 'update','url' : route('rule-groups.update',ruleGroup.id) } ) }}
2016-01-13 18:50:15 +01:00
<input type="hidden" name="id" value="{{ ruleGroup.id }}"/>
2016-01-13 18:34:56 +01:00
<div class="row">
2016-01-13 18:50:15 +01:00
<div class="col-lg-6 col-md-12 col-sm-6">
2016-01-13 18:34:56 +01:00
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">{{ 'mandatoryFields'|_ }}</h3>
</div>
<div class="box-body">
2018-06-18 21:07:09 +02:00
{# only correct way to do active checkbox #}
{{ ExpandedForm.checkbox('active', 1) }}
2016-01-13 18:34:56 +01:00
{{ ExpandedForm.text('title') }}
</div>
</div>
2016-01-13 18:50:15 +01:00
2016-01-13 18:34:56 +01:00
</div>
2016-01-13 18:50:15 +01:00
<div class="col-lg-6 col-md-12 col-sm-6">
2016-01-13 18:34:56 +01:00
2018-01-12 18:42:48 +01:00
{# optional fields #}
2016-01-13 18:34:56 +01:00
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="box-body">
2018-08-07 17:54:37 +02:00
{{ ExpandedForm.textarea('description', ruleGroup.description) }}
2016-01-13 18:34:56 +01:00
</div>
</div>
2018-01-12 18:42:48 +01:00
{# panel for options #}
2016-01-13 18:34:56 +01:00
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'options'|_ }}</h3>
</div>
<div class="box-body">
2016-01-15 08:45:39 +01:00
{{ ExpandedForm.optionsList('update','rule-group') }}
2016-01-13 18:34:56 +01:00
</div>
<div class="box-footer">
2016-01-13 18:50:15 +01:00
<button type="submit" class="btn pull-right btn-success">{{ 'update_rule_group'|_ }}</button>
2016-01-13 18:34:56 +01:00
</div>
</div>
</div>
</div>
2016-01-13 18:50:15 +01:00
{{ Form.close|raw }}
2016-01-13 18:34:56 +01:00
{% endblock %}