Sha256: 5bc5faeab3f090afe2e258cfcca0a6c4b999b2e11758857c7efdebd54c5292eb

Contents?: true

Size: 1.45 KB

Versions: 6

Compression:

Stored size: 1.45 KB

Contents

= form_for @user do |f|
  = f.error_messages
  .panel.panel-default
    .panel-heading
      = t('tienda.users.user_details')
    .panel-body
      .row
        .col-md-6
          .form-group
            = f.label :first_name, t('tienda.users.first_name')
            = f.text_field :first_name, class: 'focus form-control'
        .col-md-6
          .form-group
            = f.label :last_name, t('tienda.users.last_name')
            = f.text_field :last_name, class: 'form-control'
  .panel.panel-default
    .panel-heading
      = t("tienda.users.login")
    .panel-body
      .row
        .col-md-4
          .form-group
            = f.label :email_address, t('tienda.users.email')
            = f.text_field :email_address, class: 'form-control'
        .col-md-4
          .form-group
            = f.label :password, t('tienda.users.password')
            = f.password_field :password, class: 'form-control'
        .col-md-4
          .form-group
            = f.label :password_confirmation, t('tienda.users.password_confirmation')
            = f.password_field :password_confirmation, class: 'form-control'

  .panel.panel-default
    .panel-body
      - unless @user.new_record?
        %span.pull-right= link_to t('tienda.delete'), @user, class: 'btn btn-danger', method: :delete, data: {confirm: t('tienda.users.delete_confirmation')}
      = f.submit  t('tienda.submit'), class: 'btn btn-primary'
      = link_to t('tienda.cancel'), :users, class: 'btn btn-default'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tienda-2.1.3 app/views/tienda/users/_form.html.haml
tienda-2.1.2 app/views/tienda/users/_form.html.haml
tienda-2.1.1 app/views/tienda/users/_form.html.haml
tienda-2.1.0 app/views/tienda/users/_form.html.haml
tienda-2.0.2 app/views/tienda/users/_form.html.haml
tienda-2.0.1 app/views/tienda/users/_form.html.haml