= form_for @form, as: :online_application, url: online_application_path, method: :put, html: { autocomplete: 'off' } do |f|

  header
    h2 Application details

  .row
    .small-12.medium-8.large-5.columns
      .row.collapse.prefix-radius
        h4 Full name
        p= @online_application.last_name

      .form-group
        = f.label :fee
        = f.label :fee, @form.errors[:fee].join(', '), class: 'error' if @form.errors[:fee].present?
        .row.collapse.prefix-radius
          .small-2.medium-2.large-2.columns
            span.prefix
              = f.label :fee, '£', class: 'inline'
          .small-10.medium-10.large-10.columns
            = f.text_field :fee, { value: "#{@form.fee.to_f.floor if @form.fee}", class: 'form-control small-field' }

      .form-group
        .row.collapse
          .columns.small-12
            = f.label :jurisdiction_id
            = f.label :jurisdiction_id, @form.errors[:jurisdiction_id].join(', '), class: 'error' if @form.errors[:jurisdiction_id].present?
            = f.hidden_field :jurisdiction_id, value: nil
            - if @jurisdictions.present?
              .options.radio
                =f.collection_radio_buttons(:jurisdiction_id, @jurisdictions, :id, :display_full, include_hidden: true) do |b|
                  .option
                    = b.label do
                      = b.radio_button(class: 'form-control', data: @form.jurisdiction_id)
                      = b.text
            - else
              = t('error_messages.jurisdictions.none_in_office')

      .form-group
        = f.label :form_name
          =t('form_name', scope: @form.i18n_scope)
        = f.label :form_name, @form.errors[:form_name].join(', '), class: 'error' if @form.errors[:form_name].present?
        = f.text_field :form_name, { class: 'form-control' }

      .form-group
        .options.radio
          .option
            = f.label :emergency
              = f.check_box :emergency, { class: 'show-hide-checkbox', data: { section: 'emergency' } }
              = t('emergency', scope: @form.i18n_scope)

      #emergency-only.start-hidden
        .form-group.panel-indent
          = f.label :emergency_reason
          = f.label :emergency_reason, @form.errors[:emergency_reason].join(', '), class: 'error' if @form.errors[:emergency_reason].present?
          = f.text_area :emergency_reason, { class: 'form-control' }

      = f.submit 'Next', class: 'button primary'

    .large-5.columns
      .guidance
        h4 Emergency cases


Add initial version of the edit template
Add initial version of the edit template

ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp