summaryrefslogtreecommitdiff
path: root/day7/templates/form.html
blob: bff5030978a7fc157457ced0551544cc1c4dd36b (plain)
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
59
<html style="background-color: %%color%%;">

<head>
    <style type="text/css">
        div {
            background-color: aliceblue;
            border-radius: 10px;
            box-shadow: 5px 5px 5px rgba(0,0,0,0.5);
            padding: 15px;
            width: 400px;
            margin: 20px;
        }

        div form {
            margin: 0;
        }

        .submit_btn {
            width: 100%;
        }

    </style>
</head>

<body>
    <div>
        <form action="/show_errors" method="POST">
            <input type="checkbox" name="show_errors" value="1">Show errors<br/>
            <input class="submit_btn" type="submit" value="Send"><br/>
        </form>
    </div>

    <div>
        <form action="/div" method="POST">
            Разделить
            <input type="text" name="numerator"> на
            <input type="text" name="denominator"><br/>
            <input class="submit_btn" type="submit" value="Send"><br/>
        </form>
    </div>

    <div>
        <form action="/set_cookie/=" method="POST">
            Изменить Cookies
            <input type="text" name="cookie_line"><br/>
            <input class="submit_btn" type="submit" value="Send"><br/>
        </form>
    </div>

    <div>
        <form action="/" method="POST">
            <input type="checkbox" name="short_log" value="1">Short log<br/>
            <input class="submit_btn" type="submit" value="Send"><br/>
        </form>
    </div>

</body>

</html>