{% extends "templates/web.html" %} {% block breadcrumbs %}{% endblock %} {% macro action_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 %} {% if is_new or is_form_editable %} {{ _("Cancel", null, "Button in web form") }} {% endif %} {% endmacro %} {% block page_content %} {% if has_header and login_required and show_list %} {% include "templates/includes/breadcrumbs.html" %} {% else %}
{% endif %}

{{ _(title) }}

{{ action_buttons() }}
{% if introduction_text %}
{{ introduction_text }}
{% endif %}
{% 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 #} {% 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 %}