Sha256: 6cb63ff182e8b28690bce2c6b64f0734ae34918db35c63af37d1b0428479f0e1

Contents?: true

Size: 1.05 KB

Versions: 5

Compression:

Stored size: 1.05 KB

Contents

- if @user.errors.any?
  %div{ :class => 'alert-message block-message error', :id => 'error_explanation'}
    %h3== #{pluralize(@user.errors.count, "error")} prohibited this user from being saved:

    %ul
      - @user.errors.full_messages.each do |msg|
        %li= msg
%div.control-group
  = f.label :first_name, {:class => 'control-label' }
  %div.controls
    = f.text_field :first_name, :autocomplete => 'off'
%div.control-group
  = f.label :last_name, {:class => 'control-label' }
  %div.controls
    = f.text_field :last_name, :autocomplete => 'off'
%div.control-group
  = f.label :company, {:class => 'control-label' }
  %div.controls
    = f.text_field :company, :autocomplete => 'off'
%div.control-group
  = f.label :login, {:class => 'control-label' }
  %div.controls
    = f.text_field :login, :class => 'logintext', :autocomplete => 'off', :disabled => !@user.new_record?
%div.control-group
  = f.label :email, {:class => 'control-label' }
  %div.controls
    = f.email_field :email, :class => 'logintext', :autocomplete => 'off', :disabled => !@user.new_record?

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
protected-1.0.4 app/views/protected/admin/users/_form.html.haml
protected-1.0.3 app/views/protected/admin/users/_form.html.haml
protected-1.0.2 app/views/protected/admin/users/_form.html.haml
protected-1.0.1 app/views/protected/admin/users/_form.html.haml
protected-1.0.0 app/views/protected/admin/users/_form.html.haml