add form handler
This commit is contained in:
4
app/templates/bootstrap4.html
Normal file
4
app/templates/bootstrap4.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
31
app/templates/index.html
Normal file
31
app/templates/index.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru ">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename = 'css/index.css')}}">
|
||||
|
||||
{% include 'bootstrap4.html'%}
|
||||
|
||||
<title>Save2pdf</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container h-100">
|
||||
<div class="row align-items-center h-100">
|
||||
<div class="col-6 mx-auto">
|
||||
<form action="" method="POST" >
|
||||
<h1> Сохрани в PDF </h1>
|
||||
<div class="form-group">
|
||||
<input type="email" class="form-control" name="email" aria-describedby="emailHelp" placeholder="Введите адрес e-mail">
|
||||
<small id="emailHelp" class="form-text text-muted">На него мы пришлем pdf</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="link" placeholder="Введите ссылку">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Сохранить</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
31
app/templates/index0.html
Normal file
31
app/templates/index0.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru ">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename = 'css/index.css')}}">
|
||||
|
||||
{% include 'bootstrap4.html'%}
|
||||
|
||||
<title>Save2pdf</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container h-100">
|
||||
<div class="row align-items-center h-100">
|
||||
<div class="col-6 mx-auto">
|
||||
<form method="POST" action="" >
|
||||
<h1> Сохрани в PDF </h1>
|
||||
<div class="form-group">
|
||||
<input type="email" class="form-control" name="email" aria-describedby="emailHelp" placeholder="Введите адрес e-mail">
|
||||
<small id="emailHelp" class="form-text text-muted">На него мы пришлем pdf</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="link" placeholder="Введите ссылку">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Сохранить</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user