2018-05-25 19:57:30 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("Edit screenshot") }} - {{ package.title }}
|
2018-05-25 19:57:30 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2020-12-06 05:22:56 +01:00
|
|
|
<div class="row">
|
|
|
|
{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %}
|
|
|
|
<form method="POST" action="" enctype="multipart/form-data" class="col-md">
|
2022-01-08 00:27:00 +01:00
|
|
|
<h1>{{ _("Edit screenshot") }}</h1>
|
2018-05-25 20:06:05 +02:00
|
|
|
|
2020-12-06 05:22:56 +01:00
|
|
|
{{ form.hidden_tag() }}
|
2018-05-25 19:57:30 +02:00
|
|
|
|
2020-12-06 05:22:56 +01:00
|
|
|
{{ render_field(form.title) }}
|
2018-05-25 19:57:30 +02:00
|
|
|
|
2020-12-06 05:22:56 +01:00
|
|
|
{% if package.checkPerm(current_user, "APPROVE_SCREENSHOT") %}
|
|
|
|
{{ render_checkbox_field(form.approved) }}
|
|
|
|
{% else %}
|
2022-01-08 00:27:00 +01:00
|
|
|
<p>{{ _("Approved") }}: {{ screenshot.approved }}</p>
|
2020-12-06 05:22:56 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{{ render_submit_field(form.submit) }}
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<a href="{{ screenshot.url }}" class="col-md-4 text-right">
|
|
|
|
<img src="{{ screenshot.getThumbnailURL() }}" alt="{{ screenshot.title }}" />
|
|
|
|
</a>
|
|
|
|
</div>
|
2018-05-25 19:57:30 +02:00
|
|
|
{% endblock %}
|