Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Ouafellaoui_Imad/Templates/creer_user.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<title>Create User</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
</head>
<body class="body-style">
<center class="center-style">
<div class="form-style">
<h3 class="form-title">Create User</h3>
<form action="/create_user" method="post">
<label class="label-style">Username</label><br>
<input type="text" name="username"/><br>
<label class="label-style">Password</label><br>
<input type="password" name="password1"/><br>
<label class="label-style">Confirm Password</label><br>
<input type="password" name="password2"/><br><br>
<input type="submit" value="Create"/>
</form>
<p class="error-message">{{error_create}}</p>
</div>
</center>
</body>
</html>
74 changes: 74 additions & 0 deletions Ouafellaoui_Imad/Templates/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<title>Home</title>
</head>
<body>
<div class="container">
<div class="lines">
<form action="{{ url_for('back') }}">
<button type="submit" style="margin: 5px 10px 15px 10px;"><i class="fa fa-search"></i> Back</button>
</form>
<form action="{{ url_for('download_home_dir') }}">
<button type="submit" style="margin: 5px 10px 15px 10px;"><i class="fa fa-search"></i> Télécharger</button>
</form>
<form action="{{ url_for('logout') }}" method="GET" >
<button type="submit" style="margin: 5px 10px 15px 10px;"><i class="fa fa-search"></i> Déconnexion</button>
</form>
</div>
<div>
<form action="/Rechercher" method="GET">
<div style="display: flex;">
<input type="text" placeholder="Recherche..." name="keyword" style="flex: 1;">
<button type="submit" style="margin-left: 10px;"><i class="fa fa-search"></i> Submit</button>
</div>
</form>
</div>

<div class="liness">
<div>
<label>Files</label>
<input type="text" value="{{ Files }}" readonly>
</div>
<div>
<label>Dirs</label>
<input type="text" value="{{ Dirs }}" readonly>
</div>
<div>
<label>Space</label>
<input type="text" value="{{ Space }}" readonly>
</div>
</div>

{% if db != [] %}
<div class="color">
<table class="data-grid">
<thead>
<tr>
<th>Nom</th>
<th>Date</th>
<th>Taille</th>
<th>Permission</th>
</tr>
</thead>
<tbody>
{% for item in db %}
<tr>
<td><a href="{{ url_for('home', name=item.name) }}">{{ item.name }}</a></td>
<td>{{ item.date }}</td>
<td>{{ item.taille }}</td>
<td>{{ item.permission }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
<pre>{{ texte }}</pre>
</div>
</body>
</html>
24 changes: 24 additions & 0 deletions Ouafellaoui_Imad/Templates/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<html>
<head>
<title>Welcome to Home Space</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
</head>
<body class="body-style">
<center class="center-style">
<h1>Welcome to Home Space</h1>
<h3 class="form-title">Authentication</h3>
<div class="form-style">
<form action="/login" method="post" >
<label class="label-style">Username</label> <br>
<input type="text" name="username"/><br>
<label class="label-style">Password</label><br>
<input type="password" name="password"/>
<br><br>
<input type="submit" value="Authenticate"/>
</form>
</div>
<p class="error-message">{{error_auth}}</p>
<a href="/CreerUser" class="a-style">Create a user</a>
</center>
</body>
</html>
Binary file added Ouafellaoui_Imad/__pycache__/model.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Loading