- {{ form_for_form.media }}
- <form method="POST" action="{{ form.get_absolute_url }}" {% if form_for_form.is_multipart %}enctype="multipart/form-data"{% endif %} class="submit-form">
- {% csrf_token %}
- {% render_honeypot_field %}
- <table>
- {{ form_for_form.as_table }}
- {% if form_for_form.fields %}
- <tr><td></td><td><button>{{ form.button_text }}</button></td></tr>
- {% endif %}
- </table>
- </form>
+ {% if form_published %}
+ {{ form_for_form.as_p }}
+ {% if form_for_form.fields %}
+ <button>{{ form.button_text }}</button>
+ {% endif %}
+ {% else %}
+ <p class="l-change-pop show">{% trans "FORMULARZ ZAMKNIĘTY" %}</p>
+ {% endif %}