2007-10-09 15:09:06 +00:00
|
|
|
<% #main %>
|
|
|
|
<div class="ample">
|
2008-03-27 15:10:31 +00:00
|
|
|
<% members.link add <% gettext "Add member" %> prefix="... " %>
|
2007-10-09 15:09:06 +00:00
|
|
|
</div>
|
2008-03-27 15:10:31 +00:00
|
|
|
<% gettext Show prefix="... " %>
|
|
|
|
<% members.link . all %>
|
2007-10-09 15:09:06 +00:00
|
|
|
<% members.link owners prefix="| " %>
|
|
|
|
<% members.link contributors prefix="| " %>
|
|
|
|
<% members.link managers prefix="| " %>
|
|
|
|
<% members.link subscribers prefix="| " %>
|
|
|
|
<% response.pager %>
|
|
|
|
<% response.list %>
|
|
|
|
<% response.pager %>
|
|
|
|
|
2007-10-11 23:03:17 +00:00
|
|
|
<% #login %>
|
2008-04-21 20:46:29 +00:00
|
|
|
<p class="storyTitle"><% response.title %></p>
|
2007-10-11 23:03:17 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
|
|
|
$("#submit").click(function() {
|
|
|
|
var token = "<% session.token %>";
|
|
|
|
var name = $("#name").val();
|
|
|
|
var password = $("#password").val();
|
|
|
|
$("input:password").val("");
|
|
|
|
$.ajax({
|
|
|
|
async: false,
|
|
|
|
url: '<% members.href salt.js %>',
|
|
|
|
data: "user=" + encodeURIComponent(name),
|
|
|
|
dataType: "json",
|
2008-04-21 20:46:29 +00:00
|
|
|
error: function() { /* ... */ },
|
2007-10-11 23:03:17 +00:00
|
|
|
success: function(salt) {
|
|
|
|
$("#digest").val($.md5($.md5(password + salt) + token));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
return true;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<form id="login" method="post" action="<% response.action %>">
|
|
|
|
<input type="hidden" name="digest" id="digest" />
|
|
|
|
<table border="0" cellspacing="0" cellpadding="3">
|
|
|
|
<tr>
|
2008-03-27 15:10:31 +00:00
|
|
|
<td class="small"><% gettext "Username" suffix=":" %></td>
|
2007-10-15 23:29:03 +00:00
|
|
|
<td>
|
2007-10-11 23:03:17 +00:00
|
|
|
<input type="text" name="name" id="name" size="15" tabindex="1"
|
2007-10-15 23:29:03 +00:00
|
|
|
value="<% request.name encoding="form" %>" />
|
2007-10-11 23:03:17 +00:00
|
|
|
</td>
|
2007-10-15 23:29:03 +00:00
|
|
|
<td rowspan="4"> </td>
|
2007-10-11 23:03:17 +00:00
|
|
|
<td class="small">
|
2008-03-27 15:10:31 +00:00
|
|
|
<% members.link register <% gettext "Not registered yet" %> %>
|
2007-10-11 23:03:17 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2008-03-27 15:10:31 +00:00
|
|
|
<td class="small"><% gettext Password suffix=: %></td>
|
2007-10-11 23:03:17 +00:00
|
|
|
<td>
|
|
|
|
<input type="password" name="password" id="password" size="15" tabindex="2" />
|
|
|
|
</td>
|
|
|
|
<td class="small">
|
2008-03-27 15:10:31 +00:00
|
|
|
<% members.link reset <% gettext "Password forgotten?" %> %>
|
2007-10-11 23:03:17 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2007-10-15 23:29:03 +00:00
|
|
|
<td> </td>
|
2007-10-11 23:03:17 +00:00
|
|
|
<td colspan="2" class="small">
|
|
|
|
<input type="checkbox" id="remember" name="remember" tabindex="3"
|
|
|
|
<% if <% request.remember %> is "on" then 'checked="checked"' %> />
|
2008-03-27 15:10:31 +00:00
|
|
|
<label for="remember"><% gettext "Remember me" %></label>
|
2007-10-11 23:03:17 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2007-10-15 23:29:03 +00:00
|
|
|
<td> </td>
|
2007-10-11 23:03:17 +00:00
|
|
|
<td colspan="2"><br />
|
|
|
|
<button type="submit" id="submit" name="login" value="1"
|
2008-03-27 15:10:31 +00:00
|
|
|
tabindex="4"><% gettext Login %></button>
|
|
|
|
<a href="" class="cancel"><% gettext Cancel %></a>
|
2007-10-11 23:03:17 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<% #register %>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
|
|
|
$("#submit").click(function() {
|
|
|
|
var token = "<% session.token %>";
|
|
|
|
var password = $("#password").val();
|
|
|
|
var passwordConfirm = $("#passwordConfirm").val();
|
|
|
|
$("input:password").val("");
|
|
|
|
// Check both passwords but let the server do the error handling
|
|
|
|
if (!password || !passwordConfirm) {
|
|
|
|
return true;
|
|
|
|
} else if (password !== passwordConfirm) {
|
|
|
|
$("#password1").val(0);
|
|
|
|
$("#password2").val(1);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
var hash = $.md5(password + token);
|
|
|
|
$("#hash").val(hash);
|
|
|
|
return true;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<form method="post" action="<% response.action %>">
|
|
|
|
<input type="hidden" name="hash" id="hash" />
|
|
|
|
<table border="0" cellspacing="0" cellpadding="3">
|
|
|
|
<tr>
|
2008-03-27 15:10:31 +00:00
|
|
|
<td class="small"><% gettext Username suffix=: %></td>
|
2007-10-15 23:29:03 +00:00
|
|
|
<td>
|
|
|
|
<input type="text" name="name" value="<% request.name encoding="form" %>" />
|
2007-10-11 23:03:17 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2008-03-27 15:10:31 +00:00
|
|
|
<td class="small" valign="top"><% gettext e-mail suffix=: %></td>
|
2007-10-11 23:03:17 +00:00
|
|
|
<td>
|
2007-10-15 23:29:03 +00:00
|
|
|
<input type="text" name="email" value="<% request.email encoding="form" %>" />
|
2007-10-11 23:03:17 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2008-03-27 15:10:31 +00:00
|
|
|
<td class="small"><% gettext Password suffix=: %></td>
|
2007-10-15 23:29:03 +00:00
|
|
|
<td>
|
2007-10-11 23:03:17 +00:00
|
|
|
<input type="password" name="password" id="password" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2008-03-27 15:10:31 +00:00
|
|
|
<td class="small"><% gettext "Confirm password" suffix=: %></td>
|
2007-10-15 23:29:03 +00:00
|
|
|
<td>
|
2007-10-11 23:03:17 +00:00
|
|
|
<input type="password" name="passwordConfirm" id="passwordConfirm" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2007-10-15 23:29:03 +00:00
|
|
|
<td></td>
|
|
|
|
<td><br />
|
2007-10-11 23:03:17 +00:00
|
|
|
<button type="submit" id="submit" name="register"
|
2008-03-27 15:10:31 +00:00
|
|
|
value="register"><% gettext Register %></button>
|
|
|
|
<a href="" class="cancel"><% gettext Cancel %></a>
|
2007-10-11 23:03:17 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
|
2007-10-15 23:29:03 +00:00
|
|
|
<% #reset %>
|
2008-04-22 14:57:18 +00:00
|
|
|
<p class="storyTitle"><% response.title %></p>
|
|
|
|
<p class="small"><% gettext "Enter your user name and the e-mail address you
|
|
|
|
have used when you registered. You will then receive a confirmation e-mail
|
|
|
|
containing further instructions." %></p>
|
2007-10-15 23:29:03 +00:00
|
|
|
<form id="login" method="post" action="<% response.action %>">
|
2008-03-27 15:10:31 +00:00
|
|
|
<div class="small"><% gettext Username suffix=: %></div>
|
2007-10-15 23:29:03 +00:00
|
|
|
<div><input type="text" name="name" id="name" size="15" tabindex="1"
|
|
|
|
value="<% request.name encoding="form" %>" /></div>
|
2008-03-27 15:10:31 +00:00
|
|
|
<div class="small"><% gettext e-mail suffix=: %></div>
|
2007-10-15 23:29:03 +00:00
|
|
|
<div><input type="text" name="email" id="email" size="15" tabindex="2"
|
|
|
|
value="<% request.email encoding="form" %>"/></div>
|
|
|
|
<br />
|
|
|
|
<button type="submit" id="submit" name="reset" value="1"
|
2008-03-27 15:10:31 +00:00
|
|
|
tabindex="4"><% gettext "Reset password" %></button>
|
|
|
|
<a href="" class="cancel"><% gettext Cancel %></a>
|
2007-10-15 23:29:03 +00:00
|
|
|
</form>
|
|
|
|
|
2008-04-22 14:57:18 +00:00
|
|
|
<% #password %>
|
|
|
|
<p class="storyTitle"><% response.title %></p>
|
|
|
|
<form id="login" method="post" action="<% response.action %>">
|
|
|
|
<div class="small"><% gettext Password suffix=: %></div>
|
|
|
|
<div><input type="password" name="password" id="password" size="15" tabindex="1" /></div>
|
|
|
|
<div class="small"><% gettext "Confirm Password" suffix=: %></div>
|
|
|
|
<div><input type="password" name="passwordConfirm" id="passwordConfirm"
|
|
|
|
size="15" tabindex="2" /></div>
|
|
|
|
<input type="hidden" name="user" id="user" value="<% request.user %>" />
|
|
|
|
<input type="hidden" name="token" id="token" value="<% request.token %>" />
|
|
|
|
<br />
|
|
|
|
<button type="submit" id="submit" name="save" value="1"
|
|
|
|
tabindex="4"><% gettext Save %></button>
|
|
|
|
<a href="" class="cancel"><% gettext Cancel %></a>
|
|
|
|
</form>
|
|
|
|
|
2007-10-09 15:09:06 +00:00
|
|
|
<% #add %>
|
|
|
|
<form method="post" action="<% response.action %>">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
2007-10-15 23:29:03 +00:00
|
|
|
<td>
|
|
|
|
<input type="text" name="term" id="term"
|
|
|
|
value="<% request.term encoding="form" %>" />
|
2007-10-09 15:09:06 +00:00
|
|
|
</td>
|
2007-10-15 23:29:03 +00:00
|
|
|
<td>
|
2008-03-27 15:10:31 +00:00
|
|
|
<button type="submit" name="search" value="1"><% gettext Search %></button>
|
|
|
|
<a href="<% this.href %>"><% gettext Cancel %></a>
|
2007-10-09 15:09:06 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
<% response.result %>
|
|
|
|
|
2008-01-19 17:36:33 +00:00
|
|
|
<% #results %>
|
2007-10-09 15:09:06 +00:00
|
|
|
<form method="post" action="<% response.action %>">
|
|
|
|
<% param.result prefix="<br />" %>
|
|
|
|
<br />
|
2008-03-27 15:10:31 +00:00
|
|
|
<button type="submit" id="add" name="add" value="1">
|
|
|
|
<% gettext "Add to members" %>
|
|
|
|
</button>
|
2007-10-09 15:09:06 +00:00
|
|
|
</form>
|
|
|
|
|
2008-01-19 17:36:33 +00:00
|
|
|
<% #result %>
|
2007-10-09 15:09:06 +00:00
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td valign="top">
|
|
|
|
<input type="radio" name="name" id="<% param.name %>" value="<% param.name %>" />
|
|
|
|
</td>
|
|
|
|
<td><label for="<% param.name %>"><% param.name %></label></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|