% @header [("title", ["Membership applications"])]; val you = Init.getUserId (); val board = Group.inGroupName "board"; val root = Group.inGroupNum 0; ref showNormal = true; if $"vote" <> "" then Group.requireGroupName "board"; App.vote (you, Web.stoi ($"vote")) %>
Received: | <% #applied appl %> |
Approved by: | <% ref first = true; ref found = false; foreach (id, name) in App.votes (#id appl) do if first then first := false else %>, <% end %><% name %><% end %> |
Username: | <% #name appl %> |
Real name: | <% Web.html (#rname appl) %> |
E-mail address: | <% #email appl %> |
Forward e-mail? | <% if #forward appl then %>yes<% else %>no<% end %> |
Proposed uses: | <% Web.htmlNl (#uses appl) %> |
Other information: | <% Web.htmlNl (#other appl) %> |
portal_adduser <% #name appl %> "<% #rname appl %>"<% if #forward appl then %> "<% #email appl %>"<% end %>
You should then run visudo to add <% #name appl %> to the MEMBERS group. If you're not transmitting <% #name appl %>'s password to him by other means, run savepass <% #name appl %> <password> to save it in ~<% #name appl %>/.pass. If <% #name appl %> is bootstrapping with public-key ssh, don't forget to run savekey <% #name appl %> <authorized_keys file location>.
Abort adding this member <% elseif $"abort" <> "" then App.abortAdd (Web.stoi ($"abort")) %>Received: | <% #applied appl %> |
Approved by: | <% ref first = true; ref found = false; val votes = App.votes (#id appl); foreach (id, name) in votes do if first then first := false else %>, <% end %><% name %><% if id = you then found := true %> [Unvote]<% end end %> <% if (iff board then not found else false) then %>[Vote]<% end %> |
Username: | <% #name appl %> |
Real name: | <% Web.html (#rname appl) %> |
E-mail address: | <% #email appl %> |
Forward e-mail? | <% if #forward appl then %>yes<% else %>no<% end %> |
Proposed uses: | <% Web.htmlNl (#uses appl) %> |
Other information: | <% Web.htmlNl (#other appl) %> |