view app/views/Application/show.html @ 9:87c015a99196 draft

add jquery.tools-1.2.5.toolbox
author e085711
date Thu, 13 Sep 2012 11:06:17 +0900
parents cf7b286f4bd8
children 2cd590fc87bf
line wrap: on
line source

#{extends 'main.html' /}
#{set title:post.title /}


<ul id="pagination">
	#{if post.previous()}
		<li id="previous">
			<a href="@{Application.show(post.previous().id)}">
				${post.previous().title}
			</a>
		</li>
	#{/if}
	#{if post.next()}
		<li id="next">
			<a href="@{Application.show(post.next().id)}">
			${post.next().title}
			</a>
		</li>
	#{/if}
</ul>

#{display post:post, as:'full' /}

<h3> Post a comment</h3>

#{form @Application.postComment(post.id)}

	#{ifErrors}
		<p class="error">
			All fields are required!
		</p>
	#{/ifErrors}
	<p>
		<label for="author">Your name:</label>
		<input type="text" name="author" id="author" value="${params.author}" />
	</p>
	<p>
		<label for="content">Your message:</label>
		<textarea name="content" id="content">${params.content}</textarea>
	</p>
	<p>
		<input type="submit" value="Submit your comment"/>
	</p>
#{/form}