init
This commit is contained in:
commit
66729f7d08
24 files changed
+907
No files matched your search
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,71 @@
|
||||
<!-- templates/core/dashboard.html -->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>AI Task Agent</title>
|
||||
<!-- Bootstrap 5 CSS -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<style>
|
||||
body { background-color: #f4f6f9; }
|
||||
.card { border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
|
||||
.form-control:focus { border-color: #0d6efd; box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25); }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container py-5">
|
||||
<!-- Header -->
|
||||
<div class="row mb-4 text-center">
|
||||
<div class="col">
|
||||
<h1 class="display-6 fw-bold text-primary">Local AI Agent</h1>
|
||||
<p class="text-muted">Natural language interface for your tasks.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Input Section -->
|
||||
<div class="row justify-content-center mb-5">
|
||||
<div class="col-md-8">
|
||||
<div class="card p-4 border-0">
|
||||
<form method="post" action="{% url 'agent_input' %}">
|
||||
{% csrf_token %}
|
||||
<label for="input" class="form-label fw-bold">Task Input</label>
|
||||
<textarea name="input" id="input" class="form-control mb-3" rows="4"
|
||||
placeholder="e.g., 'Log a workout: Leg Day with Squats 5x5 at 100kg' or 'Add a meeting tomorrow at 2pm'"
|
||||
required></textarea>
|
||||
<button type="submit" class="btn btn-primary w-100 py-2">Process Request</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Messages / Results -->
|
||||
{% if messages %}
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
{% for message in messages %}
|
||||
<div class="alert alert-{{ message.tags }} alert-dismissible fade show shadow-sm" role="alert">
|
||||
{{ message }}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<!-- Module Status/Links (Placeholder) -->
|
||||
<div class="row justify-content-center mt-5">
|
||||
<div class="col-md-8 text-center">
|
||||
<div class="d-flex justify-content-around flex-wrap gap-2">
|
||||
<span class="badge bg-success p-2"><i class="bi bi-cake"></i> Meal Tracker</span>
|
||||
<span class="badge bg-primary p-2"><i class="bi bi-dumbbell"></i> Exercise Tracker</span>
|
||||
<span class="badge bg-info p-2"><i class="bi bi-calendar-event"></i> Calendar</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bootstrap JS -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user