adding settings

This commit is contained in:
sergiuToporjinschi
2022-01-30 18:04:21 +02:00
parent d6323b6392
commit e2a0710442
15 changed files with 192 additions and 15 deletions
@@ -17,7 +17,8 @@
</blockquote>
{% endmacro %}
{% macro field(label, title, type, binding, enable, unit) %}
{% macro field(label, title, type, binding, enable, unit, step) %}
{% set step = step|default('0.01') %}
<div class="row-fluid">
<div class="span6">
<label for="{{ label }}" class="pull-right" style="margin-top: 5px;" title="{{ title }}">
@@ -26,7 +27,7 @@
</div>
<div class="span6">
<div class="input-append">
<input type="{{ type }}" id="{{ label }}" title="{{ title }}" class="input-small" step="0.01" data-bind="value: {{ binding }}, enable: {{ enable }}">
<input type="{{ type }}" id="{{ label }}" title="{{ title }}" class="input-small" step="{{ step }}" data-bind="value: {{ binding }}, enable: {{ enable }}">
<span class="add-on" title="{{ title }}">{{ _(unit) }}</span>
</div>
</div>