{% extends "templates/web.html" %} {% block breadcrumbs %}{% endblock %} {% macro header_buttons() %} {% if allow_print and not is_new %} {% set print_format_url = "/printview?doctype=" + doc_type + "&name=" + doc_name + "&format=" + print_format %} {% endif %} {% if allow_edit and doc_name and not is_form_editable %} {{ _("Edit", null, "Button in web form") }} {% endif %} {% endmacro %} {% macro action_buttons() %} {% if is_new or is_form_editable %}
{% if is_form_editable %} {{ _("Reset Form", null, "Button in web form") }} {% else %} {{ _("Clear Form", null, "Button in web form") }} {% endif %}
{% endif %} {% endmacro %} {% block page_content %} {% if banner_image %}
Banner Image
{% endif %}
{% if not banner_image and has_header and login_required and show_list %} {% include "templates/includes/breadcrumbs.html" %} {% else %}
{% endif %}
{% if banner_image and has_header and login_required and show_list %} {% include "templates/includes/breadcrumbs.html" %} {% endif %}

{{ _(title) }}

{{ header_buttons() }}
{% if is_new and introduction_text %}
{{ 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") }}

{% if success_url %}

Click on this {{_("URL")}} if you are not redirected within 5 seconds.

{% else %} {% if show_list %} {{ _("See previous responses", null, "Button in web form") }} {% endif %} {% if not login_required or allow_multiple %} {{ _("Submit another response", null, "Button in web form") }} {% endif %} {% endif %}
{% endblock page_content %} {% block script %} {{ include_script("controls.bundle.js") }} {{ include_script("dialog.bundle.js") }} {{ include_script("web_form.bundle.js") }} {{ include_script("bootstrap-4-web.bundle.js") }} {% endblock script %} {% block style %} {% endblock %}