GestionTablets/index.html

47 lines
1.6 KiB
HTML
Raw Permalink Normal View History

<!DOCTYPE html>
<html>
<head>
<title>Tablet Management System</title>
<style>
body { font-family: Arial, sans-serif; margin: 40px; }
h1 { color: #4CAF50; }
.info { background: #f0f0f0; padding: 20px; border-radius: 5px; }
.command { background: #e0e0e0; padding: 10px; border-radius: 3px; }
</style>
</head>
<body>
<h1>Tablet Management System</h1>
<div class="info">
<h2>Welcome to the Tablet Management System!</h2>
<p>This system is running with a SQLite backend.</p>
<h3>Available Commands:</h3>
<ul>
<li><strong>Test the system:</strong> <code class="command">python3 test_app.py</code></li>
<li><strong>Run interactive mode:</strong> <code class="command">python3 minimal_app.py</code></li>
<li><strong>Check database:</strong> <code class="command">sqlite3 tablets.db</code></li>
</ul>
<h3>Current Status:</h3>
<p>✓ Database: tablets.db</p>
<p>✓ Web server: Running on port 8080</p>
<p>✓ System: Ready for use</p>
</div>
<h3>Quick Test Results:</h3>
<pre id="test-results">Running tests...</pre>
<script>
// Simple test to show the system is working
fetch('/test-db')
.then(response => response.text())
.then(data => {
document.getElementById('test-results').textContent = data;
})
.catch(error => {
document.getElementById('test-results').textContent = 'Database test: Error - ' + error;
});
</script>
</body>
</html>