{% import "bootstrap/_form.html" as bform %} {% from "admin/_link_form_field.html" import link_input_field %}
{{ form.hidden_tag() }}
{{ bform.field(form.filename, size=64) }}
{% if attachment.mimetype %} {{ bform.field(form.content_type, text="MIME Type is currently " + attachment.mimetype) }} {% else %} {{ bform.field(form.content_type) }} {% endif %}
{{ bform.field(form.compression, class="form-select") }}
{{ bform.field(form.digest_algorithm, class="form-select") }}
{{ bform.field(form.digest) }}
{{ bform.field(form.attachment) }}
{% if current_user.can('attachment.delete') and attachment.id %} {% endif %}
{{ form.submit(class_="btn btn-primary") }}