Explorar o código

组合输入框内的number input也需要设置不可以出入负数

raolu %!s(int64=7) %!d(string=hai) anos
pai
achega
1a77ad4ce3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      page/followup/questionaires.html

+ 1 - 1
page/followup/questionaires.html

@ -119,7 +119,7 @@
                    </label>
                    {{/each}}
                {{else}}
                <input type="{{op.textType}}" value="{{op.value}}" name="{{op.name}}" step="{{op.step}}" maxlength="{{op.maxLength}}" class="form-control input-sm" style="width: {{op.width}};">
                <input type="{{op.textType}}" value="{{op.value}}" name="{{op.name}}" {{if op.textType == "number"}}step="{{op.step}}" min="0" {{/if}}maxlength="{{op.maxLength}}" class="form-control input-sm" style="width: {{op.width}};">
                {{/if}}
                {{/each}}
                {{if it.unit}}{{it.unit}}{{/if}}