Nekrocuck
This commit is contained in:
26
templates/staff/edit-news.html
Normal file
26
templates/staff/edit-news.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user