Sha256: d2339ab13eb5839b967813ec61ff2be1a2760edb6b6240a5d84e625c1a31ab5a
Contents?: true
Size: 1.73 KB
Versions: 4
Compression:
Stored size: 1.73 KB
Contents
<%= form_for(@user) do |f| %> <div class="small-12 columns"> <%= f.submit 'Save', class: 'success button' %> <%= link_to 'Back', users_path, class: 'secondary hollow button' %> <% unless @user.new_record? %> <%= link_to "Metafields (#{@user.metafields.size})", user_metafields_path(@user), class: 'hollow button' %> <%= link_to "Media (#{@user.media.size})", user_media_path(@user), class: 'hollow button alert' %> <% end %> </div> <% if @user.errors.any? %> <div class="small-12 columns"> <div class="callout warning"> <h5><%= pluralize(@user.errors.count, 'error') %> prohibited this content from being saved:</h5> <ul> <% @user.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> </div> <% end %> <% if notice %> <div class="small-12 columns"> <div class="callout success notice"> <p><%= notice %></p> </div> </div> <% end %> <div class="small-12 columns"> <%= f.label :name %> <%= f.text_field :name %> </div> <div class="small-12 columns"> <%= f.label :email %> <%= f.email_field :email, required: true %> </div> <div class="small-12 medium-6 columns"> <%= f.label :password %> <%= f.password_field :password, required: (@user.new_record? ? true : false) %> </div> <div class="small-12 medium-6 columns"> <%= f.label :password_confirmation, 'Confirmation' %> <%= f.password_field :password_confirmation, required: (@user.new_record? ? true : false) %> </div> <div class="small-12 columns"> <%= f.label :groups %> <%= f.collection_select :group_ids, Guts::Group.all, :id, :title, {}, { multiple: true } %> </div> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems