Commit 8855477e authored by Bianca Tarun's avatar Bianca Tarun

edited devise views

parent 21d19466
...@@ -4,9 +4,16 @@ ...@@ -4,9 +4,16 @@
<%= f.error_notification %> <%= f.error_notification %>
<div class="form-inputs"> <div class="form-inputs">
<%= f.input :email, required: true, autofocus: true %> <%= f.input :email, required: true, autofocus: true %>
<%= f.input :password, required: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length) %> <%= f.input :password, required: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length) %>
<%= f.input :password_confirmation, required: true %> <%= f.input :password_confirmation, required: true %>
<%= f.input :first_name, required:true %>
<%= f.input :last_name, required:true %>
<%= f.input :birthday, :as => :date_picker,
input_html: {data: {date_options: {defaultDate: Time.now}}} %>
<%= f.input :gender, collection: ["Male", "Female"], include_blank: false %>
</div> </div>
<div class="form-actions"> <div class="form-actions">
......
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
<hr> <hr>
<%= link_to "Manage Candidates", admin_candidates_path %> || <%= link_to "Manage Candidates", admin_candidates_path %> ||
<%= link_to "Manage Positions", admin_positions_path %> || <%= link_to "Manage Positions", admin_positions_path %> ||
<%= link_to "Manage Votes", votes_path %> <%= link_to "Vote", votes_path %>
<hr> <hr>
<% @positions.each do |p| %> <% @positions.each do |p| %>
<h2>(<%= p.id %>.) <%= p.name %></h2> <h2><%= p.name %></h2>
<ul> <ul>
<% p.candidates.each do |c| %> <% p.candidates.each do |c| %>
<li><%= link_to c.nickname, admin_candidate_path(c.id) %></li> <li><%= link_to c.nickname, admin_candidate_path(c.id) %></li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment