Sha256: dbb524c5c639ae8b12f65092bf7e787d1f43f8e125d884b0e11f7da500ab9277

Contents?: true

Size: 484 Bytes

Versions: 34

Compression:

Stored size: 484 Bytes

Contents

%tr
  %td
    = model_class.human_attribute_name attribute_name
  %td
    = value
  %td
    - if tramway_model?(model_class)
      - if attribute_name.to_s != 'state' && object.model.class.aasm.states.map(&:name).include?(attribute_name.to_sym)
        = state_events_buttons object, state_method: attribute_name, model_param_name: :record, controller: 'tramway/admin/records', action: :update, parameters: { model: object.class.model_name }, button_options: { class: :smart_button }

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
tramway-admin-2.1.3.1 app/views/tramway/admin/shared/show/_attribute_tr.html.haml
tramway-admin-2.1.3 app/views/tramway/admin/shared/show/_attribute_tr.html.haml
tramway-admin-2.1.2 app/views/tramway/admin/shared/show/_attribute_tr.html.haml
tramway-admin-2.1.1.2 app/views/tramway/admin/shared/show/_attribute_tr.html.haml
tramway-admin-2.1.1.1 app/views/tramway/admin/shared/show/_attribute_tr.html.haml
tramway-admin-2.1.1 app/views/tramway/admin/shared/show/_attribute_tr.html.haml
tramway-admin-2.1.0.2 app/views/tramway/admin/shared/show/_attribute_tr.html.haml
tramway-admin-2.1.0.1 app/views/tramway/admin/shared/show/_attribute_tr.html.haml
tramway-admin-2.1 app/views/tramway/admin/shared/show/_attribute_tr.html.haml
tramway-admin-2.0.0.4 app/views/tramway/admin/shared/show/_attribute_tr.html.haml
tramway-admin-2.0.0.3 app/views/tramway/admin/shared/show/_attribute_tr.html.haml
tramway-admin-2.0.0.2 app/views/tramway/admin/shared/show/_attribute_tr.html.haml
tramway-admin-2.0.0.1 app/views/tramway/admin/shared/show/_attribute_tr.html.haml
tramway-admin-2.0 app/views/tramway/admin/shared/show/_attribute_tr.html.haml