${h.field(
"Name",
h.text(name='name'),
required=True,
)}
${h.field(
"Path",
h.text(name='path'),
required=True,
)}
${h.field(
'Section',
h.select(
"section",
id='section',
selected_values=[],
options=c.available_sections,
onchange="callAjax('%s', 'section', 'before'); return false;"%(
h.url_for(controller="nav", action="before_field_json")
),
),
required=True
)}
${h.field(
"Before",
h.select(
"before",
id='before',
options = c.before_options,
selected_values=[],
),
)}
<%def name="js()">
%def>