X-Git-Url: https://git.hcoop.net/hcoop/portal.git/blobdiff_plain/848cdc06ba6b02a574d37badfd42dd085eeab4fe..f2bab7c8c21cd0dde8c63b8450ce628ff654cb80:/apps.mlt diff --git a/apps.mlt b/apps.mlt index d2a7e92..2488349 100644 --- a/apps.mlt +++ b/apps.mlt @@ -1,7 +1,7 @@ <% @header [("title", ["Membership applications"])]; val you = Init.getUserId (); -val board = Group.inGroupName "board"; +val board = Group.reallyInGroupName "board"; val root = Group.inGroupNum 0; ref showNormal = true; @@ -13,7 +13,7 @@ if $"show" <> "" then val appl = App.lookupApp (#app user) %> - + + @@ -67,7 +68,7 @@ elseif $"approve" <> "" then %>

Approve application for <% #name appl %>

"> - Message:
+ Message (will be added at the end of ~hcoop/portal/welcome.txt, so you might want to include some introductory text):

<% @@ -83,10 +84,10 @@ elseif $"cmd" = "approved" then %>

Pending applications

<% - foreach appl in App.listApps App.ACCEPTED do %> + foreach appl in App.listApps [App.ACCEPTED, App.BEING_ADDED] do %>


Received: <% #applied appl %>
Received: <% #applied appl %> (<% Util.diffFromNow (#applied appl) %> ago)
Approved by: <% ref first = true; ref found = false; @@ -32,6 +32,7 @@ if $"show" <> "" then end %> <% if (iff board then not found else false) then %>[Vote]<% end %>
Username: <% #name appl %>
Real name: <% Web.html (#rname appl) %>
E-mail: <% #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) %>
- + <% switch #paypal appl of SOME s => %> - <% end; - switch #checkout appl of - SOME s => %> <% end %> + <% if #status appl = App.BEING_ADDED then %><% end %>
Received: <% #applied appl %>
Received: <% #applied appl %> (<% Util.diffFromNow (#applied appl) %> ago)
Approved by: <% ref first = true; ref found = false; @@ -103,13 +104,11 @@ elseif $"cmd" = "approved" then
E-mail address: <% #email appl %>
PayPal: <% s %>
Google Checkout: <% s %>
Forward e-mail? <% if #forward appl then %>yes<% else %>no<% end %>
Proposed uses: <% Web.htmlNl (#uses appl) %>
Other information: <% Web.htmlNl (#other appl) %>
WARNING: Someone already followed the add link for this application. Maybe he forgot to finish.
<% if root then %> @@ -121,10 +120,10 @@ elseif $"add" <> "" then showNormal := false; val id = Web.stoi ($"add"); val appl = App.lookupApp id; - App.add id %> + App.preAdd id %> -First, run this on deleuze: -
magic-create-user-wrapper <% #name appl %> "<% #rname appl %>"<% if #forward appl then %> "<% #email appl %>"<% end %>
+First, run this on gibran: +
new-user <% #name appl %> "<% #rname appl %>"<% if #forward appl then %> "<% #email appl %>"<% end %>
@@ -160,10 +159,10 @@ end %> <% if showNormal then %>

Pending applications

-<% foreach appl in App.listApps App.PENDING do %> +<% foreach appl in App.listApps [App.PENDING] do %>


- + <% switch #paypal appl of SOME s => %> - <% end; - switch #checkout appl of - SOME s => %> <% end %> @@ -195,10 +191,10 @@ end %>
Received: <% #applied appl %>
Received: <% #applied appl %> (<% Util.diffFromNow (#applied appl) %> ago)
Approved by: <% ref first = true; ref found = false; @@ -185,9 +184,6 @@ end %>
E-mail address: <% #email appl %>
PayPal: <% s %>
Google Checkout: <% s %>
Forward e-mail? <% if #forward appl then %>yes<% else %>no<% end %>
Proposed uses: <% Web.htmlNl (#uses appl) %>
<% if board then %> - <% if length votes >= 2 then %>Approve this member.
<% end %> + <% if length votes >= 3 then %>Approve this member.
<% end %> Deny this application. <% end %> -<% end +<% end end %> -<% @footer[] %> \ No newline at end of file +<% @footer[] %>