Disable form fields for PPoC

This commit is contained in:
leigh-mil
2019-04-08 15:02:41 -04:00
parent 51a5929b52
commit 32a7cbb80a
3 changed files with 43 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
{% from "components/icon.html" import Icon %}
{% from "components/tooltip.html" import Tooltip %}
{% macro OptionsInput(field, tooltip, inline=False, label=True) -%}
{% macro OptionsInput(field, tooltip, inline=False, label=True, disabled=False) -%}
<optionsinput
name='{{ field.name }}'
inline-template
@@ -29,7 +29,7 @@
</legend>
{% endif %}
{{ field() }}
{{ field(disabled=disabled) }}
<template v-if='showError'>
<span class='usa-input__message' v-html='validationError'></span>