From 4433e80691d84227ecc7b2c8333c2a6159ba370a Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Wed, 9 Jul 2025 10:56:32 -0500 Subject: [PATCH] Make steps non-interactive --- app/views/cards/display/perma/_steps.html.erb | 2 +- app/views/public/cards/show.html.erb | 2 +- app/views/public/cards/show/_steps.html.erb | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 app/views/public/cards/show/_steps.html.erb diff --git a/app/views/cards/display/perma/_steps.html.erb b/app/views/cards/display/perma/_steps.html.erb index b7c465568..240bc8bab 100644 --- a/app/views/cards/display/perma/_steps.html.erb +++ b/app/views/cards/display/perma/_steps.html.erb @@ -1,7 +1,7 @@
    <%= render partial: "cards/steps/step", collection: card.steps, as: :step %> -
    +
    <%= form_with model: [card, Step.new], url: card_steps_path(card) do |form| %> <%= form.text_field :content, class: "input step__content hide-focus-ring", placeholder: "Add a step…", required: true, autocomplete: "off" %> diff --git a/app/views/public/cards/show.html.erb b/app/views/public/cards/show.html.erb index 0a3d61f47..d0823c705 100644 --- a/app/views/public/cards/show.html.erb +++ b/app/views/public/cards/show.html.erb @@ -25,7 +25,7 @@ <%= render "cards/display/public_preview/stages", card: @card if @card.doing? %>
    - <%= render "cards/display/perma/steps", card: @card %> + <%= render "public/cards/show/steps", card: @card %>