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