forked from shaba/openuds
Autcompletes
This commit is contained in:
parent
9b2e9000e7
commit
2ce130786a
@ -83,7 +83,7 @@
|
||||
gui.forms.fromFields = (fields, item, forShow) ->
|
||||
editing = item? # Locate real Editing
|
||||
item = item or id: ""
|
||||
form = "<form class=\"form-horizontal\" role=\"form\">" + "<input type=\"hidden\" name=\"id\" class=\"modal_field_data\" value=\"" + item.id + "\">"
|
||||
form = "<form autocomplete=\"off\" class=\"form-horizontal\" role=\"form\">" + "<input type=\"hidden\" name=\"id\" class=\"modal_field_data\" value=\"" + item.id + "\">"
|
||||
fillers = []
|
||||
originalValues = {}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{% extends "uds/admin/tmpl/fld/form-group.html" %}
|
||||
{% block field %}
|
||||
{% verbatim %}
|
||||
<input type="{% endverbatim %}{% block type %}text{% endblock %}{% verbatim %}" class="form-control {{ css }}" name="{{ name }}" id="{{ name }}_field" placeholder="{{ tooltip }}" value="{{ value }}"{{# if readonly }} readonly{{/ if }} {{# if required }} required {{/ if }} data-minval="{{ minValue }}" data-maxVal="{{ maxValue }}" {{# unless readonly }}tabindex="{{ index }}"{{/ unless }}>
|
||||
<input autocomplete="nope" type="{% endverbatim %}{% block type %}text{% endblock %}{% verbatim %}" class="form-control {{ css }}" name="{{ name }}" id="{{ name }}_field" placeholder="{{ tooltip }}" value="{{ value }}"{{# if readonly }} readonly{{/ if }} {{# if required }} required {{/ if }} data-minval="{{ minValue }}" data-maxVal="{{ maxValue }}" {{# unless readonly }}tabindex="{{ index }}"{{/ unless }}>
|
||||
{% endverbatim %}
|
||||
{% endblock %}
|
||||
|
@ -3,7 +3,7 @@
|
||||
<div class="form-group">
|
||||
<label for="{{ name }}_field" class="col-sm-3 control-label" data-toggle="tooltip" data-title="{{ tooltip }}">{{ label }}</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="password" class="form-control {{ css }}" name="{{ name }}" id="{{ name }}_field" placeholder="{{ tooltip }}" value="{{ value }}"{{# if readonly }} readonly{{/ if }} required {{# unless readonly }}tabindex="{{ index }}"{{/ unless }}>
|
||||
<input type="password" autocomplete="new-password" class="form-control {{ css }}" name="{{ name }}" id="{{ name }}_field" placeholder="{{ tooltip }}" value="{{ value }}"{{# if readonly }} readonly{{/ if }} required {{# unless readonly }}tabindex="{{ index }}"{{/ unless }}>
|
||||
</div>
|
||||
</div>
|
||||
{% endverbatim %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user