nekrochan/templates/staff/edit-news.html

27 řádky
913 B
HTML
Surový Trvalý odkaz Normální zobrazení Historie

2024-03-16 11:20:50 +00:00
{% extends "base.html" %}
{% block title %}Upravit příspěvky{% endblock %}
{% block content %}
<div class="container">
<h1 class="title">Upravit novinky</h1>
<hr>
<form method="post" action="/staff/actions/edit-news">
{% for newspost in news %}
<div class="box">
<h2 class="headline">
<span>{{ newspost.title }}</span>
<span class="float-r">
{{ newspost.author }} - <time datetime="{{ newspost.created }}">{{ newspost.created|czech_datetime }}</time>
</span>
</h2>
<hr>
<textarea class="edit-box" name="{{ newspost.id }}">{{ newspost.content_nomarkup }}</textarea>
</div>
<hr>
{% endfor %}
<input class="button full-width" type="submit" value="Upravit">
</form>
</div>
{% endblock %}