27 lines
1.2 KiB
Mako
27 lines
1.2 KiB
Mako
<%inherit file="/base.mako"/>
|
|
<div class="post">
|
|
<h2 class="title">New Post</h2>
|
|
<%include file="/flash.mako"/>
|
|
<%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="title" id="post-title" class="form-text" />
|
|
</div>
|
|
<div class="form-item">
|
|
<!-- <label for="post-body">Body:</label> -->
|
|
<textarea name="body" id="post-body" class="form-textarea"></textarea>
|
|
</div>
|
|
<div class="form-item">
|
|
<label for="post-tags">Tags:</label>
|
|
<input type="text" name="tags" id="post-tags" class="form-text" />
|
|
</div>
|
|
<div class="form-item">
|
|
<input type="submit" name="action" value="Save Draft" class="form-button"/>
|
|
<input type="submit" name="action" value="Save & Publish" class="form-button"/>
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
|