{{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.menukey}}
{{=form.custom.widget.menukey}}
{{=form.custom.label.description}}
{{=form.custom.widget.description}}
{{=form.custom.label.funcname}}
{{=form.custom.widget.funcname}}
{{=form.custom.label.modul}}
{{=form.custom.widget.modul}}
{{=form.custom.label.icon}}
{{=form.custom.widget.icon}}
{{=form.custom.label.address}}
{{=form.custom.widget.address}}
{{=T('Parameters')}}
{{=view_menufields}}
{{=form.custom.end}} {{else:}} {{=form.custom.begin}}
{{=form.custom.label.fieldname}}
{{=form.custom.widget.fieldname}}
{{=form.custom.label.description}}
{{=form.custom.widget.description}}
{{=form.custom.label.fieldtype}}
{{=form.custom.label.orderby}}
{{=form.custom.widget.fieldtype}} {{=form.custom.widget.orderby}}
{{=form.custom.end}} {{pass}}
{{=response.cmd_home}} {{=response.cmd_close}}

{{if not response.prm_input:}}
{{=form.custom.submit}} {{if response.cmd_delete_menu:}} {{=response.cmd_delete_menu}} {{pass}} {{if response.cmd_add_menufields:}} {{=response.cmd_add_menufields}} {{pass}}
{{=response.cmd_menucmd_close}}
{{else:}}
{{=form.custom.submit}} {{if response.cmd_delete_menufields:}} {{=response.cmd_delete_menufields}} {{pass}}
{{=response.cmd_menufields_close}}
{{pass}}