{%- extends "manhattan/manage/generics/update.html" -%}
{%- import "manhattan/manage/components/form.html" as _form with context -%}

{%- block fieldsets -%}

    {% call _form.fieldset('Head') -%}
        {% call _form.aside() %}
            The max. recommended length for titles is 60 characters.
        {% endcall %}
        {{ _form.field(form.title) }}
        {{ _form.field(form.full_title) }}
        {% call _form.aside() %}
            The max. recommended length for meta descriptions is 160
            characters.
        {% endcall %}
        {{ _form.field(
            form.meta_description,
            input_attrs={'class':'mh-field__textarea--shrink'}
        ) }}
        {% call _form.aside() %}
            For information on the role of the meta robots see:
            <a href="http://www.robotstxt.org/meta.html" target="_blank">
                http://www.robotstxt.org/meta.html
            </a>
        {% endcall %}
        {{ _form.field(
            form.meta_robots,
            input_attrs={'class':'mh-field__ticks--split'}
        ) }}
    {% endcall -%}

    {% call _form.fieldset('Sitemap XML') -%}
        {% call _form.aside() %}
            For further information on the role of XML sitemaps see:
            <a href="https://www.sitemaps.org" target="_blank">
                https://www.sitemaps.org
            </a>
        {% endcall %}
        {{ _form.field(form.exclude_from_sitemap) }}
        {% call _form.field(class='mh-field--3-3') -%}
            {{ _form.control(form.sitemap_frequency) }}
            {{ _form.control(form.sitemap_priority) }}
        {%- endcall %}
    {% endcall -%}

    {% call _form.fieldset('Open Graph') -%}
        {% call _form.aside() %}
            The max. recommended length for titles is 90 characters.
        {% endcall %}
        {{ _form.field(form.og_title) }}
        {% call _form.aside() %}
            The max. recommended length for descriptions is 200 characters.
        {% endcall %}
        {{ _form.field(
            form.og_description,
            input_attrs={'class':'mh-field__textarea--shrink'}
        ) }}
        {% call _form.aside() %}
            The recommend image size is 1200 x 630 pixels.
        {% endcall %}
        {{ _form.field(form.og_image) }}
        {{ _form.field(form.og_audio) }}
        {{ _form.field(form.og_video) }}
    {% endcall -%}

{%- endblock %}
