<commit_before>[% INCLUDE 'header.html',
    title = loc('Contact Us')
    robots = 'noindex,nofollow'
%]

<h1>[% loc('Contact the team') %]</h1>
 
<form method="post" action="/contact/submit">

[% INCLUDE 'errors.html' %]

[% IF update %]

    <p>
    [% loc('You are reporting the following update for being abusive, containing personal information, or similar:') %]
    </p>

    <blockquote>
        <p>
            [% IF update.anonymous %]
                [% tprintf( loc('Update below added anonymously at %s'), prettify_epoch( update.confirmed_local.epoch ) ) %]
            [% ELSE %]
                [% tprintf( loc('Update below added by %s at %s'), update.name, prettify_epoch( update.confirmed_local.epoch ) ) | html %]
            [% END %]
        </p>

        <p>
            [% update.text | html %]
        </p>

    </blockquote>
    <input type="hidden" name="update_id" value="[% update.id %]">
    <input type="hidden" name="id" value="[% update.problem_id %]">

[% ELSIF problem %]
    <p>
    [% loc('You are reporting the following problem report for being abusive, containing personal information, or similar:') %]
    </p>
    
    <blockquote>
        <h2>[% problem.title | html %]</h2>

        <p>
            [% IF problem.anonymous %]
                [% tprintf( loc('Reported anonymously at %s'), prettify_epoch( problem.confirmed_local.epoch ) ) %]
            [% ELSE %]
                [% tprintf( loc('Reported by %s at %s'), problem.user.name, prettify_epoch( problem.confirmed_local.epoch ) ) | html %]
            [% END %]
        </p>

        <p>
            [% problem.detail | html %]
        </p>

    </blockquote>
    <input type="hidden" name="id" value="[% problem.id %]">

[% ELSE %]

    [% INCLUDE 'contact/blurb.html' %]

[% END %]

[% IF field_errors.name %]
   <div class="form-error">[% field_errors.name %]</div>
[% END %]
<div class="form-field">
<label for="form_name">[% loc('Your name:') %]</label>
<input type="text" name="name" id="form_name" value="[% form_name | html %]" size="30"></div>


[% IF field_errors.em %]
   <div class="form-error">[% field_errors.em %]</div>
[% END %]
<div class="form-field">
<label for="form_email">[% loc('Your&nbsp;email:') %]</label>
<input type="text" name="em" id="form_email" value="[% em | html %]" size="30"></div>

[% IF field_errors.subject %]
   <div class="form-error">[% field_errors.subject %]</div>
[% END %]
<div class="form-field">
<label for="form_subject">[% loc('Subject:') %]</label>
<input type="text" name="subject" id="form_subject" value="[% subject | html %]" size="30"></div>

[% IF field_errors.message %]
   <div class="form-error">[% field_errors.message %]</div>
[% END %]
<div class="form-field">
<label for="form_message">[% loc('Message:') %]</label>

<textarea name="message" id="form_message" rows="7" cols="50">[% message | html %]</textarea></div>
<div class="checkbox"><input type="submit" value="[% loc('Post') %]"></div>

[% c.cobrand.form_elements('contactForm') %]

</form>

[% INCLUDE 'contact/address.html' %]

[% INCLUDE 'footer.html' %]<commit_msg>js validation of contact form<commit_after>[% INCLUDE 'header.html',
    title = loc('Contact Us')
    robots = 'noindex,nofollow'
%]

<h1>[% loc('Contact the team') %]</h1>
 
<form method="post" action="/contact/submit" class="validate">

[% INCLUDE 'errors.html' %]

[% IF update %]

    <p>
    [% loc('You are reporting the following update for being abusive, containing personal information, or similar:') %]
    </p>

    <blockquote>
        <p>
            [% IF update.anonymous %]
                [% tprintf( loc('Update below added anonymously at %s'), prettify_epoch( update.confirmed_local.epoch ) ) %]
            [% ELSE %]
                [% tprintf( loc('Update below added by %s at %s'), update.name, prettify_epoch( update.confirmed_local.epoch ) ) | html %]
            [% END %]
        </p>

        <p>
            [% update.text | html %]
        </p>

    </blockquote>
    <input type="hidden" name="update_id" value="[% update.id %]">
    <input type="hidden" name="id" value="[% update.problem_id %]">

[% ELSIF problem %]
    <p>
    [% loc('You are reporting the following problem report for being abusive, containing personal information, or similar:') %]
    </p>
    
    <blockquote>
        <h2>[% problem.title | html %]</h2>

        <p>
            [% IF problem.anonymous %]
                [% tprintf( loc('Reported anonymously at %s'), prettify_epoch( problem.confirmed_local.epoch ) ) %]
            [% ELSE %]
                [% tprintf( loc('Reported by %s at %s'), problem.user.name, prettify_epoch( problem.confirmed_local.epoch ) ) | html %]
            [% END %]
        </p>

        <p>
            [% problem.detail | html %]
        </p>

    </blockquote>
    <input type="hidden" name="id" value="[% problem.id %]">

[% ELSE %]

    [% INCLUDE 'contact/blurb.html' %]

[% END %]

[% IF field_errors.name %]
   <div class="form-error">[% field_errors.name %]</div>
[% END %]
<div class="form-field">
<label for="form_name">[% loc('Your name:') %]</label>
<input type="text" class="required" name="name" id="form_name" value="[% form_name | html %]" size="30"></div>


[% IF field_errors.em %]
   <div class="form-error">[% field_errors.em %]</div>
[% END %]
<div class="form-field">
<label for="form_email">[% loc('Your&nbsp;email:') %]</label>
<input type="text" class="required email" name="em" id="form_email" value="[% em | html %]" size="30"></div>

[% IF field_errors.subject %]
   <div class="form-error">[% field_errors.subject %]</div>
[% END %]
<div class="form-field">
<label for="form_subject">[% loc('Subject:') %]</label>
<input type="text" class="required" name="subject" id="form_subject" value="[% subject | html %]" size="30"></div>

[% IF field_errors.message %]
   <div class="form-error">[% field_errors.message %]</div>
[% END %]
<div class="form-field">
<label for="form_message">[% loc('Message:') %]</label>

<textarea class="required" name="message" id="form_message" rows="7" cols="50">[% message | html %]</textarea></div>
<div class="checkbox"><input type="submit" value="[% loc('Post') %]"></div>

[% c.cobrand.form_elements('contactForm') %]

</form>

[% INCLUDE 'contact/address.html' %]

[% INCLUDE 'footer.html' %]
{'fraction_non_alphanumeric': 0.20698967434471802, 'fraction_numerical': 0.0041302621127879266, 'mean_word_length': 3.2569303583502367, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 117, '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': '399520', 'n_tokens_mistral': 2277, 'n_tokens_neox': 2206, 'n_words': 484}