diff options
author | David Gay <david@davidgay.org> | 2021-06-05 21:25:36 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-05 21:25:36 -0400 |
commit | edecba859900638646a2ac6d1ce47230c3323de3 (patch) | |
tree | c911250639d416a428403d63b7445dd392ce27de /app/views/activities | |
parent | 3f44addf1959ff095a4eb23fc30c6642fcfdcaf2 (diff) |
Display costs and requirements for selected activity in select fields via Stimulus + fetch
Diffstat (limited to 'app/views/activities')
-rw-r--r-- | app/views/activities/_costs_and_requirements.html.erb | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ +<div class="text-sm border border-2 border-gray-700 rounded p-2 w-full"> + <%= @text %> + <p>Costs:<strong> <%= @activity.costs&.join(", ") || "None" %></strong> </p> + <p>Requires:<strong> <%= @activity.requirements&.join(", ") || "None" %></strong> </p> +</div> |