aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/pdfresources/_form.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/pdfresources/_form.html.erb')
-rw-r--r--app/views/pdfresources/_form.html.erb15
1 files changed, 3 insertions, 12 deletions
diff --git a/app/views/pdfresources/_form.html.erb b/app/views/pdfresources/_form.html.erb
index a3922c9..f75f20d 100644
--- a/app/views/pdfresources/_form.html.erb
+++ b/app/views/pdfresources/_form.html.erb
@@ -80,7 +80,7 @@
<div class="my-5">
<%= form.label :price, class: "font-bold" %>
- <%= form.number_field :price, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
+ <%= form.number_field :price, step: "0.01", min: "0", class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
<p class="text-sm text-gray-700">This is what we will sell it for!</p>
</div>
@@ -111,17 +111,8 @@
</div>
<div class="my-5">
- <%= form.label :feature_slot, "Feature Position", class: "font-bold" %>
- <%= form.select :feature_slot,
- options_for_select([
- ["Not Featured", nil],
- ["Position 1", 1],
- ["Position 2", 2],
- ["Position 3", 3]
- ], pdfresource.feature_slot),
- { include_blank: false },
- class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
- <p class="text-sm text-gray-700">Select a position to feature this resource, or "Not Featured" to remove from featured items. Only three resources can be featured at a time.</p>
+ <%= form.label :feature_slot, class: "font-bold" %>
+ <%= form.number_field :feature_slot, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
</div>
<div class="flex gap-4 mt-8">