All pastes #767569 Raw Edit

IndiCoyote

public html v1 · immutable
·published 2007-11-09 21:25 UTC
rendered paste body
<%inherit file="../base.mako" /><div id="news_page">    <div class="recent_news">        <div class="news_story">            ${h.form(h.url(controller='news', action='do_post'), method='post')}            <div>                <label for="title">Headline:</label>                ${h.text_field('title', value=c.form_result['title'] or '')}                % if 'title' in c.form_errors:                    <span class="error">Please provide a title</span>                % endif            </div>            <div>                <label for="title">Content:</label><br>                ${h.text_area('content', content=c.form_result['content'] or '')}                % if 'content' in c.form_errors:                    <span class="error">Please provide a body</span>                % endif            </div>            ${h.submit('Post')}            ${h.link_to('Cancel', h.url('/news'), class_='small')}            ${h.end_form()}        </div>    </div></div><%def name="title()">Post News</%def>