2010-01-15 22:40:32 +00:00
|
|
|
<%inherit file="/base.mako"/>
|
2010-01-30 21:52:59 +00:00
|
|
|
<%include file="/flash.mako"/>
|
2010-01-15 22:40:32 +00:00
|
|
|
<div class="post">
|
|
|
|
<h2 class="title">Edit Post: ${c.post.title}</h2>
|
|
|
|
<%include file="/errors.mako"/>
|
2010-01-18 22:29:50 +00:00
|
|
|
<form id="post-new" action="${h.url_for(controller='post',action='edit', id=c.post.id)}" method="post">
|
2010-01-15 22:40:32 +00:00
|
|
|
<fieldset>
|
|
|
|
<div class="form-item">
|
|
|
|
<!-- <label for="post-title">Title:</label> -->
|
2010-02-22 21:20:54 +00:00
|
|
|
<input type="text" name="post-title" value="${c.post.title}" id="post-title" class="form-text" />
|
2010-01-15 22:40:32 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-item">
|
|
|
|
<!-- <label for="post-body">Body:</label> -->
|
2010-02-22 21:20:54 +00:00
|
|
|
<textarea name="post-body" id="post-body" class="form-textarea">${c.post.body}</textarea>
|
2010-01-15 22:40:32 +00:00
|
|
|
</div>
|
2010-01-21 21:40:15 +00:00
|
|
|
<div class="form-item">
|
|
|
|
<label for="post-tags">Tags:</label>
|
2010-02-22 21:20:54 +00:00
|
|
|
<input type="text" name="post-tags" id="post-tags" class="form-text" value="${c.post.tags_list}" />
|
2010-01-21 21:40:15 +00:00
|
|
|
</div>
|
2010-01-15 22:40:32 +00:00
|
|
|
<div class="form-item">
|
2010-02-15 13:55:56 +00:00
|
|
|
<label for="post-authored">Authored:</label>
|
|
|
|
<input type="text" name="post-authored" id="post-authored" class="form-text" value="${c.post.created.strftime('%Y/%m/%d %H:%M:%S')}" />
|
2010-02-16 06:02:31 +00:00
|
|
|
<div class="form-hint">Date format is YYYY/MM/DD HH:MM:SS.</div>
|
2010-02-15 13:55:56 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-item">
|
2010-02-02 20:08:28 +00:00
|
|
|
% if c.post.status == u'published':
|
2010-02-16 06:02:31 +00:00
|
|
|
<input type="submit" name="post-action" value="Save" class="form-button"/>
|
2010-02-02 20:08:28 +00:00
|
|
|
% else:
|
2010-02-16 06:02:31 +00:00
|
|
|
<input type="submit" name="post-action" value="Save Draft" class="form-button"/>
|
|
|
|
<input type="submit" name="post-action" value="Save & Publish" class="form-button"/>
|
2010-02-02 20:08:28 +00:00
|
|
|
% endif
|
2010-01-15 22:40:32 +00:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|