From a5904046bec8bb728bf05a2c0f6d746e54b6b828 Mon Sep 17 00:00:00 2001 From: axemonkey Date: Mon, 13 Jun 2016 14:15:59 +0100 Subject: [PATCH] make errors h2, move below h1 --- app/views/questions/edit.html.slim | 4 ++-- app/views/shared/_error_block.html.slim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/questions/edit.html.slim b/app/views/questions/edit.html.slim index 411c4a5f0..186e66950 100644 --- a/app/views/questions/edit.html.slim +++ b/app/views/questions/edit.html.slim @@ -2,14 +2,14 @@ = t('title', scope: @form.i18n_scope) = ' - ' -= render('shared/error_block', form: @form) if @form.errors.any? - h1.heading-large span.heading-secondary= t('breadcrumb', scope: @form.i18n_scope) span.visuallyhidden | :  = t('text', scope: @form.i18n_scope) += render('shared/error_block', form: @form) if @form.errors.any? + =render("questions/headers/#{@form.id}") = form_for @form, as: @form.id, url: question_path(@question), html: { autocomplete: @form.autocomplete, method: :put } do |f| diff --git a/app/views/shared/_error_block.html.slim b/app/views/shared/_error_block.html.slim index 5f45d270f..979f8bf08 100644 --- a/app/views/shared/_error_block.html.slim +++ b/app/views/shared/_error_block.html.slim @@ -1,5 +1,5 @@ .error-summary role="group" aria-labelledby="error-summary-heading-example-1" tabindex="-1" - h1.heading-medium.error-summary-heading#error-summary-heading-example-1 You need to fix the errors on this page before continuing. + h2.heading-medium.error-summary-heading#error-summary-heading-example-1 You need to fix the errors on this page before continuing. span.visuallyhidden Errors are listed as links below, click to select the field that needs correcting. ul.error-summary-list - form.errors.each do |field, message|