Commit | Line | Data |
---|---|---|
5a2812ca AC |
1 | <% @header[("title", ["Support"])]; |
2 | ||
3 | val you = Init.getUserId (); | |
4 | val admin = Group.inGroupName "support"; | |
5 | ||
6 | ref showNormal = true; | |
7 | ||
8 | if $"sub" <> "" then | |
9 | Support.subscribe { cat = Web.stoi ($"sub"), usr = you } | |
b6dd1aaf | 10 | %><h3>Subscribed</h3> |
5a2812ca AC |
11 | |
12 | <% elseif $"unsub" <> "" then | |
13 | Support.unsubscribe { cat = Web.stoi ($"unsub"), usr = you } | |
b6dd1aaf | 14 | %><h3>Unsubscribed</h3> |
5a2812ca AC |
15 | |
16 | <% elseif $"cmd" = "add" then | |
17 | Group.requireGroupName "support"; | |
18 | val id = Support.addCategory (Web.stoi ($"grp"), $"name", $"descr") | |
b6dd1aaf | 19 | %><h3>Category added</h3> |
5a2812ca AC |
20 | |
21 | <% elseif $"mod" <> "" then | |
22 | Group.requireGroupName "support"; | |
23 | showNormal := false; | |
24 | val id = Web.stoi ($"mod"); | |
25 | val cat = Support.lookupCategory id %> | |
26 | ||
b6dd1aaf | 27 | <h3>Modify category</h3> |
5a2812ca | 28 | |
a4ccdb5e | 29 | <form action="support" method="post"> |
5a2812ca | 30 | <input type="hidden" name="save" value="<% id %>"> |
b6dd1aaf AC |
31 | <table class="blanks"> |
32 | <tr> <td>Name:</td> <td><input name="name" value="<% Web.html (#name cat) %>"></td> </tr> | |
33 | <tr> <td>Owning group:</td> <td><select name="grp"> | |
5a2812ca AC |
34 | <% foreach group in Group.listGroups () do %> |
35 | <option value="<% #id group %>"<% if #id group = #grp cat then %> selected<% end %>><% #name group %></option> | |
36 | <% end %> | |
37 | </select></td> </tr> | |
b6dd1aaf | 38 | <tr> <td>Description:</td> <td><input name="descr" value="<% Web.html (#descr cat) %>"></td> </tr> |
5a2812ca AC |
39 | <tr> <td><input type="submit" value="Save"></td> </tr> |
40 | </table> | |
41 | </form> | |
42 | ||
43 | <% elseif $"save" <> "" then | |
44 | Group.requireGroupName "support"; | |
45 | val id = Web.stoi ($"save"); | |
46 | val cat = Support.lookupCategory id; | |
47 | Support.modCategory {cat with name = $"name", descr = $"descr", grp = Web.stoi ($"grp")} | |
b6dd1aaf | 48 | %><h3>Category saved</h3> |
5a2812ca AC |
49 | |
50 | <% elseif $"del" <> "" then | |
51 | Group.requireGroupName "support"; | |
52 | showNormal := false; | |
53 | val id = Web.stoi ($"del"); | |
54 | val cat = Support.lookupCategory id; | |
b6dd1aaf | 55 | %><h3>Are you sure you want to delete category "<% Web.html (#name cat) %>"?</h3> |
5a2812ca AC |
56 | <a href="support?del2=<% id %>">Yes, delete "<% Web.html (#name cat) %>"!</a> |
57 | ||
58 | <% elseif $"del2" <> "" then | |
59 | Group.requireGroupName "support"; | |
60 | val id = Web.stoi ($"del2"); | |
61 | val cat = Support.lookupCategory id; | |
62 | Support.deleteCategory id; | |
b6dd1aaf | 63 | %><h3>"<% Web.html (#name cat) %>" deleted</h3> |
5a2812ca AC |
64 | |
65 | <% end; | |
66 | ||
67 | if showNormal then %> | |
68 | ||
2d999eeb AC |
69 | <ul> |
70 | <li> If you want to <b>request permission to configure a domain</b>, use <a href="domain">the separate form for that</a>.</li> | |
71 | <li> If you want to <b>request installation of a Debian package</b>, use <a href="apt">the separate form for that</a>.</li> | |
72 | <li> If you want to <b>request a Mailman mailing list</b>, use <a href="list">the separate form for that</a>.</li> | |
73 | <li> If you want to request <b>anything related to the ability to open network connections on particular ports or to particular hosts</b>, or you want permission to <b>have a crontab</b> or <b>use FTP</b>, see the <a href="sec">security settings</a> page.</li> | |
fe3eaf62 AC |
74 | <li> If you want to <b>request a disk quota increase</b>, use <a href="quota">the separate form for that</a>.</li> |
75 | <li> If you want to <b>request an IP address</b>, use <a href="ip">the separate form for that</a>.</li> | |
2b2d5674 | 76 | <li> If you want to <b>request generation of or permission to use an SSL certificate</b>, use <a href="cert">the separate form for that</a>.</li> |
fe3eaf62 | 77 | <li> If you want to request <b>a MySQL or Postgres user account</b> or <b>a database</b>, then today is your lucky day! You don't need to ask anyone for permission to do that. Follow <a href="http://wiki.hcoop.net/MemberManual/Databases">the instructions on our wiki</a>. |
2d999eeb AC |
78 | </ul> |
79 | ||
63e19204 AC |
80 | <h3>Otherwise...</h3> |
81 | ||
ddc53b56 AC |
82 | <p>First, check <a href="http://wiki.hcoop.net/MemberManual/FAQ">our member FAQ</a> and read all the question descriptions to make sure that your problem isn't solved there.</p> |
83 | ||
84 | <p>If you don't find it, visit <a href="https://bugzilla.hcoop.net/enter_bug.cgi">our Bugzilla database</a> to open a custom issue. You can log in there using the same username and password that you are using to access this portal.</p> | |
63e19204 AC |
85 | |
86 | <!--h3>Choose a category:</h3> | |
5a2812ca AC |
87 | |
88 | <% foreach (sub, cat) in Support.listCategoriesWithSubscriptions you do %> | |
1cb3df3f | 89 | <a href="issue?cat=<% #id cat %>"><% Web.html (#name cat) %></a>: <% Web.html (#descr cat) %> |
5a2812ca AC |
90 | <% if sub then %> |
91 | <a href="support?unsub=<% #id cat %>">[Unsubscribe]</a> | |
92 | <% else %> | |
93 | <a href="support?sub=<% #id cat %>">[Subscribe]</a> | |
94 | <% end %> | |
95 | <% if admin then %> | |
96 | <a href="support?mod=<% #id cat %>">[Modify]</a> | |
97 | <a href="support?del=<% #id cat %>">[Delete]</a> | |
98 | <% end %> | |
99 | <br> | |
63e19204 | 100 | <% end %>--> |
5a2812ca AC |
101 | |
102 | <% if admin then %> | |
103 | ||
fe3eaf62 | 104 | <!--h3>Add new category</h3> |
5a2812ca | 105 | |
a4ccdb5e | 106 | <form action="support" method="post"> |
5a2812ca | 107 | <input type="hidden" name="cmd" value="add"> |
b6dd1aaf AC |
108 | <table class="blanks"> |
109 | <tr> <td>Name:</td> <td><input name="name"></td> </tr> | |
110 | <tr> <td>Owning group:</td> <td><select name="grp"> | |
5a2812ca AC |
111 | <% foreach group in Group.listGroups () do %> |
112 | <option value="<% #id group %>"><% #name group %></option> | |
113 | <% end %> | |
114 | </select></td> </tr> | |
b6dd1aaf | 115 | <tr> <td>Description:</td> <td><input name="descr"></td> </tr> |
5a2812ca AC |
116 | <tr> <td><input type="submit" value="Add"></td> </tr> |
117 | </table> | |
fe3eaf62 | 118 | </form--> |
5a2812ca AC |
119 | |
120 | <% end %> | |
121 | ||
122 | <% end %> | |
123 | ||
124 | <% @footer[] %> |