20 lines
1.1 KiB
HTML
20 lines
1.1 KiB
HTML
{% extends 'admin/base.html' %}
|
|
{% block _title %}Blacklist{% endblock %}
|
|
{% set blacklist_link = 'active' %}
|
|
{% block _content %}
|
|
<h2 id="blacklist" class="fw-normal mb-2">Word blacklist</h2>
|
|
<p class="fs-5 h3 text-body-secondary mb-3">Blacklist words that you don't want to see</p>
|
|
<form hx-put="{{ url_for('api.updateBlacklist') }}" hx-target="#response-container" hx-swap="none">
|
|
<input type="hidden" name="action" value="update_word_blacklist">
|
|
<div class="form-group mb-3">
|
|
<label class="form-label" for="blacklist_cat">Blacklisted words for questions, one word per line</label>
|
|
<!-- <p class="text-body-secondary">Blacklisted words for questions; one word per line</p> -->
|
|
<textarea id="blacklist_cat" name="blacklist" style="height: 300px; resize: vertical;" class="form-control">{{ blacklist }}</textarea>
|
|
<button type="submit" class="btn btn-primary mt-3" id="save-blacklist">
|
|
<span class="me-1 spinner-border spinner-border-sm htmx-indicator" aria-hidden="true"></span>
|
|
<span class="visually-hidden" role="status">Loading...</span>
|
|
Save
|
|
</button>
|
|
</div>
|
|
</form>
|
|
{% endblock %}
|