Skip to content

Commit 1f80549

Browse files
committed
use form_tag + submit_tag for SSO login button
Replaces button_to with form_tag + submit_tag so the generated <input type="submit"> matches the standard ActiveAdmin theme CSS selector (form input[type=submit]) without requiring custom styles.
1 parent ef7cf2a commit 1f80549

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<div id="login">
22
<h2><%= active_admin_application.site_title(self) %></h2>
33

4-
<%= button_to ActiveAdmin::Oidc.config.login_button_label,
5-
"/admin/auth/oidc",
6-
method: :post,
7-
class: "activeadmin-oidc-login-button",
8-
data: { turbo: false } %>
4+
<%= form_tag "/admin/auth/oidc", method: :post, data: { turbo: false } do %>
5+
<%= submit_tag ActiveAdmin::Oidc.config.login_button_label %>
6+
<% end %>
97
</div>

0 commit comments

Comments
 (0)