# ===================================
#  Form Field Definitions
# ===================================

fields:
    name:
        label: bedard.webhooks::lang.hooks.form.name_label
        span: left
        placeholder: bedard.webhooks::lang.hooks.form.name_placeholder

    directory:
        label: bedard.webhooks::lang.hooks.form.directory_label
        span: right
        placeholder: bedard.webhooks::lang.hooks.form.directory_placeholder

    toolbar:
        type: partial
        path: hooks_toolbar
        cssClass: collapse-visible

secondaryTabs:
    stretch: true
    fields:
        script:
            tab: bedard.webhooks::lang.hooks.tabs.script
            stretch: true
            type: codeeditor
            margin: 20

        http_method:
            tab: bedard.webhooks::lang.hooks.tabs.settings
            label: bedard.webhooks::lang.hooks.form.http_method
            type: dropdown
            options:
                POST: bedard.webhooks::lang.hooks.form.http_method_post
                GET: bedard.webhooks::lang.hooks.form.http_method_get
            default: POST

# ===================================
#  Form Field Definitions
# ===================================

fields:
    name:
        label: bedard.webhooks::lang.hooks.form.name_label
        span: left
        placeholder: bedard.webhooks::lang.hooks.form.name_placeholder

    directory:
        label: bedard.webhooks::lang.hooks.form.directory_label
        span: right
        placeholder: bedard.webhooks::lang.hooks.form.directory_placeholder

    toolbar:
        type: partial
        path: hooks_toolbar
        cssClass: collapse-visible

secondaryTabs:
    stretch: true
    fields:
        script:
            tab: bedard.webhooks::lang.hooks.tabs.script
            stretch: true
            type: codeeditor
            margin: 20
            language: bash

        http_method:
            tab: bedard.webhooks::lang.hooks.tabs.settings
            label: bedard.webhooks::lang.hooks.form.http_method
            type: dropdown
            options:
                POST: bedard.webhooks::lang.hooks.form.http_method_post
                GET: bedard.webhooks::lang.hooks.form.http_method_get
            default: POST

Hide codeeditor errors by replacing default language
Hide codeeditor errors by replacing default language
