Commit | Line | Data |
---|---|---|
ee587f7f AC |
1 | <html><head> |
2 | <title>Hcoop Portal: Exception</title> | |
3 | </head><body> | |
4 | ||
5 | <h1><b>Exception</b></h1> | |
208e2cbc AC |
6 | |
7 | <% switch Web.getExn () of | |
8 | Fail msg => %> | |
9 | <b>Fail</b>: <% Web.htmlNl msg %> | |
10 | <% | Init.C.Sql msg => %> | |
11 | <b>SQL</b>: <% Web.htmlNl msg %> | |
12 | <% | Init.Access msg => %> | |
13 | <b>Authorization error</b>: <% Web.htmlNl msg %> | |
14 | <% | Web.Format s => %> | |
15 | <b>Format</b>: <% Web.htmlNl s %> | |
f3f3ad24 AC |
16 | |
17 | <% | Init.NeedTos => %> | |
18 | <p><b>Our records indicate that you need to agree to our Terms of Service.</b></p> | |
19 | ||
20 | <% val ap = #app (Init.getUser ()); | |
21 | ||
22 | App.readTosBody () %> | |
23 | ||
24 | <br><hr><br> | |
25 | <form action="portal" method="post"> | |
26 | ||
27 | <% val ap = App.lookupApp ap; | |
28 | switch #gname ap of | |
29 | NONE => %> | |
30 | <b>Real name:</b> <% Web.html (#rname ap) %><br> | |
31 | <input type="checkbox" name="agree"> | |
32 | <% App.readTosAgree () | |
33 | | SOME gname => %> | |
34 | <b>Member name:</b> <% Web.html (#rname ap) %><br> | |
35 | <b>Legal guardian name:</b> <% Web.html gname %><br> | |
36 | <input type="checkbox" name="agree"> | |
37 | <% App.readTosMinorAgree () | |
38 | end %> | |
39 | <br><br><input type="submit" value="Agree"> | |
40 | </form> | |
41 | ||
208e2cbc AC |
42 | <% | ex => %> |
43 | <b>Unknown exception kind.</b> Backtrace: | |
44 | <% foreach s in SMLofNJ.exnHistory ex do %> | |
45 | <li> <% Web.html s %></li> | |
46 | <% end | |
47 | end %> | |
48 | ||
ee587f7f | 49 | </body></html> |