Files
css-test/data/templates/configs_list.html
T
paul 35d70a7746 feat: add ReconConfig API and UI for managing configurations
- Added a new API endpoint for managing ReconConfigs at /api/configs, including GET, POST, PUT, and a test URL feature.
- Implemented a new configuration editor UI at /configs for creating and editing ReconConfigs.
- Introduced a new configs list page at /configs to display existing configurations with options to edit.
- Updated base HTML template to include a link to the new configs page.
- Created stub configuration and authentication models for workspace development.
- Added a stub configuration module to handle database configuration without a real database.
2026-05-26 21:58:04 +12:00

55 lines
1.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends "base.html" %}
{% block content %}
<div class="dashboard-container dashboard-stack">
<div class="detail-header">
<div class="detail-crumbs">
<a href="/">Dashboard</a> Configs
</div>
<h1 style="display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;">
Recon Configs
<a href="/configs/new" class="btn btn-primary">+ New Config</a>
</h1>
</div>
<div class="table-scroll" style="flex:1">
<table class="data-table">
<thead>
<tr>
<th>Reference</th>
<th>Name</th>
<th>Business Process</th>
<th>Frequency</th>
<th>Status</th>
<th></th>
</tr>
</thead>
<tbody>
{% for c in configs %}
<tr>
<td><code>{{ c.reference }}</code></td>
<td>{{ c.name }}</td>
<td>{{ c.business_process }}</td>
<td>{{ c.frequency }}</td>
<td>
<span class="badge badge-config-{{ c.status }}">{{ c.status }}</span>
</td>
<td style="text-align:right">
<a href="/configs/{{ c.reference }}/edit" class="btn btn-secondary btn-sm">Edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="6" style="text-align:center; padding:40px; color:#64748b">
No configs yet. <a href="/configs/new" style="color:var(--asb-yellow)">Create one.</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}