From 434b18b8efbb17dad386950d5223bb5bdc0cfec3 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 3 Sep 2020 23:49:32 +0100 Subject: [PATCH] Convert make/remove friend forms to use bootstrap --- app/views/friendships/make_friend.html.erb | 6 +++--- app/views/friendships/remove_friend.html.erb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/friendships/make_friend.html.erb b/app/views/friendships/make_friend.html.erb index e781f7b25..3dcdd6d64 100644 --- a/app/views/friendships/make_friend.html.erb +++ b/app/views/friendships/make_friend.html.erb @@ -2,9 +2,9 @@

<%= t ".heading", :user => @new_friend.display_name %>

<% end %> -<%= form_tag(nil, :class => "standard-form") do %> +<%= bootstrap_form_tag do |f| %> <% if params[:referer] -%> - <%= hidden_field_tag("referer", params[:referer]) %> + <%= f.hidden_field :referer, :value => params[:referer] %> <% end -%> - <%= submit_tag t(".button") %> + <%= f.primary t(".button") %> <% end %> diff --git a/app/views/friendships/remove_friend.html.erb b/app/views/friendships/remove_friend.html.erb index caaec120b..f5c2b9c0c 100644 --- a/app/views/friendships/remove_friend.html.erb +++ b/app/views/friendships/remove_friend.html.erb @@ -2,9 +2,9 @@

<%= t ".heading", :user => @friend.display_name %>

<% end %> -<%= form_tag(nil, :class => "standard-form") do %> +<%= bootstrap_form_tag do |f| %> <% if params[:referer] -%> - <%= hidden_field_tag("referer", params[:referer]) %> + <%= f.hidden_field :referer, :value => params[:referer] %> <% end -%> - <%= submit_tag t(".button") %> + <%= f.primary t(".button") %> <% end %> -- 2.39.5