Sha256: 77295c572e44436041bd376f5b1fe6553625cc1e4c180dc7e8f0045f02f9bd28

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

<h2>Sign up</h2>

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
  <%= devise_error_messages! %>

  <div><%= f.label :email %><br />
  <%= f.email_field :email, :autofocus => true %></div>

  <div><%= f.label :password %><br />
  <%= f.password_field :password %></div>

  <div><%= f.label :password_confirmation %><br />
  <%= f.password_field :password_confirmation %></div>
  
   <div><%= f.label :role %><br />
  <%= select("user", "role_id", Role.all.collect {|p| [ p.role_description, p.id ] }, {:prompt =>'Select role'})%><br>
  
    <%= f.label :SelectTeam %><br />
    <%= f.select("team_id",  Team.all.collect{|c| [c.name, c.id]}, {:prompt =>'Select team'})%><br>
 
 <div><%= f.label :firstname %><br />
  <%= f.text_field :firstname %></div>
  
 <div><%= f.label :lastname %><br />
  <%= f.text_field :lastname %></div>
  
 <div><%= f.label :phoneno %><br />
  <%= f.text_field :phonenum %></div>
  
 <div><%= f.label :address %><br />
  <%= f.text_field :address %></div>

  <div><%= f.submit "Sign up" %></div>
<% end %>

<%= render "devise/shared/links" %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
multiinsert-0.0.1 app/views/devise/registrations/new.html.erb