From 7878ca98ee2749d868478b851da315ee562bb298 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Tue, 3 Jun 2025 00:55:27 -0700 Subject: [PATCH] add manual submit button to serendipitous questions also --- .../_tailwind_content_question.html.erb | 27 ++++++++++++------- .../_serendipitous_question.html.erb | 6 ----- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/app/views/cards/serendipitous/_tailwind_content_question.html.erb b/app/views/cards/serendipitous/_tailwind_content_question.html.erb index 75c00515..6195242d 100644 --- a/app/views/cards/serendipitous/_tailwind_content_question.html.erb +++ b/app/views/cards/serendipitous/_tailwind_content_question.html.erb @@ -86,17 +86,26 @@ -
- <%= button_tag type: 'submit', class: "group relative inline-flex items-center px-8 py-3 overflow-hidden text-lg font-medium text-white bg-gradient-to-r from-blue-600 to-blue-700 rounded-xl hover:from-blue-700 hover:to-blue-800 focus:ring-4 focus:ring-blue-300 focus:outline-none transition-all duration-300 ease-in-out transform hover:scale-105 hover:shadow-lg" do %> - - - - + +
+ + + - Submit & Continue + Submit & get next question - <% end %> -
+ + + +
+
+ <%= content.icon %> + Your answer will be automatically saved to your + <%= content.name %> + <%= content.page_type.downcase %> page. +
+ <% end %> diff --git a/app/views/main/components/_serendipitous_question.html.erb b/app/views/main/components/_serendipitous_question.html.erb index e6b82313..0e588a61 100644 --- a/app/views/main/components/_serendipitous_question.html.erb +++ b/app/views/main/components/_serendipitous_question.html.erb @@ -15,12 +15,6 @@ } end %> -

- <%= @content.icon %> - Your answer will be automatically saved to your - <%= link_to @content.name, @content.view_path, class: "#{@content.text_color}", target: '_blank' %> - <%= @content.page_type.downcase %> page. -