auto(wevia-generate) doctrine193 job=gen-20260424-174443 | prompt=wevia_gen page HTML ERP Contracts 5 cards bouton new form popup vanilla JS
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled
This commit is contained in:
111
generated/wevia-gen-gen-20260424-174443-0.html
Normal file
111
generated/wevia-gen-gen-20260424-174443-0.html
Normal file
@@ -0,0 +1,111 @@
|
||||
<!-- index.html -->
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>WEVAL ERP - Contrats</title>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
background-color: #0a0e1a;
|
||||
color: #fff;
|
||||
}
|
||||
.bg-teal {
|
||||
background-color: #00e5a0;
|
||||
}
|
||||
.bg-yellow {
|
||||
background-color: #f4c430;
|
||||
}
|
||||
.text-teal {
|
||||
color: #00e5a0;
|
||||
}
|
||||
.text-yellow {
|
||||
color: #f4c430;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container mx-auto p-4 mt-4 bg-dark rounded-lg shadow-md">
|
||||
<h1 class="text-3xl font-bold text-teal mb-4">WEVAL ERP - Contrats</h1>
|
||||
<div class="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3">
|
||||
<!-- Card 1 -->
|
||||
<div class="bg-dark rounded-lg shadow-md p-4">
|
||||
<h2 class="text-lg font-bold text-yellow mb-2">Contrat 1</h2>
|
||||
<p class="text-sm text-gray-400 mb-4">Description du contrat 1</p>
|
||||
<button class="bg-teal hover:bg-teal-dark text-white font-bold py-2 px-4 rounded">Modifier</button>
|
||||
</div>
|
||||
<!-- Card 2 -->
|
||||
<div class="bg-dark rounded-lg shadow-md p-4">
|
||||
<h2 class="text-lg font-bold text-yellow mb-2">Contrat 2</h2>
|
||||
<p class="text-sm text-gray-400 mb-4">Description du contrat 2</p>
|
||||
<button class="bg-teal hover:bg-teal-dark text-white font-bold py-2 px-4 rounded">Modifier</button>
|
||||
</div>
|
||||
<!-- Card 3 -->
|
||||
<div class="bg-dark rounded-lg shadow-md p-4">
|
||||
<h2 class="text-lg font-bold text-yellow mb-2">Contrat 3</h2>
|
||||
<p class="text-sm text-gray-400 mb-4">Description du contrat 3</p>
|
||||
<button class="bg-teal hover:bg-teal-dark text-white font-bold py-2 px-4 rounded">Modifier</button>
|
||||
</div>
|
||||
<!-- Card 4 -->
|
||||
<div class="bg-dark rounded-lg shadow-md p-4">
|
||||
<h2 class="text-lg font-bold text-yellow mb-2">Contrat 4</h2>
|
||||
<p class="text-sm text-gray-400 mb-4">Description du contrat 4</p>
|
||||
<button class="bg-teal hover:bg-teal-dark text-white font-bold py-2 px-4 rounded">Modifier</button>
|
||||
</div>
|
||||
<!-- Card 5 -->
|
||||
<div class="bg-dark rounded-lg shadow-md p-4">
|
||||
<h2 class="text-lg font-bold text-yellow mb-2">Contrat 5</h2>
|
||||
<p class="text-sm text-gray-400 mb-4">Description du contrat 5</p>
|
||||
<button class="bg-teal hover:bg-teal-dark text-white font-bold py-2 px-4 rounded">Modifier</button>
|
||||
</div>
|
||||
</div>
|
||||
<button class="bg-yellow hover:bg-yellow-dark text-white font-bold py-2 px-4 rounded mt-4" id="new-contract-btn">Nouveau Contrat</button>
|
||||
</div>
|
||||
|
||||
<!-- Nouveau contrat popup -->
|
||||
<div id="new-contract-popup" class="fixed top-0 left-0 w-full h-full bg-dark bg-opacity-50 flex justify-center items-center">
|
||||
<div class="bg-dark rounded-lg shadow-md p-4 w-1/2">
|
||||
<h2 class="text-lg font-bold text-yellow mb-2">Nouveau Contrat</h2>
|
||||
<form id="new-contract-form">
|
||||
<div class="mb-4">
|
||||
<label for="contract-name" class="text-sm text-gray-400">Nom du contrat</label>
|
||||
<input type="text" id="contract-name" class="bg-dark border border-gray-400 text-white p-2 w-full">
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label for="contract-description" class="text-sm text-gray-400">Description du contrat</label>
|
||||
<textarea id="contract-description" class="bg-dark border border-gray-400 text-white p-2 w-full h-20"></textarea>
|
||||
</div>
|
||||
<button class="bg-teal hover:bg-teal-dark text-white font-bold py-2 px-4 rounded">Créer</button>
|
||||
<button class="bg-yellow hover:bg-yellow-dark text-white font-bold py-2 px-4 rounded ml-4">Annuler</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js@3.9.1/dist/chart.min.js"></script>
|
||||
<script>
|
||||
// Afficher le popup de création de contrat
|
||||
document.getElementById('new-contract-btn').addEventListener('click', function() {
|
||||
document.getElementById('new-contract-popup').classList.remove('hidden');
|
||||
});
|
||||
|
||||
// Masquer le popup de création de contrat
|
||||
document.getElementById('new-contract-form').addEventListener('submit', function(e) {
|
||||
e.preventDefault();
|
||||
document.getElementById('new-contract-popup').classList.add('hidden');
|
||||
});
|
||||
|
||||
// Annuler la création de contrat
|
||||
document.getElementById('new-contract-form').addEventListener('click', function(e) {
|
||||
if (e.target.classList.contains('bg-yellow')) {
|
||||
document.getElementById('new-contract-popup').classList.add('hidden');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
18
generated/wevia-gen-gen-20260424-174443-1.js
Normal file
18
generated/wevia-gen-gen-20260424-174443-1.js
Normal file
@@ -0,0 +1,18 @@
|
||||
// script.js
|
||||
// Afficher le popup de création de contrat
|
||||
document.getElementById('new-contract-btn').addEventListener('click', function() {
|
||||
document.getElementById('new-contract-popup').classList.remove('hidden');
|
||||
});
|
||||
|
||||
// Masquer le popup de création de contrat
|
||||
document.getElementById('new-contract-form').addEventListener('submit', function(e) {
|
||||
e.preventDefault();
|
||||
document.getElementById('new-contract-popup').classList.add('hidden');
|
||||
});
|
||||
|
||||
// Annuler la création de contrat
|
||||
document.getElementById('new-contract-form').addEventListener('click', function(e) {
|
||||
if (e.target.classList.contains('bg-yellow')) {
|
||||
document.getElementById('new-contract-popup').classList.add('hidden');
|
||||
}
|
||||
});
|
||||
32
generated/wevia-gen-gen-20260424-174443-3.php
Normal file
32
generated/wevia-gen-gen-20260424-174443-3.php
Normal file
@@ -0,0 +1,32 @@
|
||||
// index.php
|
||||
<?php
|
||||
// Récupérer les données du formulaire
|
||||
if (isset($_POST['contract-name']) && isset($_POST['contract-description'])) {
|
||||
// Enregistrer les données dans la base de données
|
||||
// ...
|
||||
}
|
||||
|
||||
// Afficher le popup de création de contrat
|
||||
?>
|
||||
<button class="bg-yellow hover:bg-yellow-dark text-white font-bold py-2 px-4 rounded" id="new-contract-btn">Nouveau Contrat</button>
|
||||
|
||||
<!-- Nouveau contrat popup -->
|
||||
<div id="new-contract-popup" class="fixed top-0 left-0 w-full h-full bg-dark bg-opacity-50 flex justify-center items-center">
|
||||
<div class="bg-dark rounded-lg shadow-md p-4 w-1/2">
|
||||
<h2 class="text-lg font-bold text-yellow mb-2">Nouveau Contrat</h2>
|
||||
<form id="new-contract-form" method="post">
|
||||
<div class="mb-4">
|
||||
<label for="contract-name" class="text-sm text-gray-400">Nom du contrat</label>
|
||||
<input type="text" id="contract-name" class="bg-dark border border-gray-400 text-white p-2 w-full" name="contract-name">
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label for="contract-description" class="text-sm text-gray-400">Description du contrat</label>
|
||||
<textarea id="contract-description" class="bg-dark border border-gray-400 text-white p-2 w-full h-20" name="contract-description"></textarea>
|
||||
</div>
|
||||
<button class="bg-teal hover:bg-teal-dark text-white font-bold py-2 px-4 rounded">Créer</button>
|
||||
<button class="bg-yellow hover:bg-yellow-dark text-white font-bold py-2 px-4 rounded ml-4">Annuler</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="script.js"></script>
|
||||
Reference in New Issue
Block a user