From 4ecc5d37609c3de8d3b013a738f3704f1e70c61a Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 22 Oct 2023 00:06:48 -0400 Subject: Audio quotes! --- app/views/admin/quotes/_form.html.haml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/views/admin/quotes/_form.html.haml') diff --git a/app/views/admin/quotes/_form.html.haml b/app/views/admin/quotes/_form.html.haml index 920835b..13948ca 100644 --- a/app/views/admin/quotes/_form.html.haml +++ b/app/views/admin/quotes/_form.html.haml @@ -24,4 +24,9 @@ .published-field = f.label :state = f.select :state, Quote.state.options + .details-module.image-uploads + %h4 Audio + - if f.object.audio.attached? + = audio_tag(rails_blob_url(f.object.audio), controls: true) + = f.file_field :audio .details-module= f.submit -- cgit 1.4.1