Can edit rule group #794

This commit is contained in:
James Cole
2017-09-08 20:12:55 +02:00
parent 2dbdcf73ed
commit aae26c5da9
4 changed files with 12 additions and 6 deletions

View File

@@ -6,7 +6,6 @@
{% block content %}
{{ Form.model(rule, {'class' : 'form-horizontal','id' : 'store','url' : route('rules.update', rule.id)}) }}
<input type="hidden" name="rule_group_id" value="{{ rule.rule_group_id }}"/>
<input type="hidden" name="id" value="{{ rule.id }}"/>
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12">
@@ -16,6 +15,7 @@
</div>
<div class="box-body">
{{ ExpandedForm.text('title') }}
{{ ExpandedForm.select('rule_group_id', ruleGroups) }}
{{ ExpandedForm.select('trigger',allJournalTriggers(), primaryTrigger) }}
{{ ExpandedForm.checkbox('active',1,rule.active, {helpText: trans('firefly.rule_help_active')}) }}
{{ ExpandedForm.checkbox('stop_processing',1,rule.stop_processing, {helpText: trans('firefly.rule_help_stop_processing')}) }}