kai / kai / templates / snippets / add.mako

Full commit
<h1>${_('Add Snippet')}</h1>
<p>${_("""Pylons snippet repository is a place to share their code snippets with the community.
    Please only share fully functioning and tested snippets and include instructions so
    that novice and experienced Pylons users can benefit.""")}</p>

% if c.exists:
    <h3><span class="error-message">A snippet with that title already exists, please choose another title.</span></h3>
% endif

% if c.add_error:
    <h3><span class="error-message">An unknown error occurred when adding your snippet. ${c.error}</span></h3>
% endif

<form action="${url('snippet_add')}" method="POST">
<input type="text" name="title" value="" id="title" /><br />
<br />
<textarea name="description" id="description" style="width: 50em; height: 5em"></textarea><br />
<br />
<textarea name="content" id="content" style="width: 50em; height: 10em"></textarea><br />
<br />
<input type="text" name="tags" id="tags" value="" /><br />
<br />
<input type="submit" value="Add Snippet" />
<%def name="title()">${parent.title()} - ${_('Add Snippet')}</%def>
<%inherit file="layout.mako" />