Sha256: 9f6031296d4615757a2965cad0d6ffb868ba25d7b0b7c73ef51587fd1c31148d

Contents?: true

Size: 1.38 KB

Versions: 6

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

6 entries across 6 versions & 1 rubygems

Version Path
contour-0.9.2 app/views/contour/registrations/new.html.erb
contour-0.9.1 app/views/contour/registrations/new.html.erb
contour-0.9.0 app/views/contour/registrations/new.html.erb
contour-0.8.4 app/views/contour/registrations/new.html.erb
contour-0.8.3 app/views/contour/registrations/new.html.erb
contour-0.8.2 app/views/contour/registrations/new.html.erb