Sha256: 43e2f79408297e312425fa33d0eeaa79882423cc9e7a02d1e4f81027969a2a42

Contents?: true

Size: 410 Bytes

Versions: 5

Compression:

Stored size: 410 Bytes

Contents

.state-widget
  = form.hidden_field field.method_name.to_s
  = field.form_value
  :javascript
    $(function() {
      $('.state-btn').off('click').click(function(e){
        e.preventDefault();
        var $t = $(this), d = $t.data();
        var $i = $t.parents('.state-widget').find('input')
        $i.val(d.event);
        $t.siblings().removeClass('active')
        $t.addClass('active')
      })
    })

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_admin_aasm-0.3.0 app/views/rails_admin/main/_form_state.html.haml
rails_admin_aasm-0.2.2 app/views/rails_admin/main/_form_state.html.haml
rails_admin_aasm-0.2.1 app/views/rails_admin/main/_form_state.html.haml
rails_admin_aasm-0.2.0 app/views/rails_admin/main/_form_state.html.haml
rails_admin_aasm-0.1.1 app/views/rails_admin/main/_form_state.html.haml