63 lines
1.6 KiB
HTML
63 lines
1.6 KiB
HTML
{% extends "base/base.html" %}
|
|
{% block main %}
|
|
<div id="buttons">
|
|
{% if current_user.is_authenticated %}
|
|
<div class="distribusi">
|
|
<a href="/distribusi">
|
|
<input type="button" name="button" value="Distribusi"></input>
|
|
</a>
|
|
</div>
|
|
{% if adminuser %}
|
|
<div class="admin">
|
|
<a href="/admin">
|
|
<input type="button" name="button" value="Admin"></input>
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
<div class="logout">
|
|
<a href="/logout">
|
|
<input type="button" name="button" value="Logout"></input>
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
<div class="help">
|
|
<a href="/help">
|
|
<input type="button" name="button" value="Help"></input>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="distribusi_files">
|
|
{% for file in distribusi_files %}
|
|
<p>{{file.path}}</p>
|
|
<form method="POST" enctype="multipart/form-data" action="{{ url_for('describer.describe_file') }}">
|
|
{{ describe_form.csrf_token }}
|
|
<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>
|
|
{% endfor%}
|
|
</div>
|
|
|
|
{% endblock %}
|