<commit_before>{extends "designs/site.tpl"}

{block "title"}{tif $data->isPhantom ? "Create Key" : escape("Edit Key for $data->OwnerName")} &mdash; {$dwoo.parent}{/block}

{block "content"}
    {$Key = $data}
    {$errors = $Key->validationErrors}

    <header class="page-header">
        <h2 class="header-title">Request API key for <a href="/api-docs/{$Endpoint->Path}" title="{$Endpoint->getTitle()|escape}">/{$Endpoint->Path|escape}</a></h2>
    </header>

    <form method="POST">
        {if $errors}
            <div class="notify error">
                <strong>Please double-check the fields highlighted below.</strong>
            </div>
        {/if}

        <fieldset class="shrink">

            {field inputName=OwnerName label='Owner Name' default=$Key->OwnerName required=true autofocus=true hint='Name of application or organization that will use this key'}

            <div class="submit-area">
                <input type="submit" class="button submit" value="Request key">
            </div>
        </fieldset>
    </form>
{/block}<commit_msg>updated error display<commit_after>{extends "designs/site.tpl"}

{block "title"}{tif $data->isPhantom ? "Create Key" : escape("Edit Key for $data->OwnerName")} &mdash; {$dwoo.parent}{/block}

{block "content"}
    {$Key = $data}

    <header class="page-header">
        <h2 class="header-title">Request API key for <a href="/api-docs/{$Endpoint->Path}" title="{$Endpoint->getTitle()|escape}">/{$Endpoint->Path|escape}</a></h2>
    </header>

    <form method="POST">
        {if $message}
            <div class="notify {tif !$success ? error}">
                <strong>{$message|escape}</strong>
            </div>
        {/if}

        <fieldset class="shrink">

            {field inputName=OwnerName label='Owner Name' default=$Key->OwnerName required=true autofocus=true hint='Name of application or organization that will use this key'}

            <div class="submit-area">
                <input type="submit" class="button submit" value="Request key">
            </div>
        </fieldset>
    </form>
{/block}
{'fraction_non_alphanumeric': 0.17320574162679425, 'fraction_numerical': 0.0019138755980861245, 'mean_word_length': 2.908411214953271, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 50, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2207083', 'n_tokens_mistral': 636, 'n_tokens_neox': 615, 'n_words': 148}