{% from "seomatic/settings/_includes/macros.twig" import configWarning %}
{% import "_includes/forms" as forms %}

{% namespace "seomaticSite" %}
    {{ forms.textField({
        label: "X (Twitter) Handle"|t("seomatic"),
        instructions: "X (Twitter) username for the website used in the card footer, without the preceding @."|t("seomatic"),
        id: "twitterHandle",
        name: "twitterHandle",
        value: site.twitterHandle,
        warning: false,
        errors: site.getErrors("twitterHandle"),
    }) }}

    {{ forms.textField({
        label: "Facebook Profile ID"|t("seomatic"),
        instructions: "Your Facebook Profile/Page ID. Click on the 'About' tab on your Facebook company/fan page, click on 'Page Info', then scroll to the bottom to find your 'Facebook Page ID'"|t("seomatic"),
        id: "facebookProfileId",
        name: "facebookProfileId",
        value: site.facebookProfileId,
        warning: false,
        errors: site.getErrors("facebookProfileId"),
    }) }}

    {{ forms.textField({
        label: "Facebook App ID"|t("seomatic"),
        instructions: "Your Facebook App ID. Providing a Facebook Application ID for use with the Social Media Sharing feature is recommended, but optional. [Learn More](https://developers.facebook.com/docs/apps/register)"|t("seomatic"),
        id: "facebookAppId",
        name: "facebookAppId",
        value: site.facebookAppId,
        warning: false,
        errors: site.getErrors("facebookAppId"),
    }) }}

    {{ forms.textField({
        label: "Google Site Verification"|t("seomatic"),
        instructions: "For the `meta google-site-verification` tag. Only enter the code in the `content=''`, not the entire tag. [Learn More](https://www.google.com/webmasters/verification/home?hl=en)"|t("seomatic"),
        id: "googleSiteVerification",
        name: "googleSiteVerification",
        value: site.googleSiteVerification,
        warning: false,
        errors: site.getErrors("googleSiteVerification"),
    }) }}

    {{ forms.textField({
        label: "Bing Site Verification"|t("seomatic"),
        instructions: "For the `meta msvalidate.01` tag. Only enter the code in the `content=''`, not the entire tag. [Learn More](https://www.bing.com/webmaster/help/how-to-verify-ownership-of-your-site-afcfefc6)"|t("seomatic"),
        id: "bingSiteVerification",
        name: "bingSiteVerification",
        value: site.bingSiteVerification,
        warning: false,
        errors: site.getErrors("bingSiteVerification"),
    }) }}

    {{ forms.textField({
        label: "Pinterest Site Verification"|t("seomatic"),
        instructions: "For the `meta p:domain_verify` tag. Only enter the code in the `content=''`, not the entire tag. [Learn More](https://help.pinterest.com/en/articles/claim-your-website)"|t("seomatic"),
        id: "pinterestSiteVerification",
        name: "pinterestSiteVerification",
        value: site.pinterestSiteVerification,
        warning: false,
        errors: site.getErrors("pinterestSiteVerification"),
    }) }}

    {{ forms.textField({
        label: "Facebook Site Verification"|t("seomatic"),
        instructions: "For the `facebook-domain-verification` tag. Only enter the code in the `content=''`, not the entire tag. [Learn More](https://developers.facebook.com/docs/sharing/domain-verification/verifying-your-domain/#meta-tags)"|t("seomatic"),
        id: "facebookSiteVerification",
        name: "facebookSiteVerification",
        value: site.facebookSiteVerification,
        warning: false,
        errors: site.getErrors("facebookSiteVerification"),
    }) }}

    {{ forms.editableTableField({
        label: "Same As URLs"|t("seomatic"),
        instructions: "Add the URLs to social media sites, and other presences on the web. These URLs are made available to your frontend templates. They will also appear in `same_as` Facebook OpenGraph tags, and `seeAlso` JSON-LD Structured Data. [Learn More](https://developers.google.com/search/docs/data-types/social-profile)"|t("seomatic"),
        id: 'sameAsLinks',
        name: 'sameAsLinks',
        allowAdd: true,
        allowDelete: true,
        allowReorder: true,
        required: false,
        cols: {
            siteName: {
                heading: "Site Name"|t("seomatic"),
                type: "singleline",
                autopopulate: "handle",
                width: "15%",
            },
            handle: {
                heading: "Handle"|t("seomatic"),
                type: "singleline",
                code: true,
                width: "15%",
            },
            url: {
                heading: "URL"|t("seomatic"),
                type: "singleline",
                width: "55%",
            },
            account: {
                heading: "Account"|t("seomatic"),
                type: "singleline",
                width: "15%",
            },
        },
        rows: site.sameAsLinks,
        errors: site.getErrors("sameAsLinks"),
    }) }}

{% endnamespace %}
