mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: step=any
This commit is contained in:
1 parent
0c7745d435
commit
cabd3b44f9
10 files changed
+47
-33
No files matched your search
@@ -152,9 +152,10 @@
|
||||
{{ container_attr('textbox-container', args) }}
|
||||
>
|
||||
<input
|
||||
type="{{ args.type or 'text' }}"
|
||||
type="{{ 'number' if args.type === 'float' else args.type|default('text') }}"
|
||||
name="{{ args.name }}"
|
||||
value="{{ args.value }}"
|
||||
{% if args.type === 'float' %} step="any"{% endif %}
|
||||
placeholder="{{ args.placeholder }}"
|
||||
{{ form_attr('textbox', args) }}
|
||||
>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
{%- for setting in family_settings -%}
|
||||
{% if not setting.flag|bitand(model.setting.FLAG_HIDDEN) %}
|
||||
{% set secret = setting.flag|bitand(model.setting.FLAG_SECRET) != 0 %}
|
||||
{% if setting.type == 'text' or setting.type == 'password' or setting.type == 'number' %}
|
||||
{% if setting.type == 'text' or setting.type == 'password' or setting.type == 'number' or setting.type == 'float' %}
|
||||
{{ form.form_text({
|
||||
type:setting.type,
|
||||
label:setting.name,
|
||||
|
||||
Reference in new issue
Block a user