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

{{ trans('label_voting_ended') }}

{% endif %} {% if please_vote %}

{{ trans('label_not_voted_yet') }}

{% call form.innerbtngroup() %} {% call form.innerbtn(type='html') %} {{ trans('label_btn_vote') }} {% endcall %} {% endcall %} {% endif %} {% if voted_before_end %}

{{ trans('label_thank_you') }}

{% if change_url %} {% call form.innerbtngroup() %} {% call form.innerbtn(type='html') %} {{ trans('label_change_your_opinion') }} {% endcall %} {% endcall %} {% endif %} {% endif %} {% if not in_bscw %}
{% endif %} {%- endmacro %} {% macro my_table() -%} {{ questions }}
{%- endmacro %} {% macro my_userlist() -%} {% if not in_bscw %}
{% endif %} {% call form.fieldtable() %} {% call form.tablefield(label=trans('label_other_opinions'), type='content') %} {% call form.singlefield(extra=' rows="5"', name='view_userlist', multiple=True, type='select') %} {{ userlist }} {% endcall %} {% call form.innerbtngroup() %} {{ form.innerbtn(name='view_users', value=trans('label_view_users')) }} {% endcall %} {% endcall %} {% endcall %} {% if not in_bscw %}
{% endif %} {%- endmacro %} {% if msgbox %} {{ form.msgbox(content=my_msgbox() if in_bscw else my_msgbox()) }} {% endif %} {{ form.box(table=False, content=my_table()) if in_bscw else my_table() }} {{ form.box(table=False, content=my_userlist()) if in_bscw else my_userlist() }}