about summary refs log tree commit diff stats
path: root/app/views/admin/blogs
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-17 15:05:36 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-17 15:05:36 -0400
commit95e7c215df89608a5b10bebb87968c9a713bbf3d (patch)
treeb21785e6483b0286a812dda44082bc735264fb27 /app/views/admin/blogs
parent8d039903f630db0b89f2df44a94f4e5c938bd7bf (diff)
downloadthoughts-95e7c215df89608a5b10bebb87968c9a713bbf3d.tar.gz
thoughts-95e7c215df89608a5b10bebb87968c9a713bbf3d.tar.bz2
thoughts-95e7c215df89608a5b10bebb87968c9a713bbf3d.zip
Added uploading images to blog posts
Diffstat (limited to 'app/views/admin/blogs')
-rw-r--r--app/views/admin/blogs/_form.html.haml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/admin/blogs/_form.html.haml b/app/views/admin/blogs/_form.html.haml index 625c85e..c3720ba 100644 --- a/app/views/admin/blogs/_form.html.haml +++ b/app/views/admin/blogs/_form.html.haml
@@ -39,4 +39,12 @@
39 = builder.label :_destroy, "Create record?" 39 = builder.label :_destroy, "Create record?"
40 .record-description-field 40 .record-description-field
41 = builder.text_area :description, placeholder: "record text" 41 = builder.text_area :description, placeholder: "record text"
42 .details-module.image-uploads
43 %h4 Images
44 - f.object.images.each do |image|
45 = image_tag image.variant(:thumb)
46 = f.hidden_field :images, multiple: true, value: image.signed_id
47 %pre= url_for image
48 %hr
49 = f.file_field :images, multiple: true
42 .details-module= f.submit 50 .details-module= f.submit