Skip to content

Commit

Permalink
(feat): Added profile urls and template
Browse files Browse the repository at this point in the history
  • Loading branch information
LopesLs committed Jan 5, 2024
1 parent f2f5469 commit fb7ef51
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scheduleManagement/templates/account/profile.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<p><strong>Id:</strong> {{ user.id }}</p>
<p><strong>Username:</strong> {{ user.username }}</p>
<p><strong>Email:</strong> {{ user.email }}</p>

<a href="edit/{{ user.id }}">Editar</a>
</body>
</html>
6 changes: 6 additions & 0 deletions scheduleManagement/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

urlpatterns = [
path("", views.HomeRequestHandler.as_view(), name="home"),
path("accounts/profile/", views.UserRequestHandler.as_view(), name="profile"),
path(
"accounts/profile/edit/<int:pk>",
views.UserUpdateRequestHandler.as_view(),
name="edit_profile",
),
path(
"list-courses/", views.CourseListRequestHandler.as_view(), name="list_courses"
),
Expand Down

0 comments on commit fb7ef51

Please sign in to comment.