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
50 lines
1.2 KiB
HTML
{%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>
|
|
|
|
|
|
|
|
{% 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 %}
|
|
|
|
{%endblock%} {%block contents%}
|
|
|
|
<!-- mmm i dont remember what i was using these two things for! -->
|
|
<!-- data-parent="{{parent or None}}" -->
|
|
<!-- data-id="{{id}}" -->
|
|
<!-- Maybe to create links in the display page? -->
|
|
<header>
|
|
<h1>Write</h1>
|
|
</header>
|
|
|
|
|
|
<main>
|
|
|
|
|
|
<div id="previous">{% if content %} {{content|safe}} {% endif %}</div>
|
|
|
|
<form method="POST">
|
|
<input type="hidden" name="id" value="{{id}}" />
|
|
|
|
{% 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" />
|
|
|
|
</form>
|
|
</main>
|
|
|
|
{%endblock%}
|