-
Notifications
You must be signed in to change notification settings - Fork 0
/
create.html
102 lines (63 loc) · 1.82 KB
/
create.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
{% extends 'base.html' %}
<style>
.GFG {
background-color: white;
border: 2px solid black;
color: green;
padding: 5px 10px;
text-align: center;
display: inline-block;
font-size: 20px;
margin: 10px 30px;
cursor: pointer;
}
</style>
{% block title %}
Add Expense
{% endblock title %}
{% block body %}
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
<div class="container">
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, messages in messages %}
<div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
<span>{{ messages }}</span>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% endfor %}
{% endif %}
{% endwith %}
</div>
<form method="POST">
<h4>ID</h4>
<input type="text" name="id">
<h4>Date</h4>
<input type="date" name="date" value="">
<h4>amount</h4>
<input type="integer" name="ampount" value="{{ ampount1 }}">
<h4>category</h4>
<input type="text" name="category">
<h4>payee</h4>
<input type="text" name="payee">
<h4>mode</h4>
<input type="text" name="mode">
<input type="submit">
</form>
<br>
<button class="GFG"
onclick="window.location.href = 'http://127.0.0.1:5000/upload';">
Click Here
</button>
<br>
<br>
<h4></h4>
<br>
<h4></h4>
<br>
<h4></h4>
<h4>
</h4>
</main>
{% endblock body %}