diff options
author | Matthew Lemon <y@yulqen.org> | 2024-11-14 15:47:43 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-11-14 15:47:43 +0000 |
commit | 6427b28c60c6ed0dfd637307d1ab4ffe65c1144d (patch) | |
tree | 156d280b94557f9606c053f6187aec2a21eb1b36 /app/views/pdfresources/_form.html.erb | |
parent | 1b64b0b709c5704de48120e20bdfad32f34b0b5d (diff) |
Adds ResourceType model
Diffstat (limited to 'app/views/pdfresources/_form.html.erb')
-rw-r--r-- | app/views/pdfresources/_form.html.erb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/pdfresources/_form.html.erb b/app/views/pdfresources/_form.html.erb index 1ad8fb1..a15bd67 100644 --- a/app/views/pdfresources/_form.html.erb +++ b/app/views/pdfresources/_form.html.erb @@ -90,6 +90,10 @@ <p class="text-sm text-gray-700">Number of credits required to purchase this resource.</p> </div> + <div class="my-5"> + <%= required_label_tag(form, :resource_type) %> + <%= form.collection_select :resource_type_id, ResourceType.all, :id, :name, {}, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %> + </div> <div class="my-5"> <%= form.label :stripe_product_id, "Stripe Product ID", class: "font-bold" %> |