{% extends "templates/web.html" %} {% block meta_block %} {% include "templates/includes/meta_block.html" %} {% endblock %} {% block breadcrumbs %}{% endblock %} {% block header %} {% if webform_banner_image %} Banner Image {% endif %} {% endblock %} {% macro header_buttons() %} {% block header_buttons %} {% if allow_edit and in_view_mode %} {{ _("Edit Response", context="Button in web form") }} {% endif %} {% if allow_print and in_view_mode %} {% set print_format_url = "/printview?doctype=" + doc_type + "&name=" + doc_name + "&format=" + (print_format or "standard") %} {% endif %} {% endblock %} {% endmacro %} {% macro action_buttons() %} {% block actions_buttons %}
{% if not in_view_mode %} {% endif %}
{% endblock %} {% endmacro %} {% block page_content %}
{% if not webform_banner_image and has_header and login_required and show_list %} {% include "templates/includes/breadcrumbs.html" %} {% else %}
{% endif %}
{% if webform_banner_image and has_header and login_required and show_list %} {% include "templates/includes/breadcrumbs.html" %} {% endif %}
{% if show_list and not is_new %}

{{ _(web_form_title) }}

{{ _(title) }}

{% else %}

{{ _(title) }}

{% endif %}
{{ _("Not Saved") }}
{{ header_buttons() }}
{% if introduction_text and (is_new or in_edit_mode) %}
{{ introduction_text }}
{% endif %}
{% include "website/doctype/web_form/templates/web_form_skeleton.html" %}
{% if show_attachments and not is_new and attachments %}
{{ _("Attachments") }}
{% for attachment in attachments %}
{{ attachment.file_name }}
{{ attachment.file_size }}
{% endfor %}
{% endif %} {# attachments #} {% if allow_comments and not is_new and not is_list -%}

{{ _("Comments") }}

{% include 'templates/includes/comments/comments.html' %}
{%- else -%}
{%- endif %} {# comments #}

{{ _(success_title) or _("Submitted") }}

{{ _(success_message) or _("Thank you for spending your valuable time to fill this form") }}

{% endblock page_content %} {% block script %} {{ include_script("web_form.bundle.js") }} {% endblock script %} {% block style %} {% endblock %}