Ajout page erreur si toutes les url vident, création du fichier css pour habiller la page.
This commit is contained in:
10
templates/download_complete.html
Normal file
10
templates/download_complete.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename= 'css/style.css') }}">
|
||||
<title>SpotDL Web</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1> SpotDL Web </h1>
|
||||
<h2> Téléchargement Terminé </h2>
|
||||
<button onclick="window.location.href = '/';">Télécharger à nouveau</button>
|
||||
</body>
|
||||
13
templates/erreur.html
Normal file
13
templates/erreur.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename= 'css/style.css') }}">
|
||||
<title>SpotDL Web</title>
|
||||
</head>
|
||||
|
||||
<h1> SpotDL Web </h1>
|
||||
<h2> Veuillez entrer au moins une URL ! </h2>
|
||||
<button onclick="window.location.href = '/';">Télécharger à nouveau</button>
|
||||
|
||||
{% if message %}
|
||||
<p>{{ message }}</p>
|
||||
{% endif %}
|
||||
@@ -1,9 +0,0 @@
|
||||
<form method="POST">
|
||||
<label for="url">URL:</label>
|
||||
<input type="text" name="url" id="url">
|
||||
<input type="submit" value="Téléchargement">
|
||||
</form>
|
||||
|
||||
{% if message %}
|
||||
<p>{{ message }}</p>
|
||||
{% endif %}
|
||||
45
templates/upload.html
Normal file
45
templates/upload.html
Normal file
@@ -0,0 +1,45 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename= 'css/style.css') }}">
|
||||
<title>SpotDL Web</title>
|
||||
</head>
|
||||
|
||||
<h1>SpotDL Web</h1>
|
||||
<div class="url">
|
||||
<form method="POST">
|
||||
<!-- <label for="url">URL:</label>
|
||||
<input type="text" name="url" id="url"> -->
|
||||
|
||||
<div style="margin-top: 10px;">
|
||||
<label for="url1">URL 1:</label>
|
||||
<input type="text" name="url1" id="url1">
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 10px;">
|
||||
<label for="url2">URL 2:</label>
|
||||
<input type="text" name="url2" id="url2">
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 10px;">
|
||||
<label for="url3">URL 3:</label>
|
||||
<input type="text" name="url3" id="url3">
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 10px;">
|
||||
<label for="url4">URL 4:</label>
|
||||
<input type="text" name="url4" id="url4">
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 10px;">
|
||||
<label for="url5">URL 5:</label>
|
||||
<input type="text" name="url5" id="url5">
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 10px;">
|
||||
<input type="submit" value="Téléchargement">
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user