You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.2 KiB
HTML

2 years ago
{%extends 'base.html' %} {%block head %}
<title>Draw</title>
<link rel="stylesheet" href="{{url_for('static', filename='css/write.css')}}" />
<script src="{{url_for('static', filename='js/draw.js')}}" defer></script>
{%endblock%} {%block nav%}
<a href="{{url_for('home.home')}}">Home</a>
2 years ago
{% if tree is undefined %}
<a href="{{url_for('display.list')}}">See all</a>
{% else %}
<a href="{{url_for('display.display', tree=tree)}}">See tree</a>
{% endif %}
2 years ago
{%endblock%} {%block contents%}
<!-- mmm i dont remember what i was using these two things for! -->
<!-- data-parent="{{parent or None}}" -->
<!-- data-id="{{id}}" -->
2 years ago
<!-- Maybe to create links in the display page? -->
2 years ago
<header>
2 years ago
<h1>Write</h1>
2 years ago
</header>
<main>
2 years ago
<div id="previous">{% if content %} {{content|safe}} {% endif %}</div>
<form method="POST">
<input type="hidden" name="id" value="{{id}}" />
2 years ago
{% if tree is undefined %}
<input type="text" name="tree_name" placeholder="Tree name" required />
<br/>
{% endif %}
<textarea name="content" placeholder="Write here..." required></textarea>
<br/>
<input type="text" name="username" placeholder="Author" />
<br/>
<input type="submit" value="Submit" />
2 years ago
</form>
2 years ago
</main>
2 years ago
{%endblock%}