diff --git a/app/controllers/verification/letter_controller.rb b/app/controllers/verification/letter_controller.rb index ac551910e..34521cce9 100644 --- a/app/controllers/verification/letter_controller.rb +++ b/app/controllers/verification/letter_controller.rb @@ -1,11 +1,13 @@ class Verification::LetterController < ApplicationController - before_action :authenticate_user! + before_action :authenticate_user!, except: :edit before_action :verify_resident! before_action :verify_phone! before_action :verify_verified! before_action :verify_lock skip_authorization_check + layout :pages, only: :edit + def new @letter = Verification::Letter.new(user: current_user) end @@ -20,7 +22,7 @@ class Verification::LetterController < ApplicationController end def edit - @letter = Verification::Letter.new(user: current_user) + @letter = Verification::Letter.new end def update diff --git a/app/views/verification/letter/edit.html.erb b/app/views/verification/letter/edit.html.erb index 8b1378917..6c86a5766 100644 --- a/app/views/verification/letter/edit.html.erb +++ b/app/views/verification/letter/edit.html.erb @@ -1 +1,27 @@ +
+
+
+

+ + <%= t("pages.verify.title") %> +

+

<%= t("pages.verify.info") %>

+
+ +
+
+ + "> + + + "> + + + "> + + " class="button radius success expand"> +
+
+
+
\ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index e513ee70a..a69f08ab3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -270,6 +270,5 @@ Rails.application.routes.draw do get "/participation_world", to: "pages#participation_world" get "/blog", to: "pages#blog" get "/accessibility", to: "pages#accessibility" - get "/verifica", to: "pages#verify" - + get "/verifica", to: "verification/letter#edit" end