2018-05-25 19:57:30 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2020-12-06 05:22:56 +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">
|
|
|
|
<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) }}
|
|
|
|
{{ render_checkbox_field(form.delete) }}
|
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 %}
|
|
|
|
<p>Approved: {{ screenshot.approved }}</p>
|
|
|
|
{% 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 %}
|