<commit_before><?php 
  use_helper('Form', 'Validation');
  $sf_request->setParameter('_homeFooter', true);
?>

    <h2>Contact</h2>
    
    <p>Hi, I'm Fabrice!</p>

    <p>Note: you can post <strong>bugs and suggestions</strong> to our <a href="https://github.com/fabd/kanji-koohii/issues">Github issues tracker</a>.</p>

<?php if ($sf_user->isAuthenticated()): ?>

    <p style="color:#484"><em><span class="required-legend">*</span> Please provide a valid email address, it will only be used to reply to your message.</em></p>

    <div class="padded-box rounded mb-3 max-w-[600px]">

      <?php echo form_errors() ?>
      <?php echo form_tag('home/contact', ['class'=>'block']) ?>

      <div class="form-group">
        <label for="name">Name</label>
        <?php echo input_tag('name', '', ['class' => 'form-control JsFocusOnLoadInput', 'id' => 'name', 'style' => 'max-width:300px']) ?>
      </div>

      <div class="form-group">
        <label for="email_address">Email *</label>
        <input type="text" name="email" class="form-control" id="email_address" placeholder="Email" style="max-width:300px" />
      </div>

      <div class="form-group">
        <label for="message">Message</label>
        <?php echo textarea_tag('message', '', ['rows' => 8, 'class' => 'form-control']) ?>
      </div>

      <div class="form-group">
        <?php echo submit_tag('Send', ['class' => 'btn btn-lg btn-success']) ?>
      </div>

    </form>
  </div>

<?php else: ?>

    <p style="color:#844">
      The <strong>contact form</strong> is available to members only (please <?= link_to('sign in', '@login') ?>).
    </p>

    <div class="padded-box rounded mb-3 max-w-[600px]">

        <p class="mb-2">
          <strong>If you are unable to sign in</strong>, contact:<br>
          <br>
          kanji &bull; koohii &#65312; gmail &bull; com
        </p>
    </div>

<?php endif ?>
<commit_msg>(about/contact): use BootstrapHelper<commit_after><?php 
  use_helper('Form', 'Validation');
  $sf_request->setParameter('_homeFooter', true);
?>

    <h2>Contact</h2>
    
    <p>Hi, I'm Fabrice!</p>

    <p>Note: you can post <strong>bugs and suggestions</strong> to our <a href="https://github.com/fabd/kanji-koohii/issues">Github issues tracker</a>.</p>

<?php if ($sf_user->isAuthenticated()): ?>

    <p style="color:#484"><em><span class="required-legend">*</span> Please provide a valid email address, it will only be used to reply to your message.</em></p>

    <div class="padded-box rounded mb-3 max-w-[600px]">

<?php
    echo form_tag('home/contact', ['class'=>'block']);

    echo _bs_form_group(
      ['validate' => 'name'],
      _bs_input_email('name', [
        'label' => 'Name',
        'class' => 'JsFocusOnLoadInput max-w-[300px]',
      ])
    );

    echo _bs_form_group(
      ['validate' => 'email'],
      _bs_input_email('email', [
        'label' => 'Email *',
        'placeholder' => 'Email',
        'class' => 'max-w-[300px]',
      ])
    );

    echo _bs_form_group(
      ['validate' => 'message'],
      _bs_input_textarea('message', [
        'label' => 'Message',
        'rows' => 8
      ])
    );

    echo _bs_form_group(
      _bs_submit_tag('Send message', ['class' => 'btn-lg'])
    );
?>

    </form>
  </div>

<?php else: ?>

    <p style="color:#844">
      The <strong>contact form</strong> is available to members only (please <?= link_to('sign in', '@login') ?>).
    </p>

    <div class="padded-box rounded mb-3 max-w-[600px]">

        <p class="mb-2">
          <strong>If you are unable to sign in</strong>, contact:<br>
          <br>
          kanji &bull; koohii &#65312; gmail &bull; com
        </p>
    </div>

<?php endif ?>

{'fraction_non_alphanumeric': 0.2021103896103896, 'fraction_numerical': 0.015692640692640692, 'mean_word_length': 2.899789029535865, 'pattern_counts': {'":': 0, '<': 96, '<?xml version=': 0, '>': 119, 'https://': 2, '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': '5625999', 'n_tokens_mistral': 1331, 'n_tokens_neox': 1249, 'n_words': 289}