{{extend 'nmc/layout.html'}} {{block header}} {{=response.cmd_menu}}

{{=response.title}}

{{=response.subtitle}}

{{=response.cmd_commands}} {{end}}
{{if not response.prm_input:}} {{=form.custom.begin}}
{{=form.custom.label.groupvalue}}
{{=form.custom.widget.groupvalue}}
{{=T('Data filter')}}
{{=response.cmb_transfilter}} {{=response.transfilter_id}}
{{=form.custom.label.description}}
{{=form.custom.widget.description}}
{{=T('Access rights')}}
{{=view_audit}}
{{=form.custom.end}} {{else:}} {{=form.custom.begin}} {{if form.custom.widget.subtype:}} {{pass}} {{if response.nervatype=="trans":}} {{pass}}
{{=form.custom.label.nervatype}}
{{if form.formname=='ui_audit/create':}} {{=form.custom.widget.nervatype}} {{else:}}
{{=form.custom.widget.nervatype}}
{{pass}}
{{=form.custom.label.subtype}}
{{=form.custom.widget.subtype}}
{{=form.custom.label.supervisor}}
{{=form.custom.widget.supervisor}}
{{=form.custom.label.inputfilter}}
{{=form.custom.widget.inputfilter}}
{{=form.custom.end}} {{pass}}
{{=response.cmd_home}} {{=response.cmd_close}}

{{if not response.prm_input:}}
{{=form.custom.submit}} {{if response.cmd_delete:}} {{=response.cmd_delete}} {{pass}} {{if response.cmd_add_audit:}} {{=response.cmd_add_audit}} {{pass}}
{{=response.cmd_groups_close}}
{{else:}}
{{=form.custom.submit}} {{if response.cmd_delete:}} {{=response.cmd_delete}} {{pass}}
{{=response.cmd_audit_close}}
{{pass}}