{% block title %}{{ title }}{% endblock %} {% block header %} {{ title }} {% endblock %} {% block content %} {% if introduction_text %}

{{ introduction_text }}


{% endif %} {% if login_required and frappe.user=="Guest" %}
{{ _("Please login to create a new {0}").format(_(doc_type)) }}

{{ _("Login") }}

{% elif (login_required and allow_multiple and not params.name and not params.new) %}

{{ _("New {0}").format(_(doc_type)) }}

{% for i in items %}
{% if allow_delete %} {% endif %} {{ i.title }}
{{ frappe.format_date(i.creation) }}
{% endfor %}
{% else %} {%- macro properties(field) %}name="{{ field.fieldname }}" id="{{ field.fieldname }}" {% if field.placeholder %}placeholder="{{ field.placeholder }}"{% endif %} data-label="{{ field.label }}" data-fieldtype="{{ field.fieldtype }}" {{ (field.reqd and field.fieldtype!="Attach") and "required" or "" }} {{ field.read_only and "disabled" or "" }}{% endmacro -%} {%- macro value(field) -%}{% if doc %}{{ doc.get(field.fieldname) or "" }}{% else %}{{ getCookie(field.options) or "" }}{% endif %}{%- endmacro -%} {%- macro help(field) -%} {% if field.description -%} {{ field.description }} {%- endif -%} {%- endmacro %} {% macro label(field) %}{% endmacro %}
{% if params.name and web_page_link_text %}
{% endif %} {% if params.name -%} {%- endif %} {% for field in web_form_fields %} {% if field.hidden %} {% elif field.fieldtype == "HTML" and field.options %}
{{ field.options }}
{% elif field.fieldtype in ("Data", "Date", "Datetime") %}
{{ label(field) }}
{{ help(field) }}
{% elif field.fieldtype=="Select" %}
{{ label(field) }}
{{ help(field) }}
{% elif field.fieldtype=="Text" %}
{{ label(field) }}
{{ help(field) }}
{% elif field.fieldtype=="Attach" %}
{{ label(field) }}
{% if value(field) -%}

{{ doc.get(field.fieldname) }}

{%- endif %}

{{ help(field) }}
{% elif field.fieldtype=="Check" %}
{{ help(field) }}
{% endif %} {% endfor %}
Cancel
{% if allow_comments -%}

{{ _("Comments") }}

{% include 'templates/includes/comments.html' %}
{%- endif %} {% endif %} {% endblock %} {% block script %} {% endblock %}