fix line break in interval input

This commit is contained in:
codl 2017-08-04 10:44:05 +02:00
parent 14d89869a0
commit 8423b169a0
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 12 additions and 10 deletions

View File

@ -1,15 +1,17 @@
{% macro interval_input(obj, attrname, scales) -%}
<input type=number name={{attrname}}_significand
value={{obj[attrname + '_significand']}}
min=0 step=1>
<select name={{attrname}}_scale>
{%- for scale in scales %}
<option value="{{scale[1].total_seconds()}}"
{{- ' selected' if scale[1] == obj[attrname + '_scale'] -}}
>{{scale[0]}}</option>
{% endfor -%}
</select>
<span style='display:inline-block'>
<input type=number name={{attrname}}_significand
value={{obj[attrname + '_significand']}}
min=0 step=1>
<select name={{attrname}}_scale>
{%- for scale in scales %}
<option value="{{scale[1].total_seconds()}}"
{{- ' selected' if scale[1] == obj[attrname + '_scale'] -}}
>{{scale[0]}}</option>
{% endfor -%}
</select>
</span>
{%- endmacro %}