{% extends "templates/web.html" %} {% block title %}{{ _(title) }}{% endblock %} {% block breadcrumbs %}{% 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 has_header and login_required and allow_multiple %} {% include "templates/includes/breadcrumbs.html" %} {% else %}
{% endif %}
{% if is_list %}

{{ _(title) }}

{% else %}

{{ _(title) }}

{% if show_attachments and not frappe.form_dict.new and attachments %}
{{ _("Attachments") }}
{% for attachment in attachments %} {% endfor %}
{% endif %} {# attachments #} {% endif %}
{% if allow_comments and not frappe.form_dict.new and not is_list -%}
{% include 'templates/includes/comments/comments.html' %}
{%- else -%}
{%- endif %} {# comments #} {% endblock page_content %} {% block script %} {{ include_script("controls.bundle.js") }} {% if is_list %} {{ include_script("dialog.bundle.js") }} {{ include_script("web_form.bundle.js") }} {{ include_script("bootstrap-4-web.bundle.js") }} {% else %} {{ include_script("dialog.bundle.js") }} {{ include_script("web_form.bundle.js") }} {{ include_script("bootstrap-4-web.bundle.js") }} {% endif %} {% endblock script %} {% block style %} {% if not is_list %} {{ include_style('web_form.bundle.css') }} {% endif %} {% endblock %}