write a proper schema.sql
[ppolls.git] / views / add.tt
blob7a3932f050ab48e0dce2b08e460eade11e3f118f
1 <h2>Add question</h2>
2   <% IF flash.error %>
3     <div class=error> <% flash.error %> </div>
4   <% END %>
5   <p class="comment">Please check your spelling before adding the question.</p>
6 <form action="<% add_url %>" method=post>
7   <dl>
8     <dt>Question title:
9     <dd><input class="txt" type=text name=title>
10     <dt>Question content:
11     <dd><input class="txt" type=text name=content>
12     <dt>Question type:
13     <dd><select name=type>
14         <option value="checkbox">Multiple answer</option>
15         <option value="radio">One answer</option>
16       </select> 
17     <dt>Answer choices, one on each line:
18     <dd><textarea class="txtarea" rows="10" name=answers></textarea>
19     <dd><input type=submit value="Add">
20   </dl>
21 </form>