Sha256: a98a6ea602d25750e72e9882a2147f6da2540bac70673bbcdaba694a2a9e5dcd

Contents?: true

Size: 1.21 KB

Versions: 2

Compression:

Stored size: 1.21 KB

Contents

<% @title = 'Register' %>

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
  <%= devise_error_messages! %>
  <fieldset style="width:235px">
    <legend><%= @title %></legend>
    
    <div class="field">
      <%= f.label :first_name %><br />
      <%= f.text_field :first_name  %>
    </div>
  
    <div class="field">
      <%= f.label :last_name %><br />
      <%= f.text_field :last_name  %>
    </div>

    <div class="field">
      <%= f.label :email %><br />
      <%= f.text_field :email %>
    </div>

    <% if @user.password_required? %>
      <div class="field">
        <%= f.label :password %><br />
        <%= f.password_field :password %>
      </div>

      <div class="field">
        <%= f.label :password_confirmation %><br />
        <%= f.password_field :password_confirmation %>
      </div>
    <% end %>
  </fieldset>
  <div class="actions">
    <% form_name = 'user_new' %>
    <%= link_to_function image_tag('contour/tick.png', :alt => '') + "Sign up", "$('##{form_name}').submit();", :class => "button positive" %>
    <div style="clear:both"></div><br />
    <%= link_to "Already signed up? Login here!", new_session_path(resource_name) %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
contour-0.4.0 app/views/contour/registrations/new.html.erb
contour-0.3.2 app/views/contour/registrations/new.html.erb