{% import 'macros_form.html' as form without context %} {% macro my_msgbox() -%} {% if not in_bscw %}
{% endif %}

{{ error }}

{% if not in_bscw %}
{% endif %} {%- endmacro %} {% macro my_box() -%} {% if edit_fullname %}
{{ trans('label_set_display_name') }}
{{ form.singlefield(name='fullname', type='text', value=fullname) }}
{% endif %} {{ questions }} {% if not in_bscw %}
{% endif %} {% if required is defined %}
* {{ trans('label_required') }}
{% endif %} {% call form.innerbtngroup() %} {{ form.innerbtn(name=ok, value=vote) }} {% if view_poll is defined %}{% call form.innerbtn(type='html') %}{{ trans('label_view_votes') }}{% endcall %}{% endif %} {% endcall %} {% if not in_bscw %}
{% endif %} {%- endmacro %} {% if error %} {{ form.msgbox(content=my_msgbox()) if in_bscw else my_msgbox() }} {% endif %} {{ form.box(content=my_box(), table=False) if in_bscw else my_box() }}