programandoarg/pg_rails

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

Summary

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

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

    = hidden_field_tag :asociable, true if asociable
    = f.input :plan
    = f.input :nombre
    .mt-2
    = f.button :submit