-# = render partial: 'admin_header'
- @questions = @question_group.questions
= simple_form_for(@question_group) do |f|
  = f.error_notification
  .section-header.surveys__admin-header.surveys__admin-header--question-groups.surveys__admin-header--question-groups--edit
    .container
      %div
        %h1 New Question Group
      .surveys__admin-header__action
        .form__actions
          = f.button :submit, "Save Question Group", class: 'button button--no-margin border'

  .container.survey__admin
    .form__block.form__block--equal-height
      .block.form__settings
        .form__settings__tabs
          .tab
            %h3 Settings
        = f.input :name, label: "Question Group Name", input_html: { class: "input--large", required: true }
        .form__row
          = f.association :cohorts, label_method: :title, input_html: { data: { chosen_select: true }}
        .form__row
          %label Tags
          = select_tag "question_group[tags]", options_for_select(@available_tags, @question_group_tags), multiple: true, data: { chosen_select: true }
      .form__question-list
        .survey__questions-list.clearfix
          .survey__admin-actions.clearfix
            %h3 Questions
            = f.button :submit, "Add Question", class: 'button dark', name: "redirect_to_edit"

-# = render partial: 'admin_header'
- @questions = @question_group.questions
= simple_form_for(@question_group) do |f|
  = f.error_notification
  .section-header.surveys__admin-header.surveys__admin-header--question-groups.surveys__admin-header--question-groups--edit
    .container
      %div
        %h1 New Question Group
      .surveys__admin-header__action
        .form__actions
          = f.button :submit, "Save Question Group", class: 'button button--no-margin border'

  .container.survey__admin
    .form__block.form__block--equal-height
      .block.form__settings
        .form__settings__tabs
          .tab
            %h3 Settings
        = f.input :name, label: "Question Group Name", input_html: { class: "input--large", required: true }
        .form__row
          = f.association :cohorts, label_method: :title, input_html: { data: { chosen_select: true }}
        .form__row
          %label Tags
          = select_tag "question_group[tags]", options_for_select(@available_tags, @question_group_tags), multiple: true, data: { chosen_select: true }

Remove 'Add question' button from new QuestionGroup form
Remove 'Add question' button from new QuestionGroup form

This button doesn't work until the QuestionGroup is created.

Resolves #965
