2020-08-03 16:49:15 +00:00
|
|
|
{% load i18n %}
|
2020-09-01 08:20:16 +00:00
|
|
|
{% comment %}
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
{% endcomment %}
|
2020-08-03 16:49:15 +00:00
|
|
|
|
2020-03-27 15:19:33 +00:00
|
|
|
<input type="hidden" name="{{ widget.name }}" {% if widget.attrs.model_pk %}value="{{ widget.attrs.model_pk }}"{% endif %} id="{{ widget.attrs.id }}_pk">
|
2020-03-29 22:42:32 +00:00
|
|
|
<input type="text"
|
2020-03-27 15:19:33 +00:00
|
|
|
{% if widget.value != None and widget.value != "" %}value="{{ widget.value }}"{% endif %}
|
|
|
|
name="{{ widget.name }}_name" autocomplete="off"
|
|
|
|
{% for name, value in widget.attrs.items %}
|
2024-01-24 18:18:02 +00:00
|
|
|
{% if value is not False %}{{ name }}{% if value is not True %}="{{ value|stringformat:'s' }}"{% endif %}{% endif %}
|
2021-09-05 22:37:10 +00:00
|
|
|
{% endfor %}
|
|
|
|
aria-describedby="{{widget.attrs.id}}_tooltip">
|
2020-08-03 16:49:15 +00:00
|
|
|
{% if widget.resetable %}
|
2022-04-28 23:40:43 +00:00
|
|
|
<a id="{{ widget.attrs.id }}_reset" class="btn btn-light autocomplete-reset">{% trans "Reset" %}</a>
|
2020-08-03 16:49:15 +00:00
|
|
|
{% endif %}
|
2021-09-05 22:37:10 +00:00
|
|
|
|