mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-18 21:42:21 +00:00
18 lines
806 B
HTML
18 lines
806 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 %}
|
|
{% if value is not False %}{{ name }}{% if value is not True %}="{{ value|stringformat:'s' }}"{% endif %}{% endif %}
|
|
{% endfor %}
|
|
aria-describedby="{{widget.attrs.id}}_tooltip">
|
|
{% if widget.resetable %}
|
|
<a id="{{ widget.attrs.id }}_reset" class="btn btn-light autocomplete-reset">{% trans "Reset" %}</a>
|
|
{% endif %}
|
|
|