17 lines
		
	
	
		
			731 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			731 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% 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 %}
 |