]> ruin.nu Git - ndwebbie.git/blob - root/src/settings/index.tt2
d52509a1f49466f07d8496a15e7d558c15ae8157
[ndwebbie.git] / root / src / settings / index.tt2
1 [% META title = 'Site preferences' %]
2
3 <form action="[% c.uri_for('changeStylesheet') %]" method="post"><fieldset> <legend>Style</legend>
4         Stylesheet: <select name="stylesheet">
5 [% FOR style IN stylesheets %]
6                 <option value="[% style %]" [% IF style == user.css %]selected[% END %]>[% style %]</option>
7 [% END %]
8         </select>
9         <br>
10         <input type="submit" value="Change">
11 </fieldset></form>
12 <form action="[% c.uri_for('changeBirthday') %]" method="post"><fieldset> <legend>Birthday</legend>
13         YYYY-MM-DD:
14         <input type="text" name="birthday" value="[% birthday %]" id="birthday">
15         <br><input type="submit" value="Change">
16 </fieldset></form>
17 <form action="[% c.uri_for('changePassword') %]" method="post"> <fieldset> <legend>Change password</legend>
18         <p>Old password: 
19         <input type="password" name="oldpass" value="">
20         New password: 
21         <input type="password" name="pass" value="">
22         <input type="submit" value="Submit">
23         </p>
24 </fieldset>
25 </form>
26 [%- site.stylesheets = ['ui/ui.datepicker.css'] %]
27 <script type="text/javascript" src="/static/ui/ui.core.min.js"></script>
28 <script type="text/javascript" src="/static/ui/ui.datepicker.min.js"></script>
29
30 <script type="text/javascript">
31 $(document).ready(function(){
32         $("#birthday").datepicker({
33                 yearRange: "-80:+0",
34                 dateFormat: $.datepicker.ATOM,
35                 firstDay: 1,
36                 showOn: "both",
37         });
38 });
39 </script>