summaryrefslogtreecommitdiff
path: root/day7/templates
diff options
context:
space:
mode:
Diffstat (limited to 'day7/templates')
-rw-r--r--day7/templates/form.html26
-rw-r--r--day7/templates/index.html7
2 files changed, 33 insertions, 0 deletions
diff --git a/day7/templates/form.html b/day7/templates/form.html
new file mode 100644
index 0000000..e1edb96
--- /dev/null
+++ b/day7/templates/form.html
@@ -0,0 +1,26 @@
+<html style="background-color: {color};">
+ <body>
+ <form action="/show_errors" method="POST">
+ <input type="checkbox" name="show_errors" value="1">Show errors<br/>
+ <input type="submit" value="Send"><br/>
+ </form>
+
+ <form action="/div" method="POST">
+ Разделить
+ <input type="text" name="numerator"> на
+ <input type="text" name="denominator"><br/>
+ <input type="submit" value="Send"><br/>
+ </form>
+
+ <form action="/set_cookie/=" method="POST">
+ Изменить Cookies
+ <input type="text" name="cookie_line"><br/>
+ <input type="submit" value="Send"><br/>
+ </form>
+
+ <form action="/" method="POST">
+ <input type="checkbox" name="short_log" value="1">Short log<br/>
+ <input type="submit" value="Send"><br/>
+ </form>
+ </body>
+</html>
diff --git a/day7/templates/index.html b/day7/templates/index.html
new file mode 100644
index 0000000..b5fae3a
--- /dev/null
+++ b/day7/templates/index.html
@@ -0,0 +1,7 @@
+<html style="background-color: {color};">
+
+<body>
+{text}
+</body>
+
+</html> \ No newline at end of file