This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from MaziniiX/main
commit
- Loading branch information
Showing
11 changed files
with
206 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
mig | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
body { | ||
font-family: Arial, sans-serif; | ||
background: #fff; | ||
color: #000; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.header { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
background-color: #000; | ||
padding: 10px 20px; | ||
color: white; | ||
position: relative; | ||
} | ||
|
||
.menu-button { | ||
background-color: #4CAF50; | ||
color: white; | ||
padding: 16px; | ||
font-size: 16px; | ||
border: none; | ||
cursor: pointer; | ||
} | ||
|
||
.menu-button:hover, .menu-button:focus { | ||
background-color: #3e8e41; | ||
} | ||
|
||
.menu-content { | ||
position: absolute; | ||
background-color: #f9f9f9; | ||
min-width: 160px; | ||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | ||
z-index: 1; | ||
} | ||
|
||
.menu-content a { | ||
display: none; /* Add this line to hide the menu by default */ | ||
position: absolute; | ||
background-color: #f9f9f9; | ||
min-width: 160px; | ||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | ||
z-index: 1; | ||
} | ||
|
||
.menu-button:hover .menu-content, .menu-button:focus .menu-content { | ||
display: block; | ||
} | ||
|
||
h1 { | ||
color: white; | ||
} | ||
|
||
main { | ||
color: black; | ||
} |
24 changes: 18 additions & 6 deletions
24
Django_Frontend/monprojet/monapp/templates/monapp/base.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 4 additions & 19 deletions
23
Django_Frontend/monprojet/monapp/templates/monapp/home.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,6 @@ | ||
<!-- home.html --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Home Page</title> | ||
<!-- Vous pouvez ajouter ici vos propres liens CSS, scripts JavaScript, etc. --> | ||
</head> | ||
<body> | ||
{% extends 'monapp/base.html' %} | ||
|
||
{% block content %} | ||
<h1>Welcome to the Home Page!</h1> | ||
<!-- Ajoutez le reste de votre contenu ici --> | ||
<ul> | ||
<li><a href="{% url 'create-client' %}">Create Client</a></li> | ||
<li><a href="{% url 'create-staff' %}">Create Staff</a></li> | ||
<li><a href="{% url 'create-staff-type' %}">Create Staff Type</a></li> | ||
<li><a href="{% url 'view_clients' %}">View Clients</a></li> | ||
<li><a href="{% url 'view_staff' %}">View Staff</a></li> | ||
<li><a href="{% url 'view_staff_types' %}">View Staff Types</a></li> | ||
<!-- Ajoutez d'autres liens ici selon vos besoins --> | ||
</ul> | ||
</body> | ||
</html> | ||
{% endblock %} |
16 changes: 16 additions & 0 deletions
16
Django_Frontend/monprojet/monapp/templates/monapp/login.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% extends 'monapp/base.html' %} | ||
|
||
{% block content %} | ||
<h2>Login</h2> | ||
{% if messages %} | ||
{% for message in messages %} | ||
<p>{{ message }}</p> | ||
{% endfor %} | ||
{% endif %} | ||
<form method="post"> | ||
{% csrf_token %} | ||
<input type="text" name="username" placeholder="Username" required> | ||
<input type="password" name="password" placeholder="Password" required> | ||
<button type="submit">Login</button> | ||
</form> | ||
{% endblock %} |
10 changes: 10 additions & 0 deletions
10
Django_Frontend/monprojet/monapp/templates/monapp/register.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% extends 'monapp/base.html' %} | ||
|
||
{% block content %} | ||
<h1>Register a new client account</h1> | ||
<form method="post"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<button type="submit">Register</button> | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.