diff --git a/app/views/decidim/helsinki_smsauth/omniauth/_phone_form.html.erb b/app/views/decidim/helsinki_smsauth/omniauth/_phone_form.html.erb index 6992f87..c9e7ef2 100644 --- a/app/views/decidim/helsinki_smsauth/omniauth/_phone_form.html.erb +++ b/app/views/decidim/helsinki_smsauth/omniauth/_phone_form.html.erb @@ -1,10 +1,5 @@ -
-
- <%= form.number_field :phone_number, value: (form.object.phone_number.present? ? "0#{form.object.phone_number}" : nil) %> -
-
-
-
- <%= form.submit t(".submit"), class:"button expanded" %> -
+<%= form.number_field :phone_number, value: (form.object.phone_number.present? ? "0#{form.object.phone_number}" : nil) %> + +
+ <%= form.submit t(".submit"), class:"button button__lg button__primary" %>
diff --git a/app/views/decidim/helsinki_smsauth/omniauth/_phone_instructions.html.erb b/app/views/decidim/helsinki_smsauth/omniauth/_phone_instructions.html.erb index 395766b..f232e07 100644 --- a/app/views/decidim/helsinki_smsauth/omniauth/_phone_instructions.html.erb +++ b/app/views/decidim/helsinki_smsauth/omniauth/_phone_instructions.html.erb @@ -1,2 +1,2 @@

<%= t(".step_one") %> - <%= t(".enter_phone_number") %>

-

<%= t(".type_in_phone") %>

+

<%= t(".type_in_phone") %>

diff --git a/app/views/decidim/helsinki_smsauth/omniauth/new.html.erb b/app/views/decidim/helsinki_smsauth/omniauth/new.html.erb index b86f7a0..3e75c3b 100644 --- a/app/views/decidim/helsinki_smsauth/omniauth/new.html.erb +++ b/app/views/decidim/helsinki_smsauth/omniauth/new.html.erb @@ -1,26 +1,23 @@ -
-
-
-
-

<%= t(".title") %>

- <%= render partial: "phone_instructions" %> -
-
-
-
-
- <%= decidim_form_for(@form, url: users_auth_sms_send_message_path, method: :post) do |form| %> - <%= render partial: "phone_form", locals: { form: form } %> - <% end %> -
-
-
-

<%= t(".problem_sign_in") %>

-

<%= t(".explanation") %>

-

<%= link_to t(".another_method"), users_auth_sms_access_code_path, class: "text-center" %>

-
-
-
+<%= render layout: "layouts/decidim/shared/layout_center" do %> +
+

<%= t("title", scope: "decidim.helsinki_smsauth.omniauth.new") %>

+
+ +
+

+ <%= render partial: "phone_instructions" %> +

+
+ + <%= decidim_form_for(@form, url: users_auth_sms_send_message_path, method: :post) do |form| %> +
+ <%= render partial: "phone_form", locals: { form: form } %>
+ <% end %> + +
+

<%= t("problem_sign_in", scope: "decidim.helsinki_smsauth.omniauth.new") %>

+

<%= t("explanation", scope: "decidim.helsinki_smsauth.omniauth.new") %>

+

<%= link_to t("another_method", scope: "decidim.helsinki_smsauth.omniauth.new"), users_auth_sms_access_code_path, class: "text-center" %>

-
+<% end %>