forked from html5rocks/www.html5rocks.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlive.html
58 lines (55 loc) · 1.12 KB
/
live.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
49
50
51
52
53
54
55
56
57
58
{% extends "base.html" %}
{% block headtitle %}Google Developers Live Settings{% endblock %}
{% block head %}
<style>
table {
width: 50%;
}
th {
text-align: right;
}
td, th {
padding: 3px 5px;
}
input[type="text"], textarea {
width: 100%;
}
form {
margin: 1em 0;
}
input[required]:not(:invalid) {
border: 1px solid green;
-webkit-box-shadow: 0 0 3px green;
-moz-box-shadow: 0 0 3px green;
-o-box-shadow: 0 0 3px green;
box-shadow: 0 0 3px green;
}
input:invalid {
border: 1px solid #e88;
-webkit-box-shadow: 0 0 3px rgba(255, 0, 0, 0.8);
-moz-box-shadow: 0 0 3px rgba(255, 0, 0, 0.8);
-o-box-shadow: 0 0 3px rgba(255, 0, 0, 0.8);
box-shadow: 0 0 3px rgba(255, 0, 0, 0.8);
}
input[type='submit'] {
margin: 15px auto 25px;
text-align: right;
}
.errorlist {
color: red;
list-style: none;
margin: 0;
}
</style>
{% endblock %}
{% block body %}
<section>
<h2>Google Developers Live Settings:</h2>
<form name="live_form" method="POST" action="/database/live">
<table>
{{ live_form }}
<tr><td colspan="2"><input type="submit" /></td></tr>
</table>
</form>
</section>
{% endblock %}