## -*- coding: UTF-8 -*-
## new.html
<%inherit file="layout.html" />
<%
# POST to collection URL
url_args = {'controller': c.controller, 'action': 'index'}
if c.is_nested:
url_args[c.parent_id_name] = c.parent_id
%>
${h.form(h.url_for(**url_args), method='POST')}
<%include file='_form.html' />
${h.end_form()}