forked from realpython/materials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode_input.html
More file actions
30 lines (28 loc) · 767 Bytes
/
Copy pathcode_input.html
File metadata and controls
30 lines (28 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% extends "base.html" %}
{% block title %}
- Code Input
{% endblock title %}
{% block content %}
<style>
.code {
min-height: calc({{ num_lines }}em * 1.5 + 2 * 1em);
min-width: calc({{ max_chars }}ch + 4 * 2em);
}
</style>
<form>
<textarea class="code"
name="code"
placeholder="Paste your Python code here">{{ code }}</textarea>
<div class="controls">
<button formmethod="post" formaction="{{ url_for("reset_session") }}">
Reset Session ♻️
</button>
<button formmethod="post" formaction="{{ url_for("save_code") }}">
Save Code 💾
</button>
<button formmethod="post" formaction="{{ url_for("save_style") }}">
Next ➡️
</button>
</div>
</form>
{% endblock content %}