<commit_before><% if flash[:error] %>
<h3 style="color: red;"><%= flash[:error] %></h3>
<% end %>
<div class="container">
  <div class="stepwizard">
    <div class="stepwizard-row setup-panel">
      <div class="stepwizard-step">
        <a href="#step-1" type="button" class="btn btn-primary btn-circle">1</a>
        <p>Step 1</p>
      </div>
      <div class="stepwizard-step">
        <a href="#step-2" type="button" class="btn btn-default btn-circle" disabled="disabled">2</a>
        <p>Step 2</p>
      </div>
      <div class="stepwizard-step">
        <a href="#step-3" type="button" class="btn btn-default btn-circle" disabled="disabled">3</a>
        <p>Step 3</p>
      </div>
    </div>
  </div>
  <%= form_tag @url, method: @method do %>
  <div class="row setup-content" id="step-1">
    <div class="col-xs-12">
      <div class="col-md-12">
        <h3> Step 1</h3>
        <div class="form-group">
          <%= label_tag 'Origin Street Address' %>
          <%= text_field_tag 'origin_address[street_address]', @origin_address ? @origin_address.street_address : "" %>
        </div>
        <div class="form-group">
          <%= label_tag 'Origin Secondary Address' %>
          <%= text_field_tag 'origin_address[secondary_address]', @origin_address ? @origin_address.secondary_address : "" %>
       </div>
       <div class="form-group">
         <%= label_tag 'Location Description' %>
         <%= text_field_tag 'origin_address[description]', @origin_address ? @origin_address.description : "" %>
      </div>
      <div class="form-group">
        <%= label_tag 'Origin City' %>
        <%= text_field_tag 'origin_address[city]', @origin_address ? @origin_address.city : "" %>
      </div>
      <div class="form-group">
        <%= label_tag 'Origin State' %>
        <%= text_field_tag 'origin_address[state]', @origin_address ? @origin_address.state : "" %>
      </div>
      <div class="form-group">
       <%= label_tag "Zip Code" %>
       <%= text_field_tag "origin_address[zip_code]", @origin_address ? @origin_address.zip_code : "" %>
       <%= hidden_field_tag 'origin_address[user_id]', current_user.id %>
     </div>
     <button class="btn btn-primary nextBtn btn-lg pull-right" type="button" >Next</button>
   </div>
 </div>
</div>
<div class="row setup-content" id="step-2">
  <div class="col-xs-12">
    <div class="col-md-12">
      <h3> Step 2</h3>
      <div class="form-group">
        <%= hidden_field_tag 'destination_address[user_id]', current_user.id %> <br>
        <%= label_tag 'Destination Street Address' %>
        <%= text_field_tag 'destination_address[street_address]', @destination_address ? @destination_address.street_address : "" %>
      </div>
      <div class="form-group">
        <%= label_tag 'Destination Secondary Address' %>
        <%= text_field_tag 'destination_address[secondary_address]', @destination_address ? @destination_address.secondary_address : "" %>
     </div>
     <div class="form-group">
       <%= label_tag 'Destination City' %>
       <%= text_field_tag 'destination_address[city]', @destination_address ? @destination_address.city : "" %>
    </div>
    <div class="form-group">
      <%= label_tag 'Destination State' %>
      <%= text_field_tag 'destination_address[state]', @destination_address ? @destination_address.state : "" %>
    </div>
    <div class="form-group">
      <%= label_tag 'Destination Zip Code' %>
      <%= text_field_tag 'destination_address[zip_code]', @destination_address ? @destination_address.zip_code : "" %>
    </div>
    <button class="btn btn-primary nextBtn btn-lg pull-right" type="button" >Next</button>
  </div>
</div>
</div>
<div class="row setup-content" id="step-3">
  <div class="col-xs-12">
    <div class="col-md-12">
      <h3> Step 3</h3>
      <div class="form-group">
        <%= hidden_field_tag 'parcel[sender_id]', current_user.id %>
        <%= hidden_field_tag 'parcel[delivered]', false %>
        <%= label_tag 'Parcel Description' %>
        <%= text_field_tag 'parcel[description]', @parcel ? @parcel.description : "" %>
     </div>
     <div class="form-group">
        <%= label_tag 'Pickup By' %>
        <div class='input-group date' id='datetimepicker1'>
           <%= text_field_tag 'parcel[pickup_by]', @parcel ? @parcel.pickup_by : "" %>
              <span class="input-group-addon">
            <span class="glyphicon glyphicon-calendar"></span>
          </span>
        </div>
    </div>
    <div class="form-group">
      <%= label_tag 'Delivery By' %>
       <div class='input-group date' id='datetimepicker2'>
            <%= text_field_tag 'parcel[deliver_by]', @parcel ? @parcel.deliver_by: "" %>
              <span class="input-group-addon">
            <span class="glyphicon glyphicon-calendar"></span>
          </span>
        </div>
    </div>
    <div class="form-group">
      <%= label_tag 'Volume' %>
      <%= text_field_tag 'parcel[volume]', @parcel ? @parcel.volume : "" %>
    </div>
    <div class="form-group">
     <%= label_tag 'Weight' %>
     <%= text_field_tag 'parcel[weight]', @parcel ? @parcel.weight : "" %>
   </div>
   <div class="form-group">
     <%= label_tag 'Delivery Notes' %>
     <%= text_field_tag 'parcel[delivery_notes]', @parcel ? @parcel.delivery_notes : "" %> <br>
  </div>
  <%= submit_tag (@submit_btn) %>
  <% end %>
</div>
</div>
</div>
</div>

<script type="text/javascript">
  $(function () {
    $('#datetimepicker1').datetimepicker();
  });
</script>
<script type="text/javascript">
  $(function () {
    $('#datetimepicker2').datetimepicker();
  });
</script><commit_msg>Take out hidden fields from current user in parcel form<commit_after><% if flash[:error] %>
<h3 style="color: red;"><%= flash[:error] %></h3>
<% end %>
<div class="container">
  <div class="stepwizard">
    <div class="stepwizard-row setup-panel">
      <div class="stepwizard-step">
        <a href="#step-1" type="button" class="btn btn-primary btn-circle">1</a>
        <p>Step 1</p>
      </div>
      <div class="stepwizard-step">
        <a href="#step-2" type="button" class="btn btn-default btn-circle" disabled="disabled">2</a>
        <p>Step 2</p>
      </div>
      <div class="stepwizard-step">
        <a href="#step-3" type="button" class="btn btn-default btn-circle" disabled="disabled">3</a>
        <p>Step 3</p>
      </div>
    </div>
  </div>
  <%= form_tag @url, method: @method do %>
  <div class="row setup-content" id="step-1">
    <div class="col-xs-12">
      <div class="col-md-12">
        <h3> Step 1</h3>
        <div class="form-group">
          <%= label_tag 'Origin Street Address' %>
          <%= text_field_tag 'origin_address[street_address]', @origin_address ? @origin_address.street_address : "" %>
        </div>
        <div class="form-group">
          <%= label_tag 'Origin Secondary Address' %>
          <%= text_field_tag 'origin_address[secondary_address]', @origin_address ? @origin_address.secondary_address : "" %>
       </div>
       <div class="form-group">
         <%= label_tag 'Location Description' %>
         <%= text_field_tag 'origin_address[description]', @origin_address ? @origin_address.description : "" %>
      </div>
      <div class="form-group">
        <%= label_tag 'Origin City' %>
        <%= text_field_tag 'origin_address[city]', @origin_address ? @origin_address.city : "" %>
      </div>
      <div class="form-group">
        <%= label_tag 'Origin State' %>
        <%= text_field_tag 'origin_address[state]', @origin_address ? @origin_address.state : "" %>
      </div>
      <div class="form-group">
       <%= label_tag "Zip Code" %>
       <%= text_field_tag "origin_address[zip_code]", @origin_address ? @origin_address.zip_code : "" %>
     </div>
     <button class="btn btn-primary nextBtn btn-lg pull-right" type="button" >Next</button>
   </div>
 </div>
</div>
<div class="row setup-content" id="step-2">
  <div class="col-xs-12">
    <div class="col-md-12">
      <h3> Step 2</h3>
      <div class="form-group">
        <%= label_tag 'Destination Street Address' %>
        <%= text_field_tag 'destination_address[street_address]', @destination_address ? @destination_address.street_address : "" %>
      </div>
      <div class="form-group">
        <%= label_tag 'Destination Secondary Address' %>
        <%= text_field_tag 'destination_address[secondary_address]', @destination_address ? @destination_address.secondary_address : "" %>
     </div>
     <div class="form-group">
       <%= label_tag 'Destination City' %>
       <%= text_field_tag 'destination_address[city]', @destination_address ? @destination_address.city : "" %>
    </div>
    <div class="form-group">
      <%= label_tag 'Destination State' %>
      <%= text_field_tag 'destination_address[state]', @destination_address ? @destination_address.state : "" %>
    </div>
    <div class="form-group">
      <%= label_tag 'Destination Zip Code' %>
      <%= text_field_tag 'destination_address[zip_code]', @destination_address ? @destination_address.zip_code : "" %>
    </div>
    <button class="btn btn-primary nextBtn btn-lg pull-right" type="button" >Next</button>
  </div>
</div>
</div>
<div class="row setup-content" id="step-3">
  <div class="col-xs-12">
    <div class="col-md-12">
      <h3> Step 3</h3>
      <div class="form-group">
       <%= hidden_field_tag 'parcel[delivered]', false %>
       <%= label_tag 'Parcel Description' %>
       <%= text_field_tag 'parcel[description]', @parcel ? @parcel.description : "" %>
     </div>
     <div class="form-group">
        <%= label_tag 'Pickup By' %>
        <div class='input-group date' id='datetimepicker1'>
           <%= text_field_tag 'parcel[pickup_by]', @parcel ? @parcel.pickup_by : "" %>
              <span class="input-group-addon">
            <span class="glyphicon glyphicon-calendar"></span>
          </span>
        </div>
    </div>
    <div class="form-group">
      <%= label_tag 'Delivery By' %>
       <div class='input-group date' id='datetimepicker2'>
            <%= text_field_tag 'parcel[deliver_by]', @parcel ? @parcel.deliver_by: "" %>
              <span class="input-group-addon">
            <span class="glyphicon glyphicon-calendar"></span>
          </span>
        </div>
    </div>
    <div class="form-group">
      <%= label_tag 'Volume' %>
      <%= text_field_tag 'parcel[volume]', @parcel ? @parcel.volume : "" %>
    </div>
    <div class="form-group">
     <%= label_tag 'Weight' %>
     <%= text_field_tag 'parcel[weight]', @parcel ? @parcel.weight : "" %>
   </div>
   <div class="form-group">
     <%= label_tag 'Delivery Notes' %>
     <%= text_field_tag 'parcel[delivery_notes]', @parcel ? @parcel.delivery_notes : "" %> <br>
  </div>
  <%= submit_tag (@submit_btn) %>
  <% end %>
</div>
</div>
</div>
</div>

<script type="text/javascript">
  $(function () {
    $('#datetimepicker1').datetimepicker();
  });
</script>
<script type="text/javascript">
  $(function () {
    $('#datetimepicker2').datetimepicker();
  });
</script>
{'fraction_non_alphanumeric': 0.18719883625784162, 'fraction_numerical': 0.007091553777616147, 'mean_word_length': 3.084663943557371, 'pattern_counts': {'":': 0, '<': 299, '<?xml version=': 0, '>': 299, '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': '7226403', 'n_tokens_mistral': 3819, 'n_tokens_neox': 3611, 'n_words': 676}