<%inherit file="../base.mako" />
${h.form(h.url(controller='news', action='do_post'), method='post')}
${h.text_field('title', value=c.form_result['title'] or '')} % if 'title' in c.form_errors: Please provide a title % endif

${h.text_area('content', content=c.form_result['content'] or '')} % if 'content' in c.form_errors: Please provide a body % endif
${h.submit('Post')} ${h.link_to('Cancel', h.url('/news'), class_='small')} ${h.end_form()}
<%def name="title()">Post News