mirror of
https://codeberg.org/catask-org/catask.git
synced 2025-04-19 13:23:41 -05:00
username input in general settings
This commit is contained in:
parent
d1e2227658
commit
ef0dd5b4fe
1 changed files with 12 additions and 7 deletions
|
@ -1,19 +1,24 @@
|
|||
{% extends 'admin/base.html' %}
|
||||
{% block _title %}General{% endblock %}
|
||||
{% block _title %}{{ _('General') }}{% endblock %}
|
||||
{% set general_link = 'active' %}
|
||||
{% block _content %}
|
||||
<form hx-post="{{ url_for('api.updateConfig') }}" hx-target="#response-container" hx-swap="none">
|
||||
<h2 id="general" class="mb-2 fw-normal">General</h2>
|
||||
<p class="fs-5 h3 text-body-secondary mb-3">General settings</p>
|
||||
<h2 id="general" class="mb-2 fw-normal">{{ _('General') }}</h2>
|
||||
<p class="fs-5 h3 text-body-secondary mb-3">{{ _('General settings') }}</p>
|
||||
<div class="form-group mb-3">
|
||||
<label class="form-label" for="charLimit">Question character limit</label>
|
||||
<label class="form-label" for="username">{{ _('Username (optional)') }}</label>
|
||||
<input type="text" id="username" name="username" value="{{ cfg.username }}" class="form-control">
|
||||
<p class="form-text">{{ _('Your username') }}</p>
|
||||
</div>
|
||||
<div class="form-group mb-3">
|
||||
<label class="form-label" for="charLimit">{{ _('Question character limit') }}</label>
|
||||
<input type="number" id="charLimit" name="charLimit" value="{{ cfg.charLimit }}" class="form-control">
|
||||
<p class="form-text">Max length of a question in characters; questions extending this character limit will not be added to the database</p>
|
||||
<p class="form-text">{{ _('Max length of a question in characters; questions extending this character limit will not be added to the database') }}</p>
|
||||
</div>
|
||||
<div class="form-group mb-4">
|
||||
<label class="form-label" for="anonName">Name for anonymous users</label>
|
||||
<label class="form-label" for="anonName">{{ _('Name for anonymous users') }}</label>
|
||||
<input type="text" id="anonName" name="anonName" value="{{ cfg.anonName }}" class="form-control">
|
||||
<p class="form-text">This name will be used for questions asked to you by anonymous users</p>
|
||||
<p class="form-text">{{ _('This name will be used for questions asked to you by anonymous users') }}</p>
|
||||
</div>
|
||||
<div class="form-check form-switch mb-2">
|
||||
<input
|
||||
|
|
Loading…
Add table
Reference in a new issue