contentdb/app/templates/packages/screenshot_edit.html
2020-12-06 04:22:56 +00:00

32 lines
866 B
HTML

{% extends "base.html" %}
{% block title %}
Edit screenshot | {{ package.title }}
{% endblock %}
{% block content %}
<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>
{{ form.hidden_tag() }}
{{ render_field(form.title) }}
{{ render_checkbox_field(form.delete) }}
{% 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>
{% endblock %}