<%inherit file="/base.mako"/>
<%include file="/flash.mako"/>
<div class="post">
<h2 class="title">New Post</h2>
<%include file="/errors.mako"/>
<form id="post-new" action="${h.url_for('/post/edit')}" method="post">
<fieldset>
<div class="form-item">
<!-- <label for="post-title">Title:</label> -->
<input type="text" name="post-title" id="post-title" class="form-text" />
</div>
<!-- <label for="post-body">Body:</label> -->
<textarea name="post-body" id="post-body" class="form-textarea"></textarea>
<label for="post-tags">Tags:</label>
<input type="text" name="post-tags" id="post-tags" class="form-text" />
<label for="post-authored">Authored:</label>
<input type="text" name="post-authored" id="post-authored" class="form-text" value="${c.now.strftime('%Y/%m/%d %H:%M:%S')}" />
<input type="submit" name="action" value="Save Draft" class="form-button"/>
<input type="submit" name="action" value="Save & Publish" class="form-button"/>
</fieldset>
</form>