2007-03-30 04:36:52 +00:00
|
|
|
<div title="Account signup" id="signupform" class="form">
|
|
|
|
|
<% form_tag :action=> "create" do %>
|
|
|
|
|
|
|
|
|
|
<%= error_messages_for 'user' %><br/>
|
|
|
|
|
|
|
|
|
|
<%= render_flash %>
|
|
|
|
|
|
|
|
|
|
<h3><%= @heading -%></h3>
|
|
|
|
|
|
|
|
|
|
<table>
|
2009-11-23 22:23:37 -08:00
|
|
|
<%if Tracks::Config.auth_schemes.include?('cas')%>
|
2009-11-24 13:09:29 -08:00
|
|
|
<tr>
|
|
|
|
|
<td><label for="user_login">With your CAS username:</label></td>
|
|
|
|
|
<td> "<%= session[:cas_user]%>" </td>
|
2009-11-23 22:23:37 -08:00
|
|
|
</tr>
|
|
|
|
|
<tr style="display:none">
|
2009-11-30 14:26:46 -08:00
|
|
|
<td><%= session[:cas_user]%>" <%= text_field "user", "login", :size => 20, :value => session[:cas_user], :readonly => true %> </td>
|
2009-11-24 13:09:29 -08:00
|
|
|
<td><%= password_field "user", "password", :size => 20 , :value => "fakebecauseweusecas" %></td>
|
2009-11-23 22:23:37 -08:00
|
|
|
<td><%= password_field "user", "password_confirmation", :size => 20, :value => "fakebecauseweusecas" %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<%else%>
|
2009-11-24 13:09:29 -08:00
|
|
|
<tr>
|
|
|
|
|
<td><label for="user_login">Desired login:</label></td>
|
|
|
|
|
<td> <%= text_field "user", "login", :size => 20 %></td>
|
|
|
|
|
</tr>
|
2009-11-23 22:23:37 -08:00
|
|
|
<tr>
|
2007-03-30 04:36:52 +00:00
|
|
|
<td><label for="user_password">Choose password:</label></td>
|
|
|
|
|
<td><%= password_field "user", "password", :size => 20 %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label for="user_password_confirmation">Confirm password:</label></td>
|
|
|
|
|
<td><%= password_field "user", "password_confirmation", :size => 20 %></td>
|
|
|
|
|
</tr>
|
2009-11-23 22:23:37 -08:00
|
|
|
<%end%>
|
2007-03-30 04:36:52 +00:00
|
|
|
<tr>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td><input type="submit" id="signup" value="Signup »" class="primary" /></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|