{% extends "templates/web.html" %} {% block title %}{{ _(title) }}{% endblock %} {% block header %}

{{ _(title) }}

{% endblock %} {% block breadcrumbs %} {% if has_header and login_required %} {% include "templates/includes/breadcrumbs.html" %} {% endif %} {% endblock %} {% block header_actions %} {% if is_list %}
{% else %}
{% endif %} {% endblock %} {% macro container_attributes() %} data-web-form="{{ name }}" data-web-form-doctype="{{ doc_type }}" data-login-required="{{ frappe.utils.cint(login_required and frappe.session.user=='Guest') }}" data-is-list="{{ frappe.utils.cint(is_list) }}" data-allow-delete="{{ allow_delete }}" {% endmacro %} {% block page_content %}
{% if is_list %} {# web form list #}
{% else %} {# web form #}

{% if show_attachments and not frappe.form_dict.new and attachments %}
{{ _("Attachments") }}
{% for attachment in attachments %} {% endfor %}
{% endif %} {# attachments #} {% if allow_comments and not frappe.form_dict.new and not is_list -%}

{{ _("Comments") }}

{% include 'templates/includes/comments/comments.html' %}
{%- endif %} {# comments #} {% endif %}
{% endblock page_content %} {% block script %} {% if is_list %} {# web form list #} {% else %} {# web form #} {% endif %} {% endblock script %} {% block style %} {% if not is_list %} {% endif %} {% endblock %}