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

53 lines
1.8 KiB
Twig
Raw Normal View History

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