Sha256: 0a55513164fc1bf1b4e3fae7714cd1fd34008d41d8f26d8c1f6af79be259ccde

Contents?: true

Size: 704 Bytes

Versions: 2

Compression:

Stored size: 704 Bytes

Contents

- read_only = action_name != 'edit'
= simple_form_for(@resource) do |f|
  .card.card-primary
    .card-header
      .card-tools
        = resource_form_actions(@context.route_builder, @resource, for_action: action_name.to_sym)
    .card-body
      =f.error_notification
      =f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present?
      - @resource.auto_form_attributes.each do |a|
        .row
          .col-12
            = f.input a, disabled: read_only
    .card-footer.text-right
      = link_to 'Cancel', @_effective_resource.action_path(:index), class: 'btn btn-secondary'
      - unless read_only
        = f.button :submit, class: 'btn btn-primary'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
five-two-nw-olivander-0.1.2.17 app/views/application/_form.html.haml
five-two-nw-olivander-0.1.2.16 app/views/application/_form.html.haml