<commit_before><?php
  echo HTML::style('content/css/introjs-nassim.css');
  echo HTML::script('content/js/intro.js');
  $config = Kohana::$config->load('users');
  $user = $config[0]; ?>

<h1>WeCrowd registration</h1>
<?php echo Form::open('user/complete_registration') ?>

  <div class="field">
    <label for="campaign_first_name">First Name</label>
    <?php echo Form::input('first_name', $user['first_name'],array('id' => 'first_name', 'readonly' => true)) ?>
  </div>

   <div class="field">
    <label for="campaign_last_name">Last Name</label>
    <?php echo Form::input('last_name',$user['last_name'],array('id' => 'last_name', 'readonly' => true)) ?>
  </div>

  <div class="field">
    <label for="campaign_campaign_name">Campaign Name</label>
    <?php echo Form::input('campaign_name',$user['campaign_name'],array('id' => 'campaign_name', 'readonly' => true)) ?>
  </div>

  <div class="field">
    <label for="campaign_description">Campaign Descripion</label>
    <?php echo Form::input('description',$user['campaign_description'],array('id' => 'description', 'readonly' => true)) ?>
  </div>

  <div id="step2">
    <div class="field">
      <label for="campaign_price">Donation Price</label>
      <?php echo Form::input('price','',array('id' => 'price')) ?>
    </div>

    <div class="field">
      <label for="campaign_email">Email</label>
      <?php echo Form::input('email','',array('id' => 'email')) ?>
    </div>

    <div class="field">
      <label for="campaign_password">Password</label>
      <?php echo Form::password('password','',array('id' => 'password')) ?>
    </div>
  </div>


  <div>
  <div class="field">
      <label for = "campaign_account_type"> Account Type </label>
      <?php echo Form::select('account_type',array( 'personal'  =>' Individual', 'business' => 'Business'), false, array('id' => 'account_type')) ?>

</div>
  <div data-intro="After registering, 'user/register' is called and and access token is passed to the account/create/ call" data step="4" class="actions">
    <?php echo Form::submit('submit','Create Campaign') ?>
  </div>
</Form>

<a href="/">Back</a>

<script type="text/javascript"> 
  if (RegExp('demo', 'gi').test(window.location.search)) {
    var intro = introJs();
    intro.setOptions({
      steps: [
        {
          intro: "To make things easier, we have already prefilled parts of the registration."
        },
        {
          element: 'step2',
          intro: 'You can fill out the rest! Please provide your real email address in order to receive the confirmation email.',
          position: 'right'
        },
      ],
      showStepNumbers: false
    })
    intro.start();

  }
</script><commit_msg>fixing walkthrough<commit_after><?php
  echo HTML::style('content/css/introjs-nassim.css');
  echo HTML::script('content/js/intro.js');
  $config = Kohana::$config->load('users');
  $user = $config[0]; ?>

<h1>WeCrowd registration</h1>
<?php echo Form::open('user/complete_registration') ?>

  <div class="field">
    <label for="campaign_first_name">First Name</label>
    <?php echo Form::input('first_name', $user['first_name'],array('id' => 'first_name', 'readonly' => true)) ?>
  </div>

   <div class="field">
    <label for="campaign_last_name">Last Name</label>
    <?php echo Form::input('last_name',$user['last_name'],array('id' => 'last_name', 'readonly' => true)) ?>
  </div>

  <div class="field">
    <label for="campaign_campaign_name">Campaign Name</label>
    <?php echo Form::input('campaign_name',$user['campaign_name'],array('id' => 'campaign_name', 'readonly' => true)) ?>
  </div>

  <div class="field">
    <label for="campaign_description">Campaign Descripion</label>
    <?php echo Form::input('description',$user['campaign_description'],array('id' => 'description', 'readonly' => true)) ?>
  </div>

  <div id="#step2">
    <div class="field">
      <label for="campaign_price">Donation Price</label>
      <?php echo Form::input('price','',array('id' => 'price')) ?>
    </div>

    <div class="field">
      <label for="campaign_email">Email</label>
      <?php echo Form::input('email','',array('id' => 'email')) ?>
    </div>

    <div class="field">
      <label for="campaign_password">Password</label>
      <?php echo Form::password('password','',array('id' => 'password')) ?>
    </div>
  </div>

  <div class="field">
      <label for = "campaign_account_type"> Account Type </label>
      <?php echo Form::select('account_type',array( 'personal'  =>' Individual', 'business' => 'Business'), false, array('id' => 'account_type')) ?>

</div>
  <div data-intro="After registering, 'user/register' is called and and access token is passed to the account/create/ call" data step="4" class="actions">
    <?php echo Form::submit('submit','Create Campaign') ?>
  </div>
</Form>

<a href="/">Back</a>

<script type="text/javascript"> 
  if (RegExp('demo', 'gi').test(window.location.search)) {
    var intro = introJs();
    intro.setOptions({
      steps: [
        {
          intro: "To make things easier, we have already prefilled parts of the registration."
        },
        {
          element: '#step2',
          intro: 'You can fill out the rest! Please provide your real email address in order to receive the confirmation email.',
          position: 'right'
        },
      ],
      showStepNumbers: false
    })
    intro.start();

  }
</script>
{'fraction_non_alphanumeric': 0.19881085098476403, 'fraction_numerical': 0.002229654403567447, 'mean_word_length': 3.9567219152854514, 'pattern_counts': {'":': 0, '<': 112, '<?xml version=': 0, '>': 142, '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': '4209979', 'n_tokens_mistral': 1731, 'n_tokens_neox': 1663, 'n_words': 383}