From 43df35213e80b9b7de69cc80f138882708a05b9b Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 18 Oct 2016 16:37:15 +0200 Subject: Improving all forms --- app/views/auth/confirmations/new.html.haml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'app/views/auth/confirmations') diff --git a/app/views/auth/confirmations/new.html.haml b/app/views/auth/confirmations/new.html.haml index e287f1528..fb1019def 100644 --- a/app/views/auth/confirmations/new.html.haml +++ b/app/views/auth/confirmations/new.html.haml @@ -1,12 +1,12 @@ - content_for :page_title do Confirmation instructions -= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| - = devise_error_messages! += simple_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| + = render 'shared/error_messages', object: resource + + = f.input :email, autofocus: true, required: true, placeholder: 'E-mail address' - .field - = f.email_field :email, autofocus: true, required: true, placeholder: 'E-mail address' .actions - = f.button "Resend confirmation instructions", type: 'submit' + = f.button :button, "Resend confirmation instructions", type: :submit .form-footer= render "auth/shared/links" -- cgit