summaryrefslogtreecommitdiffstats
path: root/templates/forms
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-17 19:21:00 -0700
committerAndrew Godwin2022-11-17 17:33:09 -0700
commit291d7e404e12e1d017403242f8ed199046f0904c (patch)
tree89a60ff7f321537b6a58835aaa726f7e22ed09ba /templates/forms
parent0851fbd1ec09b142608667bf90ee806e59cafb28 (diff)
downloadtakahe-291d7e404e12e1d017403242f8ed199046f0904c.tar.gz
takahe-291d7e404e12e1d017403242f8ed199046f0904c.tar.bz2
takahe-291d7e404e12e1d017403242f8ed199046f0904c.zip
Logged out experience, config, and profiles
Diffstat (limited to 'templates/forms')
-rw-r--r--templates/forms/_field.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/forms/_field.html b/templates/forms/_field.html
index 595546d..99db819 100644
--- a/templates/forms/_field.html
+++ b/templates/forms/_field.html
@@ -10,9 +10,14 @@
</p>
{% endif %}
{{ field.errors }}
+ {% if field.field.widget.input_type == "file" and field.value %}
+ <div class="clear">
+ <input type="checkbox" class="clear" name="{{ field.name }}__clear"> Clear current value</input>
+ </div>
+ {% endif %}
{{ field }}
</div>
- {% if preview %}
- <img class="preview" src="{{ preview }}">
+ {% if field.field.widget.input_type == "file" %}
+ <img class="preview" src="{{ field.value }}">
{% endif %}
</div>