mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-09 14:37:36 +01:00
Improve edit/new screenshot appearance
This commit is contained in:
parent
4226e945e6
commit
4046c00a01
@ -1,16 +1,15 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}
|
||||
Add a screenshot | {{ package.title }}
|
||||
Edit screenshot | {{ package.title }}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<a href="{{ screenshot.url }}">
|
||||
<img src="{{ screenshot.getThumbnailURL() }}" alt="{{ screenshot.title }}" />
|
||||
</a>
|
||||
|
||||
<div class="row">
|
||||
{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %}
|
||||
<form method="POST" action="" enctype="multipart/form-data">
|
||||
<form method="POST" action="" enctype="multipart/form-data" class="col-md">
|
||||
<h1>Edit screenshot</h1>
|
||||
|
||||
{{ form.hidden_tag() }}
|
||||
|
||||
{{ render_field(form.title) }}
|
||||
@ -21,6 +20,12 @@
|
||||
{% 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 %}
|
||||
|
@ -5,6 +5,8 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Add a screenshot</h1>
|
||||
|
||||
{% from "macros/forms.html" import render_field, render_submit_field %}
|
||||
<form method="POST" action="" enctype="multipart/form-data">
|
||||
{{ form.hidden_tag() }}
|
||||
|
Loading…
Reference in New Issue
Block a user