af83/chouette-core

View on GitHub
app/views/api_keys/_form.html.slim

Summary

Maintainability
Test Coverage
= simple_form_for [@workbench, @api_key], html: { class: 'form-horizontal', id: 'api_key_form' }, wrapper: :horizontal_form do |f|
  .row
    .col-lg-12
      = f.input :name
      - unless @api_key.new_record?
        = f.input :token, input_html: { readonly: true }

      = cancel_button
      = f.button :submit, t('actions.submit'), class: 'btn btn-default formSubmitr', form: 'api_key_form'