- state = FormAnswerStateTransition.new
- state.form_answer = resource
- state.subject = current_subject

.well.section-applicant-status
  / This is where you change the application status
  h2
    ' Status
    small= resource.last_state_updated_by

  .btn-group
    button.btn.btn-link.dropdown-toggle.state-toggle type="button" data-toggle="dropdown" aria-expanded="false"
      = @form_answer.progress_text_short
      span.caret
    ul.dropdown-menu role="menu"
      - state.collection.each do |state|
        li.checkbox role="presentation"
          = link_to state.to_s.humanize, "#"
    = simple_form_for([namespace_name, resource, state]) do |f|
      = f.input :state,
                as: :select,
                include_blank: false,
                label: false,
                collection: state.collection
      = f.submit :update_state

- state = FormAnswerStateTransition.new
- state.form_answer = resource
- state.subject = current_subject

.well.section-applicant-status
  / This is where you change the application status
  h2
    ' Status
    small= resource.last_state_updated_by

  - if policy(:form_answer_state_transition).create?
    .btn-group
      button.btn.btn-link.dropdown-toggle.state-toggle type="button" data-toggle="dropdown" aria-expanded="false"
        = @form_answer.state.humanize
      span.caret
      ul.dropdown-menu role="menu"
        - state.collection.each do |state|
          li.checkbox role="presentation"
            = link_to state.to_s.humanize, "#"
      = simple_form_for([namespace_name, resource, state], html: { class: "if-js-hide" }) do |f|
        = f.input :state,
                  as: :select,
                  include_blank: false,
                  label: false,
                  collection: state.collection
        = f.submit :update_state
  - else

    .btn-group style= "font-size: 20px;"
      = @form_answer.state.humanize

Disable the global states select for Primary/Secondary
Disable the global states select for Primary/Secondary

bitzesty/qae,bitzesty/qae,bitzesty/qae,bitzesty/qae