[openstreetmap/openstreetmap-website] Re-arrange login and signup screens as discussed in #4128 (PR #4455)

Anton Khorev notifications at github.com
Wed Jan 3 14:30:10 UTC 2024


@AntonKhorev commented on this pull request.



> -
-<div id="login_login">
-  <p class='text-muted'><%= t ".no account" %> <%= link_to t(".register now"), user_new_path(:referer => params[:referer]) %></p>
-
-  <%= bootstrap_form_tag(:action => "login", :html => { :id => "login_form" }) do |f| %>
-    <%= hidden_field_tag("referer", h(params[:referer]), :autocomplete => "off") %>
-
-    <%= f.text_field :username, :label => t(".email or username"), :tabindex => 1, :value => params[:username] %>
-    <%= f.password_field :password, :label => t(".password"), :tabindex => 2, :value => "", :help => link_to(t(".lost password link"), user_forgot_password_path) %>
-    <%= f.form_group do %>
-      <%= f.check_box :remember_me, { :label => t(".remember"), :tabindex => 3, :checked => (params[:remember_me] == "yes") }, "yes" %>
-    <% end %>
+<div id="login_login" class="auth-container">
+  <div class="tabs">
+    <button class="tab-button active" disabled="true"><%= t ".tab_title" %></button>
+    <button class="tab-button" onclick="location.pathname='<%= url_for(:action => :new, :controller => :users) -%>'"><%= t "users.new.tab_title" %></button>

Why onclick? Why button? Why isn't it a link?

https://getbootstrap.com/docs/5.3/components/navs-tabs/#tabs

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4455#pullrequestreview-1802249131
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4455/review/1802249131 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240103/93889396/attachment.htm>


More information about the rails-dev mailing list