Misc. fixes
[bpt/portal.git] / apps.mlt
index 3a26e41..c75781e 100644 (file)
--- a/apps.mlt
+++ b/apps.mlt
@@ -104,7 +104,7 @@ First, create this UNIX user:
 <% end %>
 </select></td></tr>
 <tr> <td align="right"><b>Initial transaction amount</b>:</td> <td><input name="amount"></td> </tr>
-<tr> <td align="right"><b>Initial transaction description</b>:</td> <td><input name="descr"></td> </tr>
+<tr> <td align="right"><b>Initial transaction description</b>:</td> <td><input name="descr" value="PayPal"></td> </tr>
 <tr> <td align="right"><input type="checkbox" name="subscribe" checked></td> <td>Subscribe to hcoop-announce</td> </tr>
 <tr> <td align="right"><b>Groups</b>:</td> <td><select name="grp" size="5" multiple>
 <% foreach group in Group.listGroups () do %>
@@ -133,7 +133,8 @@ end %>
        <tr> <td align="right"><b>Approved by</b>:</td> <td><%
                ref first = true;
                ref found = false;
-               foreach (id, name) in App.votes (#id appl) do
+               val votes = App.votes (#id appl);
+               foreach (id, name) in votes do
                        if first then
                                first := false
                        else
@@ -154,7 +155,7 @@ end %>
        </table>
 
        <% if board then %>
-       <a href="apps?approve=<% #id appl %>">Approve this member.</a><br>
+       <% if length votes >= 2 then %><a href="apps?approve=<% #id appl %>">Approve this member.</a><br><% end %>
        <a href="apps?deny=<% #id appl %>">Deny this application.</a>
        <% end %>
 <% end