25 řádky
820 B
HTML
25 řádky
820 B
HTML
|
{% 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 }} - {{ newspost.created|czech_datetime }}</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 %}
|