.panel.panel-default
  .panel-heading#company-details-heading role="tab"
    h4.panel-title
      a data-toggle="collapse" data-parent="#panel-application-info" href="#section-company-details" aria-expanded="true" aria-controls="section-company-details"
        ' Company Details
        - if resource.company_details_updated_at && resource.company_details_editable
          small
            = "Updated by: #{resource.company_details_editable.decorate.full_name} - #{format_date(resource.company_details_updated_at)}"


  #section-company-details.section-company-details.panel-collapse.collapse role="tabpanel" aria-labelledby="company-details-heading"
    .panel-body.company-details-forms
      = render "admin/form_answers/company_details/company_name_form"
      = render "admin/form_answers/company_details/address_form"
      = render "admin/form_answers/company_details/previous_wins_form"
      = render "admin/form_answers/company_details/sic_form"

        .form-group
          label.form-label User accounts
          ul.list-unstyled.list-actions
            - (resource.account.try(:users) || []).each do |user|
              li
                = link_to "#", class: "ellipsis"
                  span.icon-role A
                  = "#{user.full_name} (#{user.email})"

.panel.panel-default
  .panel-heading#company-details-heading role="tab"
    h4.panel-title
      a data-toggle="collapse" data-parent="#panel-application-info" href="#section-company-details" aria-expanded="true" aria-controls="section-company-details"
        = @form_answer.promotion? ? "Nominee Details" : "Company Details"
        - if resource.company_details_updated_at && resource.company_details_editable
          small
            = "Updated by: #{resource.company_details_editable.decorate.full_name} - #{format_date(resource.company_details_updated_at)}"


  #section-company-details.section-company-details.panel-collapse.collapse role="tabpanel" aria-labelledby="company-details-heading"
    .panel-body.company-details-forms
      = render "admin/form_answers/company_details/company_name_form"
      = render "admin/form_answers/company_details/address_form"
      = render "admin/form_answers/company_details/previous_wins_form"
      = render "admin/form_answers/company_details/sic_form"

        .form-group
          label.form-label User accounts
          ul.list-unstyled.list-actions
            - (resource.account.try(:users) || []).each do |user|
              li
                = link_to "#", class: "ellipsis"
                  span.icon-role A
                  = "#{user.full_name} (#{user.email})"

COPY Company Details -> Nominee Details for QAEP
COPY Company Details -> Nominee Details for QAEP

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