Guestbook Comment Form
This page uses a Hashtag Form to store Comments in a Guestbook.
The Form is styled using Bootstrap 3 default theme classes.
Processed this Hashtag Markup:
<# start form for guestbook;
set form.class to "form-horizontal";
when done redirect to "/guestbook/list";
#>
<div class="form-group">
<label for="name" class="col-sm-2 control-label">Name</label>
<div class="col-sm-8">
<input <# name #> type="text" required class="form-control" id="name">
</div>
</div>
<div class="form-group">
<label for="comment" class="col-sm-2 control-label">Comment</label>
<div class="col-sm-8">
<textarea <# comment #> required class="form-control" rows="4" id="comment"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-8">
<button <# create button #> type="submit" class="btn btn-primary">
Sign Guestbook!
</button>
</div>
</div>
<# end form #>