{% for choice in form.textanswer_visibility %} {% if choice.data.value == 'GENERAL' %} {% translate 'Will see own and general text answers.' as tooltip %} {% elif choice.data.value == 'OWN' %} {% translate 'Default value. Will only see own text answers.' as tooltip %} {% endif %} {% include 'choice_button.html' with formelement=form.textanswer_visibility choice=choice tooltip=tooltip %} {% endfor %}