You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: submissions_helper.rb
    path of file: ./repos/sequencescape/app/helpers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# Helper methods for presenting submission related information
module SubmissionsHelper # rubocop:todo Metrics/ModuleLength
  # <label for="submission_order_params_field_info_key">field_info.display_name/label>
  def ord
    
  def submission_status_message(submission) # rubocop:todo Metrics/CyclomaticComplexity
    case submission.state
    when 'building'
      display_user_guide(
        'This submission is still open for editing, further orders can still be added...',
        edit_submission_path(submission)
      ) + button_to('Edit Submission', edit_submission_path(submission), method: :get, class: 'button')
    when 'pending'
      display_user_guide('Your submission is currently pending.') +
        tag.p(
          # rubocop:todo Layout/LineLength
          'It should be processed approximately 10 minutes after you have submitted it, however sometimes this may take longer.'
          # rubocop:enable Layout/LineLength
        )
    when 'processing'
      display_user_guide('Your submission is currently being processed.  This should take no longer than five minutes.')
    when 'failed'
      display_user_error(
        raw(
          # rubocop:todo Layout/LineLength
          "<h3>Your submission has failed:</h3><p> #{h((submission.message || 'No failure reason recorded').lines.first)} </p>"
          # rubocop:enable Layout/LineLength
        )
      )
    when 'ready'
      alert(:success) { raw('Your submission has been <strong>processed</strong>.') }
    when 'cancelled'
      alert(:info) { raw('Your submission has been <strong>cancelled</strong>.') }
    else
      alert(:danger) { 'Your submission is in an unknown state (contact support).' }
    end