<commit_before>[% INCLUDE 'header.html', title = loc('Sign in or create an account') %]

<h1>[% loc('Sign in') %]</h1>

<form action="[% c.uri_for() %]" method="post" name="general_auth" class="validate">
    <fieldset>
        <input type="hidden" name="r" value="[% c.req.params.r | html %]">
            
            [% IF email_error;

                # other keys include fqdn, mxcheck if you'd like to write a custom error message

                errors = {
                    missing => loc('Please enter your email'),
                    other   => loc('Please check your email address is correct')
                };
                
                loc_email_error = errors.$email_error || errors.other;
            END %]
        <label class="n" for="email">[% loc('Email') %]</label>
        [% IF loc_email_error  %]
            <div class="form-error">[% loc_email_error %]</div>
        [% ELSIF sign_in_error %]
            <div class="form-error">[% loc('There was a problem with your email/password combination. If you cannot remember your password, or do not have one, please fill in the &lsquo;sign in by email&rsquo; section of the form.') %]</div>
        [% END %]
        <input type="email" class="required email" id="email" name="email" value="[% email | html %]" placeholder="[% loc('Your email address') %]">

        <div id="form_sign_in">
            [% IF c.cobrand.moniker == 'fixmybarangay' %]
            <h3>[% loc("Do you have a FixMyBarangay password?") %]</h3>
            [% ELSE %]
            <h3>[% loc("Do you have a FixMyStreet password?") %]</h3>
            [% END %]

            <div id="form_sign_in_yes" class="form-box">
                <h5>[% loc('<strong>Yes</strong> I have a password') %]</h5>
                
                <label class="hidden-js n" for="password_sign_in">[% loc('<strong>Yes</strong> I have a password') %]</label>

                <div class="form-txt-submit-box">
                    <input type="password" name="password_sign_in" id="password_sign_in" value="" placeholder="[% loc('Your password') %]">
                    <input class="green-btn" type="submit" name="sign_in" value="[% loc('Sign in') %]">
                </div>
                
                <input type="checkbox" id="remember_me" name="remember_me" value='1'[% ' checked' IF remember_me %]>
                <label class="inline n" for="remember_me">[% loc('Keep me signed in on this computer') %]</label>

            </div>
            <div id="form_sign_in_no" class="form-box">
                <h5>[% loc('<strong>No</strong> let me sign in by email') %]</h5>

                <div class="general-sidebar-notes">
                    <p>Providing a name and password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.</p>
                </div>

                <label for="name">[% loc('Name') %]</label>
                <input type="text" name="name" value="" placeholder="[% loc('Your name') %]">

                <label for="password_register">[% loc('Password (optional)') %]</label>
                <div class="form-txt-submit-box">
                    <input type="password" name="password_register" id="password_register" value="" placeholder="[% loc('Enter a password') %]">
                    <input class="green-btn" type="submit" name="email_sign_in" value="[% loc('Sign in') %]">
                </div>
            </div><commit_msg>A missing i18n string.<commit_after>[% INCLUDE 'header.html', title = loc('Sign in or create an account') %]

<h1>[% loc('Sign in') %]</h1>

<form action="[% c.uri_for() %]" method="post" name="general_auth" class="validate">
    <fieldset>
        <input type="hidden" name="r" value="[% c.req.params.r | html %]">
            
            [% IF email_error;

                # other keys include fqdn, mxcheck if you'd like to write a custom error message

                errors = {
                    missing => loc('Please enter your email'),
                    other   => loc('Please check your email address is correct')
                };
                
                loc_email_error = errors.$email_error || errors.other;
            END %]
        <label class="n" for="email">[% loc('Email') %]</label>
        [% IF loc_email_error  %]
            <div class="form-error">[% loc_email_error %]</div>
        [% ELSIF sign_in_error %]
            <div class="form-error">[% loc('There was a problem with your email/password combination. If you cannot remember your password, or do not have one, please fill in the &lsquo;sign in by email&rsquo; section of the form.') %]</div>
        [% END %]
        <input type="email" class="required email" id="email" name="email" value="[% email | html %]" placeholder="[% loc('Your email address') %]">

        <div id="form_sign_in">
            [% IF c.cobrand.moniker == 'fixmybarangay' %]
            <h3>[% loc("Do you have a FixMyBarangay password?") %]</h3>
            [% ELSE %]
            <h3>[% loc("Do you have a FixMyStreet password?") %]</h3>
            [% END %]

            <div id="form_sign_in_yes" class="form-box">
                <h5>[% loc('<strong>Yes</strong> I have a password') %]</h5>
                
                <label class="hidden-js n" for="password_sign_in">[% loc('<strong>Yes</strong> I have a password') %]</label>

                <div class="form-txt-submit-box">
                    <input type="password" name="password_sign_in" id="password_sign_in" value="" placeholder="[% loc('Your password') %]">
                    <input class="green-btn" type="submit" name="sign_in" value="[% loc('Sign in') %]">
                </div>
                
                <input type="checkbox" id="remember_me" name="remember_me" value='1'[% ' checked' IF remember_me %]>
                <label class="inline n" for="remember_me">[% loc('Keep me signed in on this computer') %]</label>

            </div>
            <div id="form_sign_in_no" class="form-box">
                <h5>[% loc('<strong>No</strong> let me sign in by email') %]</h5>

                <div class="general-sidebar-notes">
                    <p>[% loc('Providing a name and password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]</p>
                </div>

                <label for="name">[% loc('Name') %]</label>
                <input type="text" name="name" value="" placeholder="[% loc('Your name') %]">

                <label for="password_register">[% loc('Password (optional)') %]</label>
                <div class="form-txt-submit-box">
                    <input type="password" name="password_register" id="password_register" value="" placeholder="[% loc('Enter a password') %]">
                    <input class="green-btn" type="submit" name="email_sign_in" value="[% loc('Sign in') %]">
                </div>
            </div>
{'fraction_non_alphanumeric': 0.16604370327774584, 'fraction_numerical': 0.0034502587694077054, 'mean_word_length': 2.189821182943604, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 113, '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': '967131', 'n_tokens_mistral': 2126, 'n_tokens_neox': 2017, 'n_words': 564}