Files
irc-bot/portal/templates/config.html
tocmo0nlord b154f63cfa Initial implementation of IRC LLM bot
Full implementation from spec: ZNC/IRC client with TLS, Ollama LLM backend,
per-user SQLite conversation memory, and Flask web admin portal with 7 pages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 22:08:53 -04:00

30 lines
1004 B
HTML

{% extends "base.html" %}
{% block title %}Raw Config — IRC Bot Portal{% endblock %}
{% block content %}
<h1>Raw Config Editor</h1>
{% if error %}
<div class="alert alert-error">{{ error }}</div>
{% endif %}
{% if success %}
<div class="alert alert-success">{{ success }}</div>
{% endif %}
<form method="post" class="settings-form">
<div class="section">
<div class="field-row">
<label>config.json</label>
<textarea name="config_raw" rows="30" class="mono">{{ raw_json }}</textarea>
</div>
</div>
<div class="actions">
<button type="submit" class="btn btn-primary">Save & Reload Bot</button>
<a href="{{ url_for('config_download') }}" class="btn btn-secondary">Download</a>
<form method="post" action="{{ url_for('config_upload') }}" enctype="multipart/form-data" style="display:inline">
<input type="file" name="config_file" accept=".json">
<button type="submit" class="btn btn-secondary">Upload</button>
</form>
</div>
</form>
{% endblock %}