1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-08-13 17:39:36 +02:00
Files
ansible
apps
docs
locale
note_kfet
fixtures
settings
static
templates
registration
400.html
403.html
404.html
500.html
autocomplete_model.html
base.html
base_search.html
__init__.py
admin.py
inputs.py
middlewares.py
urls.py
views.py
wsgi.py
.dockerignore
.env_example
.gitignore
.gitlab-ci.yml
.gitmodules
COPYING
Dockerfile
README.md
entrypoint.sh
manage.py
nginx_note.conf_example
note.cron
requirements.txt
tox.ini
uwsgi_note.ini
nk20/note_kfet/templates/autocomplete_model.html
2020-09-01 10:20:16 +02:00

18 lines
894 B
HTML

{% load i18n %}
{% comment %}
SPDX-License-Identifier: GPL-3.0-or-later
{% endcomment %}
<input type="hidden" name="{{ widget.name }}" {% if widget.attrs.model_pk %}value="{{ widget.attrs.model_pk }}"{% endif %} id="{{ widget.attrs.id }}_pk">
<input type="text"
{% if widget.value != None and widget.value != "" %}value="{{ widget.value }}"{% endif %}
name="{{ widget.name }}_name" autocomplete="off"
{% for name, value in widget.attrs.items %}
{% ifnotequal value False %}{{ name }}{% ifnotequal value True %}="{{ value|stringformat:'s' }}"{% endifnotequal %}{% endifnotequal %}
{% endfor %}>
{% if widget.resetable %}
<a id="{{ widget.attrs.id }}_reset" class="btn btn-light autocomplete-reset{% if not widget.value %} d-none{% endif %}">{% trans "Reset" %}</a>
{% endif %}
<ul class="list-group list-group-flush" id="{{ widget.attrs.id }}_list">
</ul>