PageRenderTime 19ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/admin/edit-post.mustache

http://github.com/TheOnly92/bloody.go
Mustache | 33 lines | 33 code | 0 blank | 0 comment | 0 complexity | 5af4935a728ecdeee737da31ad4ffdf1 MD5 | raw file
 1<article class="module width_full">
 2	<header><h3>Edit Post</h3></header>
 3	<form method="post" action="/admin/post/edit/{{id}}">
 4	<div class="module_content">
 5		<fieldset>
 6			<label for="title">Title</label>
 7			<input type="text" id="title" name="title" value="{{Title}}" />
 8		</fieldset>
 9		<fieldset>
10			<label for="content">Content</label>
11			<div style="clear: both"></div>
12			<textarea id="content" name="content" style="height: 200px;">{{Content}}</textarea>
13		</fieldset>
14	</div>
15	<footer>
16		<div class="submit_link">
17			<select name="status" id="status">
18				<option value="0"{{#Draft}} selected="selected"{{/Draft}}>Draft</option>
19				<option value="1"{{#Publish}} selected="selected"{{/Publish}}>Published</option>
20			</select>
21			<input type="submit" value="Post!" />
22		</div>
23	</footer>
24	</form>
25</article>
26<script type="text/javascript">
27$('#content').cleditor()[0].focus();
28</script>
29<style>
30.cleditorMain {
31	margin: 0 10px;
32}
33</style>