```ruby
module FormHelper
  def possible_read_only_ops(submission=nil)
    ops = {}

    if admin_in_read_only_mode? || (submission && !current_user.account_admin?) || submission_ended?
      ops[:disabled] = "disabled"
      ops[:class] = "read-only"
    end

    ops
  end

  def next_step(form, step)
    return unless step

    steps = form.steps
    steps.map! { |s| s.title.parameterize }

    index = steps.index(step)

    steps[index + 1]
  end

  def text_words_count(text)
    text.to_s.split.count
  end
end
```

Revert "[QAE1019] Fixed disabled submission conditions"
user
```ruby
module FormHelper
  def possible_read_only_ops
    ops = {}

    if admin_in_read_only_mode? || submission_ended?
      ops[:disabled] = "disabled"
      ops[:class] = "read-only"
    end

    ops
  end

  def next_step(form, step)
    return unless step

    steps = form.steps
    steps.map! { |s| s.title.parameterize }

    index = steps.index(step)

    steps[index + 1]
  end

  def text_words_count(text)
    text.to_s.split.count
  end
end
```
assistant