-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.html
119 lines (114 loc) · 3.63 KB
/
base.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Compute Form</title>
<style>
td {
padding: 10px;
font-size: 1.2em;
margin: 10px;
font-family: Arial, sans-serif;
}
td.label {
text-align: left;
}
td.data {
text-align: right;
}
td.header {
font-size: 1.5em;
font-weight: bold;
text-align: center;
}
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 10;
padding: 10;
}
table {
width: 90%;
border-collapse: collapse;
}
table, th, td {
border: 3px solid black;
}
td.label {
padding: 8px;
text-align: center;
}
h1 {
background-color: #333;
color: white;
padding: 20px;
text-align: center;
}
form {
background-color: #fff;
max-width: 500px;
margin: 40px auto;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
p {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 10px;
}
input[type="text"], input[type="number"], input[type="submit"] {
width: 95%;
padding: 5px;
border: 3px solid #ccc;
border-radius: 4px;
}
input[type="submit"] {
background-color: #007BFF;
color: #fff;
cursor: pointer;
border: 1px solid #007BFF;
}
input[type="submit"]:hover {
background-color: #0056b3;
}
ul {
max-width: 700px;
margin: 20px auto;
}
li {
background-color: #dff0d8; /* for the success category, adjust if needed */
margin-bottom: 10px;
padding: 10px;
border-radius: 4px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<h1>Compute Form</h1>
<form method="post">
{{ form.hidden_tag() }}
<p>{{ form.customer_name.label }}<br>{{ form.customer_name }}</p>
<p>{{ form.hourly_spend.label }}<br>{{ form.hourly_spend }}</p>
<p>{{ form.three_year_flex.label }}<br>{{ form.three_year_flex }}</p>
<p>{{ form.one_year_flex.label }}<br>{{ form.one_year_flex }}</p>
<p>{{ form.sud_percentage.label }}<br>{{ form.sud_percentage }}</p>
<p>{{ form.submit() }}</p>
</form>
{% if on_demand_percentage is not none %}
<p><strong>On Demand %:</strong> {{ on_demand_percentage }} %</p>
{% endif %}
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<ul>
{% for category, message in messages %}
<li{% if category %} class="{{ category }}"{% endif %}>{{ message|safe }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
</body>
</html>