mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +01:00
31 lines
854 B
HTML
31 lines
854 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) }}
|
|
|
|
{% if package.check_perm(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.get_thumb_url() }}" alt="{{ screenshot.title }}" />
|
|
</a>
|
|
</div>
|
|
{% endblock %}
|