Add agent reminders, model selection, task distribution and delete functionality

This commit is contained in:
pdyde 2026-02-20 22:37:58 +01:00
parent 56d9bc2c76
commit 84b2fe3dd7
16 changed files with 759 additions and 74 deletions

View file

@ -4,12 +4,12 @@
{% block content %}
<div class="page-header">
<h1>Task-Verwaltung</h1>
<p>Manuelle und automatische Email-Tasks</p>
<p>Manuelle, orchestrierte und Agent-Tasks</p>
</div>
<div class="row g-4">
<div class="col-lg-4">
<div class="card">
<div class="card mb-3">
<div class="card-header bg-success">
<h5 class="mb-0">Neuen Task erstellen</h5>
</div>
@ -37,6 +37,18 @@
</form>
</div>
</div>
<div class="card">
<div class="card-header bg-info">
<h5 class="mb-0">🔄 Auto-Refresh</h5>
</div>
<div class="card-body">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="autoRefresh" onchange="toggleAutoRefresh()">
<label class="form-check-label" for="autoRefresh">Automatisch aktualisieren (alle 30s)</label>
</div>
</div>
</div>
</div>
<div class="col-lg-8">
@ -68,6 +80,12 @@
{% if task.type == 'email' %}
<span class="badge bg-info ms-1" title="Von: {{ task.reply_to }}">Email</span>
{% endif %}
{% if task.type == 'orchestrated' %}
<span class="badge ms-1" style="background-color:#9333ea;">Orchestriert</span>
{% endif %}
{% if task.type == 'agent_created' %}
<span class="badge bg-warning ms-1">Agent</span>
{% endif %}
{% if task.description %}
<div style="font-size:.75rem;color:var(--text-muted);">
{{ task.description[:60] }}{% if task.description|length > 60 %}…{% endif %}
@ -116,3 +134,23 @@
</div>
</div>
{% endblock %}
{% block scripts %}
<script>
let autoRefreshInterval = null;
function toggleAutoRefresh() {
const checkbox = document.getElementById('autoRefresh');
if (checkbox.checked) {
autoRefreshInterval = setInterval(() => {
location.reload();
}, 30000);
} else {
if (autoRefreshInterval) {
clearInterval(autoRefreshInterval);
autoRefreshInterval = null;
}
}
}
</script>
{% endblock %}