Skip to content

Commit 4495867

Browse files
update to login
1 parent f0064e4 commit 4495867

File tree

3 files changed

+47
-6
lines changed

3 files changed

+47
-6
lines changed

src/routers/ui_routes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616

1717
@router.get("/")
18-
def home(request: Request):
18+
def home(request: Request, response_model=HTMLResponse):
1919
return TEMPLATES.TemplateResponse("home/index.html", {"request" : request})
2020

2121

2222
@router.get("/login")
23-
def login(request: Request):
23+
def login(request: Request, response_model=HTMLResponse):
2424
return TEMPLATES.TemplateResponse("accounts/login.html", {"request" : request})

src/templates/accounts/login.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,15 @@ <h3 class="font-weight-bolder text-info text-gradient">
4040

4141
<form role="form text-left" method="post" action="">
4242

43-
{{ form.hidden_tag() }}
4443

4544
<label>Username</label>
4645
<div class="mb-3">
47-
{{ form.username(placeholder="Username", class="form-control") }}
46+
<input type="text" name="username" id="username" placeholder="username" class="form-control">
4847
</div>
49-
48+
5049
<label>Password</label>
5150
<div class="mb-3">
52-
{{ form.password(placeholder="Password", class="form-control", type="password") }}
51+
<input type="type" name="password" id="password" class="form-control">
5352
</div>
5453

5554
<div class="text-center">
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<footer class="footer py-5">
2+
<div class="container">
3+
<div class="row">
4+
<div class="col-lg-8 mb-4 mx-auto text-center">
5+
<a href="https://bit.ly/3fKQZaL" target="_blank" class="text-secondary me-xl-5 me-3 mb-sm-0 mb-2">
6+
Creative-Tim
7+
</a>
8+
<a href="https://appseed.us" target="_blank" class="text-secondary me-xl-5 me-3 mb-sm-0 mb-2">
9+
AppSeed
10+
</a>
11+
<a href="https://appseed.us/support/" target="_blank" class="text-secondary me-xl-5 me-3 mb-sm-0 mb-2">
12+
Support
13+
</a>
14+
</div>
15+
<div class="col-lg-8 mx-auto text-center mb-4 mt-2">
16+
<a href="javascript:;" target="_blank" class="text-secondary me-xl-4 me-4">
17+
<span class="text-lg fab fa-dribbble"></span>
18+
</a>
19+
<a href="javascript:;" target="_blank" class="text-secondary me-xl-4 me-4">
20+
<span class="text-lg fab fa-twitter"></span>
21+
</a>
22+
<a href="javascript:;" target="_blank" class="text-secondary me-xl-4 me-4">
23+
<span class="text-lg fab fa-instagram"></span>
24+
</a>
25+
<a href="javascript:;" target="_blank" class="text-secondary me-xl-4 me-4">
26+
<span class="text-lg fab fa-pinterest"></span>
27+
</a>
28+
<a href="javascript:;" target="_blank" class="text-secondary me-xl-4 me-4">
29+
<span class="text-lg fab fa-github"></span>
30+
</a>
31+
</div>
32+
</div>
33+
<div class="row">
34+
<div class="col-8 mx-auto text-center mt-1">
35+
<p class="mb-0 text-secondary">
36+
&copy; Creative-Tim - Coded by AppSeed.
37+
</p>
38+
</div>
39+
</div>
40+
</div>
41+
</footer>
42+

0 commit comments

Comments
 (0)