Sha256: 2b3ec09c002d961c1d43cfda6f2f5d426547faac0ea0e210e7384fb33bcf5ba2

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

.btn-group
  %button.btn.dropdown-toggle{ class: state_styleclass(resource.state, :button), type: 'button', data: { toggle: 'dropdown' } }
    /= icon_tag :state
    = resource.human_state_name
    %span.caret
  %ul.dropdown-menu{ role: 'menu' }
    - resource.state_events.each do |event_name|
      %li
        = link_to resource.class.human_state_event_name(event_name), [resource, { ActiveModel::Naming.param_key(resource) => { :state_event => event_name } }], method: :patch

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
billet-0.0.1 lib/generators/billet/namespace/templates/views/crud_views/application/_states.html.haml