From edecba859900638646a2ac6d1ce47230c3323de3 Mon Sep 17 00:00:00 2001 From: David Gay Date: Sat, 5 Jun 2021 21:25:36 -0400 Subject: Display costs and requirements for selected activity in select fields via Stimulus + fetch --- app/views/activities/_costs_and_requirements.html.erb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 app/views/activities/_costs_and_requirements.html.erb (limited to 'app/views/activities') diff --git a/app/views/activities/_costs_and_requirements.html.erb b/app/views/activities/_costs_and_requirements.html.erb new file mode 100644 index 0000000..6ae66bb --- /dev/null +++ b/app/views/activities/_costs_and_requirements.html.erb @@ -0,0 +1,5 @@ +
+ <%= @text %> +

Costs: <%= @activity.costs&.join(", ") || "None" %>

+

Requires: <%= @activity.requirements&.join(", ") || "None" %>

+
-- cgit v1.2.3