diff options
Diffstat (limited to 'day7/templates')
| -rw-r--r-- | day7/templates/form.html | 47 | ||||
| -rw-r--r-- | day7/templates/index.html | 4 |
2 files changed, 42 insertions, 9 deletions
diff --git a/day7/templates/form.html b/day7/templates/form.html index e1edb96..bff5030 100644 --- a/day7/templates/form.html +++ b/day7/templates/form.html @@ -1,26 +1,59 @@ -<html style="background-color: {color};"> - <body> +<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 type="submit" value="Send"><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 type="submit" value="Send"><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 type="submit" value="Send"><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 type="submit" value="Send"><br/> + <input class="submit_btn" type="submit" value="Send"><br/> </form> - </body> + </div> + +</body> + </html> diff --git a/day7/templates/index.html b/day7/templates/index.html index b5fae3a..bceb358 100644 --- a/day7/templates/index.html +++ b/day7/templates/index.html @@ -1,7 +1,7 @@ -<html style="background-color: {color};"> +<html style="background-color: %%color%%;"> <body> -{text} +%%text%% </body> </html>
\ No newline at end of file |