diff options
Diffstat (limited to 'app/views/pdfresources/_pdfresource.html.erb')
-rw-r--r-- | app/views/pdfresources/_pdfresource.html.erb | 56 |
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> |