summaryrefslogtreecommitdiff
path: root/lib/aggiedit_web/live/post_live/form_component.html.heex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/aggiedit_web/live/post_live/form_component.html.heex')
-rw-r--r--lib/aggiedit_web/live/post_live/form_component.html.heex10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/aggiedit_web/live/post_live/form_component.html.heex b/lib/aggiedit_web/live/post_live/form_component.html.heex
index 682ec78..695a90a 100644
--- a/lib/aggiedit_web/live/post_live/form_component.html.heex
+++ b/lib/aggiedit_web/live/post_live/form_component.html.heex
@@ -16,6 +16,16 @@
<%= label f, :body %>
<%= textarea f, :body %>
<%= error_tag f, :body %>
+
+ <%= live_file_input @uploads.upload %>
+
+ <%= for upload <- @uploads.upload.entries do %>
+ <div class="row">
+ <div class="column">
+ <%= live_img_preview upload, height: 80 %>
+ </div>
+ </div>
+ <% end %>
<div>
<%= submit "Save", phx_disable_with: "Saving..." %>