-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsplit.html
48 lines (45 loc) · 975 Bytes
/
split.html
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE HTML>
<html>
<head>
<title>File split into verses</title>
<style type="text/css">
h1 { text-align: center; }
pre { display: inline; }
.selected { color: green; }
.rejected { color: red; }
</style>
</head>
<body>
{% if errors %}
<p>Had the following errors.</p>
<pre>
{{ errors }}
</pre>
{% endif %}
{% for block_content, block_selected in blocks %}
{% if block_selected %}
<span class="selected">
{% else %}
<span class="rejected">
{% endif %}
<pre>{{ block_content|pre_fixed }}</pre>
</span>
{% if block_selected %}
<hr/>
{% endif %}
{% endfor %}
<ul>
<li>
<form method="post" enctype="multipart/form-data">
<input type="file" name="uploaded_htm_file" />
<input type="submit" name="submit_action" value="Upload" />
</form>
</li>
or
<li>
<form method="post">
<input type="text" size="100" name="url_of_htm_file" />
<input type="submit" name="submit_action" value="Retrieve" />
</form></li>
</body>
</html>