programandoarg/pg_rails

View on GitHub
pg_engine/app/views/admin/users/_form.html.slim

Summary

Maintainability
Test Coverage
/ # locals: (object: nil, asociable: false)

div style="max-width: 22em"
  = pg_form_for(@user || object) do |f|
    = f.mensajes_de_error

    = hidden_field_tag :asociable, true if asociable
    = f.input :email
    = f.input :password, required: false, hint: 'Si se deja en blanco no se cambia'
    = f.input :developer
    .mt-2
    = f.button :submit