fichier langue / bootstrap / modification sql article

This commit is contained in:
mepiphana2023
2024-04-24 14:55:29 +02:00
parent 45c05debe6
commit dbd04fe987
8 changed files with 85 additions and 70 deletions

View File

@@ -2,24 +2,24 @@ home.search.title = Search for an item by name...
home.search.cat = All categories
home.search.button = Search
profile.title = My Profile
profile.button = Edit
profile.pseudo = Username:
profile.surname = First Name:
profile.name = Last Name:
profile.email = Email:
profile.phone = Phone:
profile.street = Street:
profile.postal = Zip Code:
profile.city = City:
profile.credit = Credits:
profil.title = My Profile
profil.button = Edit
profil.pseudo = Username:
profil.surname = First Name:
profil.name = Last Name:
profil.email = Email:
profil.phone = Phone:
profil.street = Street:
profil.postal = Zip Code:
profil.city = City:
profil.credit = Credits:
edit.profile.currentpassword = Current Password:
edit.profile.newpassword = New Password:
edit.profile.confirmnewpassword = Confirm New Password:
edit.profile.title = Edit My Profile
edit.profile.button.edit = Save Changes
edit.profile.button.del = Delete My Account
edit.profil.currentpassword = Current Password:
edit.profil.newpassword = New Password:
edit.profil.confirmnewpassword = Confirm New Password:
edit.profil.title = Edit My Profile
edit.profil.button.edit = Save Changes
edit.profil.button.del = Delete My Account
login.title = To Log In:
login.id = Username:
@@ -27,7 +27,7 @@ login.password = Password:
login.save = Remember Me
login.forgotpassword = Forgot Password
login.connection = Login
login.makecompte = Create Account
login.makecompte = Create an Account
register.title = My Profile
register.button = Edit

View File

@@ -1,6 +1,6 @@
accueil.search.title = Rechercher un article par nom...
accueil.search.cat = Toutes les cat\u00e9gories
accueil.search.button = Recherche
home.search.title = Rechercher un article par nom...
home.search.cat = Toutes les cat\u00e9gories
home.search.button = Recherche
profil.title = Mon profil
profil.button = Modifier

View File

@@ -9,19 +9,23 @@
<div class="row mb-4">
<div class="col-12">
<!-- Formulaire de recherche avec sélection de catégorie -->
<form th:action="@{/accueil}" method="post" class="mb-3">
<!-- Barre de recherche -->
<div class="mb-3">
<input type="text" class="form-control" th:attr="placeholder=#{accueil.search.title}" name="searchTitle">
<div class="card">
<div class="card-body">
<form th:action="@{/accueil}" method="post" class="row g-3 align-items-center">
<div class="col-md-8">
<!-- Barre de recherche -->
<input type="text" class="form-control" th:attr="placeholder=#{home.search.title}" name="searchTitle">
<select class="form-control mt-2" name="searchCategory">
<option value="" th:text="#{home.search.cat}"></option>
<option th:each="category : ${categories}" th:value="${category.id}" th:text="${category.libelle}"></option>
</select>
</div>
<div class="col-md-4 text-center">
<button type="submit" class="btn btn-primary" th:text="#{home.search.button}">Search</button>
</div>
</form>
</div>
<div class="mb-3">
<select class="form-control" name="searchCategory">
<option value="" th:text="#{accueil.search.cat}"></option>
<option th:each="category : ${categories}" th:value="${category.id}" th:text="${category.libelle}"></option>
</select>
</div>
<button type="submit" class="btn btn-primary"th:text="#{accueil.search.button}"></button>
</form>
</div>
</div>
</div>
<div class="row">
@@ -39,7 +43,7 @@
<div>
<h6>Prix de vente: <span th:text="${article.prixVente}"></span></h6>
<h6>Vendeur: <span th:text="${article.utilisateur.getPseudo()}"></span> </h6>
<h6>Vendeur: <span th:text="${article.pseudoUtilisateur}"></span> </h6>
</div>
</div>
</br>

View File

@@ -110,7 +110,7 @@
<span th:text="#{profil.credit}"></span> <span th:text="${userProfile.credit}"></span>
</div>
<input type="hidden" th:field="*{id}" id="userId" th:value="${userProfile.id}">
<button type="submit" class="btn btn-primary" th:text="#{edit.profil.button.edit}"></button>
<button type="submit" class="btn btn-primary border-right" th:text="#{edit.profil.button.edit}"></button>
</div>
</div>
</form>

View File

@@ -107,7 +107,7 @@
</span>
</div>
<div class="champ-saisie">
<label for="password">Mot de passe: </label>
<label for="password" th:text="#{re}">Mot de passe: </label>
<div>
<input type="password" th:field="*{password}" id="password" />
</div>
@@ -118,7 +118,7 @@
</span>
</div>
<div class="champ-saisie">
<label for="confirmPassword">Confirmation du mot de passe: </label>
<label for="confirmPassword" th:text="#{}">Confirmation du mot de passe: </label>
<div>
<input type="password" id="confirmPassword" />
</div>