Adding some tooltips

This commit is contained in:
luis cielak
2018-08-10 13:27:40 -04:00
parent 0cefe76334
commit a3489d50e4
2 changed files with 9 additions and 6 deletions

View File

@@ -1,12 +1,15 @@
{% from "components/icon.html" import Icon %}
{% from "components/tooltip.html" import Tooltip %}
{% macro OptionsInput(field, inline=False) -%}
{% macro OptionsInput(field, tooltip, inline=False) -%}
<div class='usa-input {% if field.errors %}usa-input--error{% endif %}'>
<fieldset class="usa-input__choices {% if inline %}usa-input__choices--inline{% endif %}">
<legend>
{{ field.label | striptags}}
{% if tooltip %}{{ Tooltip(tooltip) }}{% endif %}
{% if field.description %}
<span class='usa-input__help'>{{ field.description | safe }}</span>
{% endif %}