Docfile commited on
Commit
febb913
·
verified ·
1 Parent(s): 9b93aaf

Update templates/new_thread.html

Browse files
Files changed (1) hide show
  1. templates/new_thread.html +17 -8
templates/new_thread.html CHANGED
@@ -1,12 +1,21 @@
1
  {% extends "base.html" %}
2
  {% block title %}Nouveau Fil de Discussion{% endblock %}
3
  {% block content %}
4
- <h2>Créer un nouveau fil de discussion</h2>
5
- <form method="POST" action="{{ url_for('new_thread') }}">
6
- <label for="title">Titre :</label><br>
7
- <input type="text" name="title" id="title" required><br><br>
8
- <label for="content">Message initial :</label><br>
9
- <textarea name="content" id="content" rows="5" required></textarea><br>
10
- <button type="submit">Créer</button>
 
 
 
 
 
 
 
 
 
11
  </form>
12
- {% endblock %}
 
1
  {% extends "base.html" %}
2
  {% block title %}Nouveau Fil de Discussion{% endblock %}
3
  {% block content %}
4
+ <h2 class="text-2xl font-semibold mb-4">Créer un nouveau fil de discussion</h2>
5
+ <form method="POST" action="{{ url_for('new_thread') }}" class="space-y-4"> <!-- Espacement vertical -->
6
+ <div>
7
+ <label for="title" class="block text-sm font-medium text-gray-700">Titre :</label>
8
+ <input type="text" name="title" id="title" required
9
+ class="mt-1 block w-full p-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"> <!-- Style de l'input -->
10
+ </div>
11
+ <div>
12
+ <label for="content" class="block text-sm font-medium text-gray-700">Message initial :</label>
13
+ <textarea name="content" id="content" rows="5" required
14
+ class="mt-1 block w-full p-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"></textarea> <!-- Style du textarea -->
15
+ </div>
16
+ <button type="submit"
17
+ class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded transition-colors duration-200">
18
+ Créer
19
+ </button>
20
  </form>
21
+ {% endblock %}