2007-03-30 04:36:52 +00:00
|
|
|
<div title="Account signup" id="signupform" class="form">
|
|
|
|
|
<% form_tag :action=> "create" do %>
|
|
|
|
|
|
2010-01-12 17:49:29 -08:00
|
|
|
<%= error_messages_for 'user' %><br/>
|
2007-03-30 04:36:52 +00:00
|
|
|
|
|
|
|
|
<%= render_flash %>
|
|
|
|
|
|
|
|
|
|
<h3><%= @heading -%></h3>
|
|
|
|
|
|
2009-12-29 12:22:44 -08:00
|
|
|
<table>
|
|
|
|
|
<%if Tracks::Config.auth_schemes.include?('cas') && session[:cas_user]%>
|
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-12-30 10:48:41 -08:00
|
|
|
<td>
|
|
|
|
|
<%= hidden_field "user", "login", :value => session[:cas_user] %>
|
|
|
|
|
<%= hidden_field "user", "password", :value => session[:cas_user] %>
|
|
|
|
|
<%= hidden_field "user", "password_confirmation", :value => session[:cas_user] %>
|
|
|
|
|
<%= hidden_field"user", "auth_type", :value => "cas" %></td>
|
2009-11-23 22:23:37 -08:00
|
|
|
</tr>
|
|
|
|
|
<%else%>
|
2009-12-29 12:22:44 -08:00
|
|
|
<tr>
|
2009-11-24 13:09:29 -08:00
|
|
|
<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-12-29 12:22:44 -08:00
|
|
|
<tr>
|
|
|
|
|
<td><label for="user_auth_type">Authentication Type:</label></td>
|
|
|
|
|
<td><%= select("user", "auth_type", @auth_types, { :include_blank => false })%></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>
|
|
|
|
|
|
|
|
|
|
|