Sha256: 0aedbe98a69dd90874c42e864f351b452b497ec04f8ca43c43be295d25c78836

Contents?: true

Size: 1.53 KB

Versions: 2

Compression:

Stored size: 1.53 KB

Contents

<h2>Add a new user</h2>

<%= form_for @caseadilla_user, url: caseadilla_users_path do |form|  %>

	<div class="row">
		<div class="col-md-6">
			<%= caseadilla_text_field form, @caseadilla_user, :first_name %>
		</div>
		<div class="col-md-6">
			<%= caseadilla_text_field form, @caseadilla_user, :last_name %>
		</div>
	</div>

	<div class="row">
  		<div class="col-md-6">
			<%= caseadilla_text_field form, @caseadilla_user, :email %>
		</div>
		<div class="col-md-6">
			<%= caseadilla_time_zone_select form, @caseadilla_user, :time_zone, ActiveSupport::TimeZone.us_zones %>
		</div>
	</div>

	<!-- TODO: User roles -->
	
	<div class="row">
  		<div class="col-md-6">
			<%= caseadilla_password_field form, @caseadilla_user, :password, {:caseadilla_label => "Password"} %>
		</div>
		<div class="col-md-6">
			<%= caseadilla_password_field form, @caseadilla_user, :password_confirmation, {:caseadilla_label => "Repeat password"} %>
		</div>
		<div class="col-md-12 password-checkbox">
			<div class="checkbox">
	      		<label>
	      			<%= check_box_tag :generate_random_password, "1", false, {:id => 'generate-random-password-checkbox'} %> Generate random password
	      		</label>
	    	</div>
	    </div>
	</div>

	<p class="submits">
		<%= link_to 'Cancel', caseadilla_users_path, :class => 'btn btn-mini btn-danger' %>
		<%= form.submit "Add new user", :class => "btn btn-mini btn-primary" %>
	</p>

<% end %>

<%= content_for :sidebar do %>
  <li><%= link_to "#{caseadilla_show_icon('th-list')}Back to list".html_safe, caseadilla_users_path %></li>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
caseadilla-0.0.8 app/views/caseadilla/users/new.html.erb
caseadilla-0.0.7 app/views/caseadilla/users/new.html.erb