Sha256: 8c2e20ec2dd38e46660ed61b58f97d733ece5d8a0d130f6f36620b3306916178

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

<%= simple_form_for([:backend, profile], as: :profile,
                                         url: :backend_profile,
                                         html: { autocomplete: "false" }) do |f| %>
  <%= f.error_notification %>

  <div class="form-inputs">
    <%= f.input :name %>
    <%= f.input :username %>
    <%= f.input :email, as: :email %>

    <%= f.input :avatar, as: :file %>
    <%= f.input :avatar_cache, as: :hidden %>

    <div class="form-group profile_avatar_image">
      <div class="col-sm-10 col-sm-offset-2">
        <%= image_tag(f.object.avatar.small.url, alt: "") %>
      </div>
    </div>

    <%= f.input :remove_avatar, as: :boolean,
                                checked_value: true,
                                unchecked_value: false if f.object.avatar? %>

    <%= f.input :password, as: :password %>
    <%= f.input :password_confirmation, as: :password %>
  </div>

  <div class="form-inputs">
    <%= f.input :newsletter, as: :boolean %>
  </div>

  <div class="form-actions text-right">
    <%= f.button :submit, class: "btn btn-primary" %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.4.0 app/views/archangel/backend/profiles/_form.html.erb