1 <% val you = Init.getUserId ();
2 val yourname = Init.getUserName ();
3 val youremail = yourname ^ "@hcoop.net";
5 @header [("title", ["Member preferences"])];
11 Pref.unsetDirectory you
14 if not (iff $"discuss" = "on" then
15 Pref.subscribe ("hcoop-discuss", youremail)
17 Pref.unsubscribe ("hcoop-discuss", youremail)) then
18 %><h3><b>Error setting <tt>hcoop-discuss</tt> status</b></h3><%
21 if not (iff $"misc" = "on" then
22 Pref.subscribe ("hcoop-misc", youremail)
24 Pref.unsubscribe ("hcoop-misc", youremail)) then
25 %><h3><b>Error setting <tt>hcoop-misc</tt> status</b></h3><%
28 %><h3><b>Preferences updated</b></h3><%
32 <input type="hidden" name="cmd" value="mod">
34 <tr> <td align="right"><input type="checkbox" name="dir"<% if Pref.hasDirectory you then %> checked<% end %>></td> <td>Include me in the public member directory.</td> </tr>
35 <tr> <td align="right"><input type="checkbox" name="discuss"<% if Pref.subscribed ("hcoop-discuss", youremail) then %> checked<% end %>></td> <td>Include me on the <tt>hcoop-discuss</tt> mailing list. <i>(On-topic discussion and sporadically high volume)</i></td> </tr>
36 <tr> <td align="right"><input type="checkbox" name="misc"<% if Pref.subscribed ("hcoop-misc", youremail) then %> checked<% end %>></td> <td>Include me on the <tt>hcoop-misc</tt> mailing list. <i>(Off-topic)</i></td> </tr>
37 <tr> <td><input type="submit" value="Save"></td> </tr>