a bit of css wrangling
This commit is contained in:
parent
90d4251fd9
commit
475a412354
@ -26,48 +26,49 @@
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="distribusi_files">
|
||||
{% for id, describe_form in distribusi_file_forms.items() %}
|
||||
<div class="distribusi_file">
|
||||
{% if describe_form.type == "image" %}
|
||||
<img src="{{describe_form.file_path}}" alt="" />
|
||||
{% elif describe_form.type == "video" %}
|
||||
<video src="{{describe_form.file_path}}" preload="auto" alt="" controls></video>
|
||||
{% elif describe_form.type == "audio" %}
|
||||
<audio src="{{describe_form.file_path}}" preload="auto" alt="" controls></audio>
|
||||
{% else %}
|
||||
<a href="{{describe_form.file_path}}">file: {{describe_form.file_path}}</a>
|
||||
{% endif %}
|
||||
<form id={{id}} method="POST" enctype="multipart/form-data" action="{{ url_for('describer.describe_file', file_id=id) }}">
|
||||
{{ describe_form.csrf_token }}
|
||||
<p>File path: {{describe_form.file_path}}</p>
|
||||
<fieldset class="">
|
||||
{{ describe_form.description.label }}
|
||||
{{ describe_form.description }}
|
||||
{% for message in describe_form.description.errors %}
|
||||
<div class="error">{{ message }}</div>
|
||||
{% endfor %}
|
||||
</fieldset>
|
||||
<fieldset class="">
|
||||
{{ describe_form.searchtags.label }}
|
||||
{{ describe_form.searchtags }}
|
||||
{% for message in describe_form.searchtags.errors %}
|
||||
<div class="error">{{ message }}</div>
|
||||
{% endfor %}
|
||||
</fieldset>
|
||||
<fieldset class="">
|
||||
{{ describe_form.alttext.label }}
|
||||
{{ describe_form.alttext }}
|
||||
{% for message in describe_form.alttext.errors %}
|
||||
<div class="error">{{ message }}</div>
|
||||
{% endfor %}
|
||||
</fieldset>
|
||||
<fieldset class="button">
|
||||
{{ describe_form.save }}
|
||||
</fieldset>
|
||||
</form>
|
||||
<div id="mainworkflow">
|
||||
<div class="distribusi_files">
|
||||
{% for id, describe_form in distribusi_file_forms.items() %}
|
||||
<div class="distribusi_file">
|
||||
{% if describe_form.type == "image" %}
|
||||
<img src="{{describe_form.file_path}}" alt="" data-src="{{describe_form.file_path}}" loading="lazy"/>
|
||||
{% elif describe_form.type == "video" %}
|
||||
<video src="{{describe_form.file_path}}" preload="auto" alt="" controls loading="lazy"></video>
|
||||
{% elif describe_form.type == "audio" %}
|
||||
<audio src="{{describe_form.file_path}}" preload="auto" alt="" controls loading="lazy"> </audio>
|
||||
{% else %}
|
||||
<a href="{{describe_form.file_path}}">file: {{describe_form.file_path}}</a>
|
||||
{% endif %}
|
||||
<form id={{id}} method="POST" enctype="multipart/form-data" action="{{ url_for('describer.describe_file', file_id=id) }}">
|
||||
{{ describe_form.csrf_token }}
|
||||
<p>File path: {{describe_form.file_path}}</p>
|
||||
<fieldset class="">
|
||||
{{ describe_form.description.label }}
|
||||
{{ describe_form.description }}
|
||||
{% for message in describe_form.description.errors %}
|
||||
<div class="error">{{ message }}</div>
|
||||
{% endfor %}
|
||||
</fieldset>
|
||||
<fieldset class="">
|
||||
{{ describe_form.searchtags.label }}
|
||||
{{ describe_form.searchtags }}
|
||||
{% for message in describe_form.searchtags.errors %}
|
||||
<div class="error">{{ message }}</div>
|
||||
{% endfor %}
|
||||
</fieldset>
|
||||
<fieldset class="">
|
||||
{{ describe_form.alttext.label }}
|
||||
{{ describe_form.alttext }}
|
||||
{% for message in describe_form.alttext.errors %}
|
||||
<div class="error">{{ message }}</div>
|
||||
{% endfor %}
|
||||
</fieldset>
|
||||
<fieldset class="button">
|
||||
{{ describe_form.save }}
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
{% endfor%}
|
||||
</div>
|
||||
{% endfor%}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
@ -177,8 +177,6 @@ a:active {
|
||||
.distribusi_file {
|
||||
margin-top: 1em;
|
||||
padding: 0.5em;
|
||||
padding-left: auto;
|
||||
padding-right: auto;
|
||||
width: 45em;
|
||||
background-color:#fdfdfd;
|
||||
text-decoration: none;
|
||||
|
Loading…
Reference in New Issue
Block a user