aboutsummaryrefslogtreecommitdiffstats
path: root/templates/news/add.html
blob: 53fb6822c1b6c213a5de44365ee86f78fc876fd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{% extends 'layout.html' %}

{% block content %}
{% if news %}
<form action="{{ url_for('edit_news', news_id=news.id)}}" method="post">
{% else %}
<form action="{{ url_for('add_news')}}" method="post">
{% endif %}
    <input type=text size=80 name=title value="{% if news %}{{news.title}}{% endif %}"/><br/>
    <textarea name=content rows=20 cols=80>{% if news %}{{news.content}}{% endif %}</textarea>
<input type="submit" value="Submit" />
</form>
{% endblock %}