diff options
Diffstat (limited to 'templates/forms/_field.html')
-rw-r--r-- | templates/forms/_field.html | 9 |
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> |