From 0455c6d25f9a8eb0e25acac5ee79a269d9a2715b Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Wed, 9 May 2018 14:44:45 -0400 Subject: [PATCH] Add javascript to pretty version of media upload --- brutaldon/templates/main/post_partial.html | 31 +++++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/brutaldon/templates/main/post_partial.html b/brutaldon/templates/main/post_partial.html index 3dc5243..eacb180 100644 --- a/brutaldon/templates/main/post_partial.html +++ b/brutaldon/templates/main/post_partial.html @@ -34,15 +34,27 @@
- -
- {% render_field form.media_file_1 %} +
+
{% render_field form.media_text_1 class+="input" placeholder="Describe attachment" %}
+
{{ form.errors }}
@@ -53,4 +65,15 @@ name="toot" value="Toot">
- + + +