2018-05-25 19:57:30 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
Add a screenshot | {{ package.title }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2018-07-28 17:05:09 +02:00
|
|
|
<a href="{{ screenshot.url }}">
|
|
|
|
<img src="{{ screenshot.getThumbnailURL() }}" alt="{{ screenshot.title }}" />
|
|
|
|
</a>
|
2018-05-25 20:06:05 +02:00
|
|
|
|
2018-12-22 23:29:30 +01:00
|
|
|
{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %}
|
2018-05-25 19:57:30 +02:00
|
|
|
<form method="POST" action="" enctype="multipart/form-data">
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
|
|
|
|
{{ render_field(form.title) }}
|
2018-12-22 23:29:30 +01:00
|
|
|
{{ render_checkbox_field(form.delete) }}
|
2018-05-25 19:57:30 +02:00
|
|
|
|
|
|
|
{% if package.checkPerm(current_user, "APPROVE_SCREENSHOT") %}
|
2018-12-22 23:29:30 +01:00
|
|
|
{{ render_checkbox_field(form.approved) }}
|
2018-05-25 19:57:30 +02:00
|
|
|
{% else %}
|
|
|
|
<p>Approved: {{ screenshot.approved }}</p>
|
|
|
|
{% endif %}
|
|
|
|
{{ render_submit_field(form.submit) }}
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|