mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-07 09:48:50 +01:00
44 lines
1.4 KiB
Text
44 lines
1.4 KiB
Text
<div title="Account signup" id="signupform" class="form">
|
|
<% form_tag :action=> "create" do %>
|
|
|
|
<%= error_messages_for 'user' %><br/>
|
|
|
|
<%= render_flash %>
|
|
|
|
<h3><%= @heading -%></h3>
|
|
|
|
<table>
|
|
<%if Tracks::Config.auth_schemes.include?('cas')%>
|
|
<tr>
|
|
<td><label for="user_login">With your CAS username:</label></td>
|
|
<td> "<%= session[:cas_user]%>" </td>
|
|
</tr>
|
|
<tr style="display:none">
|
|
<td><%= session[:cas_user]%>" <%= text_field "user", "login", :size => 20, :value => session[:cas_user], :readonly => true %> </td>
|
|
<td><%= password_field "user", "password", :size => 20 , :value => "fakebecauseweusecas" %></td>
|
|
<td><%= password_field "user", "password_confirmation", :size => 20, :value => "fakebecauseweusecas" %></td>
|
|
</tr>
|
|
<%else%>
|
|
<tr>
|
|
<td><label for="user_login">Desired login:</label></td>
|
|
<td> <%= text_field "user", "login", :size => 20 %></td>
|
|
</tr>
|
|
<tr>
|
|
<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>
|
|
<%end%>
|
|
<tr>
|
|
<td></td>
|
|
<td><input type="submit" id="signup" value="Signup »" class="primary" /></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<% end %>
|
|
</div>
|
|
|
|
|