{% comment %} Popup message form, which is rendered initially hidden, and included to HTML templates to perform certain actions (send message, apply to pool, etc.) Variables:: {{ POPUP_FORM_form }} Django form instance to be rendered. Required. {{ POPUP_FORM_action }} Action URL where form should be submitted. This variable is necessary, even if {% block form_attributes %} is redefined, in order to render a form with error correctly. {% endcomment %} {% load i18n %} {% with form=POPUP_FORM_form action=POPUP_FORM_action popup_id=POPUP_FORM_id form_hide=POPUP_FORM_hide %} {# POPUP LINK #} {% block popup_link %} {% block popup_link_label %}POPUP{% endblock %} {% endblock popup_link %} {# POPUP FORM #} {% block popup_form %} {% endblock popup_form %} {% endwith %}