aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/pdfresources/_pdfresource.html.erb
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-11-11 16:33:24 +0000
committerMatthew Lemon <y@yulqen.org>2024-11-11 16:33:24 +0000
commitb8d7a7cf7e78fe384c6c6e8e6812a252084ce1f0 (patch)
tree5ef297ac23775afb1bcffb68265749d08f282297 /app/views/pdfresources/_pdfresource.html.erb
parent97201e0bca203b6b303789374ffd7e4228e062a7 (diff)
Adds first pdfresource model
Diffstat (limited to 'app/views/pdfresources/_pdfresource.html.erb')
-rw-r--r--app/views/pdfresources/_pdfresource.html.erb56
1 files changed, 56 insertions, 0 deletions
diff --git a/app/views/pdfresources/_pdfresource.html.erb b/app/views/pdfresources/_pdfresource.html.erb
new file mode 100644
index 0000000..d947dd1
--- /dev/null
+++ b/app/views/pdfresources/_pdfresource.html.erb
@@ -0,0 +1,56 @@
+<div id="<%= dom_id pdfresource %>">
+ <p class="my-5">
+ <strong class="block font-medium mb-1">Name:</strong>
+ <%= pdfresource.name %>
+ </p>
+
+ <p class="my-5">
+ <strong class="block font-medium mb-1">Stripe product:</strong>
+ <%= pdfresource.stripe_product_id %>
+ </p>
+
+ <p class="my-5">
+ <strong class="block font-medium mb-1">Pdfs:</strong>
+ <% pdfresource.pdfs.each do |pdf| %>
+ <div><%= link_to pdf.filename, pdf %></div>
+ <% end %>
+ </p>
+
+ <p class="my-5">
+ <strong class="block font-medium mb-1">Thumbnails:</strong>
+ <% pdfresource.thumbnails.each do |thumbnail| %>
+ <div><%= link_to thumbnail.filename, thumbnail %></div>
+ <% end %>
+ </p>
+
+ <p class="my-5">
+ <strong class="block font-medium mb-1">Price:</strong>
+ <%= pdfresource.price %>
+ </p>
+
+ <p class="my-5">
+ <strong class="block font-medium mb-1">Age range:</strong>
+ <%= pdfresource.age_range %>
+ </p>
+
+ <p class="my-5">
+ <strong class="block font-medium mb-1">Curriculum:</strong>
+ <%= pdfresource.curriculum %>
+ </p>
+
+ <p class="my-5">
+ <strong class="block font-medium mb-1">Feature slot:</strong>
+ <%= pdfresource.feature_slot %>
+ </p>
+
+ <p class="my-5">
+ <strong class="block font-medium mb-1">Description:</strong>
+ <%= pdfresource.description %>
+ </p>
+
+ <p class="my-5">
+ <strong class="block font-medium mb-1">Card description:</strong>
+ <%= pdfresource.card_description %>
+ </p>
+
+</div>