Sha256: 6d3c2590a1d3dbeff5ac03801d6dd2b0f32e438b4cf4b1a2ccef60206c6e5d64
Contents?: true
Size: 1.5 KB
Versions: 2
Compression:
Stored size: 1.5 KB
Contents
<h1>Account</h1> <%% if @user.errors.any? %> <div id="error_explanation"> <div class="alert alert-error"> The form contains <%%= pluralize(@user.errors.count, "error") %>. </div> <ul> <%% @user.errors.full_messages.each do |msg| %> <li>* <%%= msg %></li> <%% end %> </ul> </div> <%% end %> <%%= form_for @user 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 "time_zone" %> <%%= 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 "confirmation_email" %> </div> <% if username? %><div class="field"> <%%= f.label "username" %> <%%= f.text_field "username" %> </div> <% end %><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 "Save" %> <%% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
authkit-0.7.0 | lib/generators/authkit/templates/app/views/users/edit.html.erb |
authkit-0.5.0 | lib/generators/authkit/templates/app/views/users/edit.html.erb |