clarion/app/views/management/events/_state.html.slim

10 lines
624 B
Plaintext
Raw Normal View History

2014-10-10 19:10:34 +03:00
.btn-group id="suggestion-#{suggestion.id}-state"
2014-10-10 20:25:41 +03:00
button class="btn dropdown-toggle btn-#{Event::STATE_TO_CLASS[suggestion.state.to_sym]}" type="button" title="#{suggestion.state}" data-toggle="dropdown"
2014-10-10 19:10:34 +03:00
=> glyph Event::STATE_TO_GLYPH[suggestion.state.to_sym]
span.caret
ul.dropdown-menu role="menu"
- Event.states.each do |state, number|
- next if state == suggestion.state
li
2014-10-10 20:25:41 +03:00
= link_to glyph(Event::STATE_TO_GLYPH[state.to_sym]), state_management_event_path(suggestion, state: state), title: state, class: "btn text-#{Event::STATE_TO_CLASS[state.to_sym]}", remote: true, method: :patch