Sha256: 7784463b668d0ee52982eb1aee9efd71c9a4c58d5f3bca30a7f24330b0f1f8d8

Contents?: true

Size: 1.38 KB

Versions: 15

Compression:

Stored size: 1.38 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>
    
    <% if resource.methods.include?(:first_name) %>
      <div class="field">
        <%= f.label :first_name %><br />
        <%= f.text_field :first_name  %>
      </div>
    <% end %>
  
    <% if resource.methods.include?(:last_name) %>
      <div class="field">
        <%= f.label :last_name %><br />
        <%= f.text_field :last_name  %>
      </div>
    <% end %>

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

    <% if resource.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 = "#{resource.class.name.underscore}_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

15 entries across 15 versions & 1 rubygems

Version Path
contour-0.8.1 app/views/contour/registrations/new.html.erb
contour-0.8.0 app/views/contour/registrations/new.html.erb
contour-0.7.2 app/views/contour/registrations/new.html.erb
contour-0.7.1 app/views/contour/registrations/new.html.erb
contour-0.7.0 app/views/contour/registrations/new.html.erb
contour-0.6.1 app/views/contour/registrations/new.html.erb
contour-0.6.0 app/views/contour/registrations/new.html.erb
contour-0.5.7 app/views/contour/registrations/new.html.erb
contour-0.5.6 app/views/contour/registrations/new.html.erb
contour-0.5.5 app/views/contour/registrations/new.html.erb
contour-0.5.4 app/views/contour/registrations/new.html.erb
contour-0.5.3 app/views/contour/registrations/new.html.erb
contour-0.5.2 app/views/contour/registrations/new.html.erb
contour-0.5.1 app/views/contour/registrations/new.html.erb
contour-0.5.0 app/views/contour/registrations/new.html.erb