2024-01-15 15:06:25 +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>
|
2024-02-18 19:25:38 +00:00
|
|
|
<span class="float-r">
|
2024-02-25 16:26:39 +00:00
|
|
|
{{ newspost.author }} - <time datetime="{{ newspost.created }}">{{ newspost.created|czech_datetime }}</time>
|
2024-02-18 19:25:38 +00:00
|
|
|
</span>
|
2024-01-15 15:06:25 +00:00
|
|
|
</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 %}
|