Sha256: ab2411dcf70ff11a7565ee465388b702973ceb6cd628cab6b34f80d910f900d8

Contents?: true

Size: 1.46 KB

Versions: 1

Compression:

Stored size: 1.46 KB

Contents

<h1>Sign Up</h1>

<% if @signup.errors.any? %>
  <div id="error_explanation">
    <div class="alert alert-error">
      The form contains <%= pluralize(@signup.errors.count, "error") %>.
    </div>
    <ul>
    <% @signup.errors.full_messages.each do |msg| %>
      <li>* <%= msg %></li>
    <% end %>
    </ul>
  </div>
<% end %>

<%= form_for @signup, url: signup_path do |f| %>
  <div class="field">
    <%= f.label "first_name" %>
    <%= f.text_field "first_name" %>
  </div>
  <div class="field">
    <%= f.label "last_name" %>
    <%= f.text_field "last_name" %>
  </div>
  <div class="field">
    <%= f.label "bio" %>
    <%= f.text_area "bio" %>
  </div>
  <div class="field">
    <%= f.label "website" %>
    <%= f.text_field "website" %>
  </div>
  <div class="field">
    <%= f.label "phone_number" %>
    <%= f.text_field "phone_number" %>
  </div>
  <div class="field">
    <%= f.label "phone_number" %>
    <%= f.time_zone_select('time_zone', ActiveSupport::TimeZone.us_zones, :default => "Pacific Time (US & Canada)") %>
  </div>
  <div class="field">
    <%= f.label "email" %>
    <%= f.text_field "email" %>
  </div>
  <div class="field">
    <%= f.label "username" %>
    <%= f.text_field "username" %>
  </div>
  <div class="field">
    <%= f.label "password" %>
    <%= f.password_field "password" %>
  </div>
  <div class="field">
    <%= f.label "password_confirmation" %>
    <%= f.password_field "password_confirmation" %>
  </div>
  <%= f.submit "Sign up" %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authkit-0.2.1 lib/generators/authkit/templates/app/views/signup/new.html.erb