Sha256: b8b95bbf8a4385ef1be0713e3de5e384faf57b03dbb2215b80c438f957224784

Contents?: true

Size: 1.47 KB

Versions: 15

Compression:

Stored size: 1.47 KB

Contents

<% @title = 'Sign up' %>
<div class="page-header">
  <h1><%= @title %></h1>
</div>

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), html: { class: 'form-horizontal' }) do |f| %>
  <%= devise_error_messages! %>

  <% Contour.sign_up_fields.each do |field_hash| %>
    <div class="control-group">
      <%= f.label field_hash[:attribute], class: 'control-label' %>
      <div class="controls">
        <%= f.send(field_hash[:type], field_hash[:attribute]) %>
      </div>
    </div>
  <% end %>

  <div class="control-group">
    <%= f.label :email, class: 'control-label' %>
    <div class="controls">
      <%= f.email_field :email %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :password, class: 'control-label' %>
    <div class="controls">
      <%= f.password_field :password %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :password_confirmation, class: 'control-label' %>
    <div class="controls">
      <%= f.password_field :password_confirmation %>
    </div>
  </div>

  <% Contour.spam_fields.each do |name| %>
    <div class="control-group control-special">
      <%= label_tag "#{resource_name}[#{name}]", name, class: 'control-label' %>
      <div class="controls">
        <%= text_field_tag "#{resource_name}[#{name}]", '' %>
      </div>
    </div>
  <% end %>

  <div class="form-actions">
    <%= f.submit "Sign up", class: 'btn btn-primary' %>
    <%= render partial: 'contour/links' %>
  </div>
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
contour-2.1.0.beta4 app/views/contour/registrations/new.html.erb
contour-2.1.0.beta3 app/views/contour/registrations/new.html.erb
contour-2.1.0.beta2 app/views/contour/registrations/new.html.erb
contour-2.1.0.beta1 app/views/contour/registrations/new.html.erb
contour-2.0.0 app/views/contour/registrations/new.html.erb
contour-2.0.0.rc6 app/views/contour/registrations/new.html.erb
contour-2.0.0.rc5 app/views/contour/registrations/new.html.erb
contour-2.0.0.rc4 app/views/contour/registrations/new.html.erb
contour-2.0.0.rc3 app/views/contour/registrations/new.html.erb
contour-2.0.0.rc2 app/views/contour/registrations/new.html.erb
contour-2.0.0.rc app/views/contour/registrations/new.html.erb
contour-2.0.0.beta.9 app/views/contour/registrations/new.html.erb
contour-2.0.0.beta.8 app/views/contour/registrations/new.html.erb
contour-2.0.0.beta.7 app/views/contour/registrations/new.html.erb
contour-2.0.0.beta.6 app/views/contour/registrations/new.html.erb