mostly implement topics app
This commit is contained in:
16
app/templates/topics/edit.html
Normal file
16
app/templates/topics/edit.html
Normal file
@ -0,0 +1,16 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}creating a topic{% endblock %}
|
||||
{% block content %}
|
||||
<div class="darkbg settings-container">
|
||||
<h1>Editing topic {{ topic['name'] }}</h1>
|
||||
<form method="post">
|
||||
<label for=name>Name</label>
|
||||
<input type="text" name="name" id="name" required value="{{ topic['name'] }}"><br>
|
||||
<label for="description">Description</label>
|
||||
<textarea id="description" name="description" required rows=5>{{ topic['description'] }}</textarea><br>
|
||||
<input type="submit" value="Save changes">
|
||||
<a class="linkbutton warn" href={{ url_for("topics.topic", slug=topic['slug'] )}}>Cancel</a><br>
|
||||
<i> Note: to preserve history, you cannot change the topic URL.</i>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user