|
@ -26,48 +26,49 @@ |
|
|
</a> |
|
|
</a> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="distribusi_files"> |
|
|
<div id="mainworkflow"> |
|
|
{% for id, describe_form in distribusi_file_forms.items() %} |
|
|
<div class="distribusi_files"> |
|
|
<div class="distribusi_file"> |
|
|
{% for id, describe_form in distribusi_file_forms.items() %} |
|
|
{% if describe_form.type == "image" %} |
|
|
<div class="distribusi_file"> |
|
|
<img src="{{describe_form.file_path}}" alt="" /> |
|
|
{% if describe_form.type == "image" %} |
|
|
{% elif describe_form.type == "video" %} |
|
|
<img src="{{describe_form.file_path}}" alt="" data-src="{{describe_form.file_path}}" loading="lazy"/> |
|
|
<video src="{{describe_form.file_path}}" preload="auto" alt="" controls></video> |
|
|
{% elif describe_form.type == "video" %} |
|
|
{% elif describe_form.type == "audio" %} |
|
|
<video src="{{describe_form.file_path}}" preload="auto" alt="" controls loading="lazy"></video> |
|
|
<audio src="{{describe_form.file_path}}" preload="auto" alt="" controls></audio> |
|
|
{% elif describe_form.type == "audio" %} |
|
|
{% else %} |
|
|
<audio src="{{describe_form.file_path}}" preload="auto" alt="" controls loading="lazy"> </audio> |
|
|
<a href="{{describe_form.file_path}}">file: {{describe_form.file_path}}</a> |
|
|
{% else %} |
|
|
{% endif %} |
|
|
<a href="{{describe_form.file_path}}">file: {{describe_form.file_path}}</a> |
|
|
<form id={{id}} method="POST" enctype="multipart/form-data" action="{{ url_for('describer.describe_file', file_id=id) }}"> |
|
|
{% endif %} |
|
|
{{ describe_form.csrf_token }} |
|
|
<form id={{id}} method="POST" enctype="multipart/form-data" action="{{ url_for('describer.describe_file', file_id=id) }}"> |
|
|
<p>File path: {{describe_form.file_path}}</p> |
|
|
{{ describe_form.csrf_token }} |
|
|
<fieldset class=""> |
|
|
<p>File path: {{describe_form.file_path}}</p> |
|
|
{{ describe_form.description.label }} |
|
|
<fieldset class=""> |
|
|
{{ describe_form.description }} |
|
|
{{ describe_form.description.label }} |
|
|
{% for message in describe_form.description.errors %} |
|
|
{{ describe_form.description }} |
|
|
<div class="error">{{ message }}</div> |
|
|
{% for message in describe_form.description.errors %} |
|
|
{% endfor %} |
|
|
<div class="error">{{ message }}</div> |
|
|
</fieldset> |
|
|
{% endfor %} |
|
|
<fieldset class=""> |
|
|
</fieldset> |
|
|
{{ describe_form.searchtags.label }} |
|
|
<fieldset class=""> |
|
|
{{ describe_form.searchtags }} |
|
|
{{ describe_form.searchtags.label }} |
|
|
{% for message in describe_form.searchtags.errors %} |
|
|
{{ describe_form.searchtags }} |
|
|
<div class="error">{{ message }}</div> |
|
|
{% for message in describe_form.searchtags.errors %} |
|
|
{% endfor %} |
|
|
<div class="error">{{ message }}</div> |
|
|
</fieldset> |
|
|
{% endfor %} |
|
|
<fieldset class=""> |
|
|
</fieldset> |
|
|
{{ describe_form.alttext.label }} |
|
|
<fieldset class=""> |
|
|
{{ describe_form.alttext }} |
|
|
{{ describe_form.alttext.label }} |
|
|
{% for message in describe_form.alttext.errors %} |
|
|
{{ describe_form.alttext }} |
|
|
<div class="error">{{ message }}</div> |
|
|
{% for message in describe_form.alttext.errors %} |
|
|
{% endfor %} |
|
|
<div class="error">{{ message }}</div> |
|
|
</fieldset> |
|
|
{% endfor %} |
|
|
<fieldset class="button"> |
|
|
</fieldset> |
|
|
{{ describe_form.save }} |
|
|
<fieldset class="button"> |
|
|
</fieldset> |
|
|
{{ describe_form.save }} |
|
|
</form> |
|
|
</fieldset> |
|
|
|
|
|
</form> |
|
|
|
|
|
</div> |
|
|
|
|
|
{% endfor%} |
|
|
</div> |
|
|
</div> |
|
|
{% endfor%} |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
{% endblock %} |
|
|
{% endblock %} |
|
|