Make reply input fields have a default text.
[Sone.git] / src / main / resources / templates / index.html
1 <%include include/head.html>
2
3         <script language="javascript">
4                 /* register input field/textarea swap. */
5                 $(document).ready(function() {
6                         registerInputTextareaSwap("#sone input.createpost", "What are you doing?");
7                         registerInputTextareaSwap("#sone input.create-reply", "Write a Reply…");
8                 });
9         </script>
10
11         <h1><%= Page.Index.Page.Title|l10n|insert needle="{sone}" key=currentSone.name|html></h1>
12
13         <div>
14                 <form action="createPost.html" method="post">
15                         <div>
16                                 <label for="text"><%= Page.Index.Label.Text|l10n|html></label>
17                                 <input class="createpost" name="text" />
18                         </div>
19                         <div>
20                                 <button type="submit"><%= Page.Index.Button.Post|l10n|html></button>
21                         </div>
22                 </form>
23         </div>
24
25         <h1><%= Page.Index.PostList.Title|l10n|html></h1>
26
27         <div id="posts">
28                 <%foreach posts post>
29                         <%include include/viewPost.html>
30                 <%foreachelse>
31                         <div><%= Page.Index.PostList.Text.NoPostYet|l10n|html></div>
32                 <%/foreach>
33         </div>
34         
35         <h1><%= Page.Index.AddSone.Title|l10n|html></h1>
36         
37         <div><%= Page.Index.AddSone.Description|l10n|html></div>
38
39         <form action="addSone.html" method="post">
40                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
41                 <input id="addsone" type="text" name="request-uri" />
42                 <button type="submit"><%= Page.Index.AddSone.Button.Add|l10n|html></button>
43         </form>
44
45 <%include include/tail.html>