<commit_before>
{% extends "layout.html" %}
{% block content %}
 
<div class="jumbotron" style="margin-left:10%; margin-right:10%;">
<div class="container" >

<h3>Please confirm that the information below is correct:</h3>

                <div class='card-wrapper'></div>
<script>function send_emails(){
   //emailjs.send("gmail","test_departure_arrival",{name: "Hello", notes: YouWrote + " to " + YouWrote1 + f0 + f1 + wow });
 } </script> 
            <script language="JavaScript">

                    var User = "current_user";
                    User = getCookie("current_user");
                    //console.log(User);
                    //if (User == "current_user") 
                    //  {window.location = "http://andrewgoldstein.github.io/login.html"}

                    var YouWrote;
                    YouWrote=getCookie("origin");
                    // TODO: ERROR HANDLING
                    if (YouWrote == "origin")
                      {YouWrote = "Nothing_Entered"}

                    var YouWrote1;
                    YouWrote1=getCookie("destination");
                    // TODO: ERROR HANDLING
                    if (YouWrote1 == "destination")
                      {YouWrote1 = "Nothing_Entered"}

                    var f0;
                    f0=getCookie("input");
                    // TODO: ERROR HANDLING
                    if (f0 == "input")
                      {f0 = "Nothing_Entered";
                      window.location = "http://www.google.com";
                    }

                    var f1;
                    f1=getCookie("output");
                    // TODO: ERROR HANDLING
                    if (f1 == "output")
                      {f1 = "Nothing_Entered"}
 

                    var card = new Card({
                        form: 'form',
                        container: '.card-wrapper',
                        formSelectors: {
                            nameInput: 'input[name="full_name"]'
                        },
                        placeholders: {
                            number: "{{ current_user.card_number }}",
                            name: "{{ current_user.full_name }}",
                            expiry: "{{ current_user.expiration }}"
                        },
                        debug:true
                    });

            </script> 


<table class="table table-hover">
   
   <thead>
      <tr>
         <th>       </th>
         <th></th>
      </tr>
   </thead>
   
   <tbody>
      <tr>
         <td>Credit Card Information<a style="font-size:small" href="http://localhost:5000/users/settings#creditcard">  (edit)</a></td>
         <td>Number: {{ current_user.card_number }}</td>
      </tr>
      
      <tr>
         <td></td>
         <td>Expires {{ current_user.expiration }}</td>
      </tr>
      <tr>
         <td></td>
         <td>CVC Code: {{ current_user.cvc }}</td>
      </tr>      
      <tr>
         <td>Credit Card Address<a style="font-size:small" href="http://localhost:5000/users/settings#address">  (edit)</a></td>
         <td>{{ current_user.full_name}}</td>
      </tr>

      {% if current_user.address_line2 %}
      <tr>
         <td></td>
         <td>{{ current_user.address_line1 }}, {{ current_user.address_line2 }}</td>
      </tr> 
      {% else %}
      <tr>
         <td></td>
         <td>{{ current_user.address_line1 }}</td>
      </tr> 
      {% endif %}

      <tr>
         <td></td>
         <td>{{ current_user.address_city }}, {{ current_user.address_state }}   {{ current_user.address_zip }}  </td>
      </tr>      

      <tr>
         <td>Date of Birth<a style="font-size:small" href="http://localhost:5000/users/settings#dob">  (edit)</a></td>
         <td>{{ current_user.date_of_birth }}</td>
      </tr>

      <tr>
         <td>Phone Number<a style="font-size:small" href="http://localhost:5000/users/settings#phone">  (edit)</a></td>
         <td>{{ current_user.phone }} </td>
      </tr>
   </tbody>
   
</table>

<br>
<br>
      <h2>Flight Details</h2>
            <h4 id="result4">
            </h4>
                        

<table class="table table-hover">
   
   <thead>
      <tr>
         <th> </th>
         <th></th>
      </tr>
   </thead>
   
   <tbody>
      <tr>
         <td>Outbound Flight</td>
         <td id="result0"></td>
      </tr>
      <tr>
         <td><a style="font-size:small" href='http://localhost:5000/users/flights#accordion-6'>(Change)</a></td>
         <td id="result1"></td>
      </tr>
      <tr>
         <td></td>
         <td id="result2"></td>
      </tr>            
      <tr>
         <td></td>
         <td></td>
      </tr>     
            
      <tr>
         <td>Returning Flight</td>
         <td id="result5"></td>
      </tr>
      <tr>
         <td><a style="font-size:small" href='http://localhost:5000/users/flights#accordion-7'>(Change)</a></td>
         <td id="result6"></td>
      </tr>
      <tr>
         <td></td>
         <td id="result3"></td>
      </tr>  

   </tbody>
   
</table>
            


  <script>  document.getElementById("result4").innerHTML = "You're headed from " + YouWrote + " to " +YouWrote1 + "!<br><br>"; 
  document.getElementById("result0").innerHTML = "Departing " + YouWrote; 
    document.getElementById("result1").innerHTML = "Arriving "  + YouWrote1; 
document.getElementById("result5").innerHTML = "Departing " + YouWrote1; 
    document.getElementById("result6").innerHTML = "Arriving " + YouWrote; 
          document.getElementById("result2").innerHTML = f0; 
                           document.getElementById("result3").innerHTML = f1; </script>

</div>
</div>


<br>

<!--
<form id="creditcardForm" class="form form-register" method="POST" action="" role="form">
          
            <input placeholder="Card Number" class="form-group" name="number" type="hidden">4343444444444444</input>
            
            <input placeholder="MM/YY" class="form-group" name="expiry" type="hidden">12/12</input>

            <p><input class="btn btn-default btn-submit" type="submit" value="Submit"></p>
        </form>

Payment
    full_name  {{ current_user.full_name }} <br>
    card_number     {{ current_user.card_number }}  <br>
    expiration     {{ current_user.expiration }} <br>
    cvc       {{ current_user.cvc }} <br>
    address_line1   {{ current_user.address_line1 }} <br>
    address_line2    {{ current_user.address_line2 }} <br>
    address_zip    {{ current_user.address_zip }} <br>
    address_city    {{ current_user.address_city }} <br>
    address_state  {{ current_user.address_state }} <br>
    
    date_of_birth  {{ current_user.date_of_birth }} <br>
    phone  {{ current_user.phone }} <br>
    email
flight info 


    <h1>Welcome user id {{ current_user.id }}</h1>
    <p> created at {{current_user.created_at  }} </p>
-->
<center><br><a class="btn btn-lrg btn-success" onClick="send_emails" href = "{{ url_for('user.jumbo') }}"  role="button">Complete Purchase!</a><center>
       

      


{% endblock %}

<commit_msg>updating summary page links<commit_after>
{% extends "layout.html" %}
{% block content %}
 
<div class="jumbotron" style="margin-left:10%; margin-right:10%;">
<div class="container" >

<h3>Please confirm that the information below is correct:</h3>

                <div class='card-wrapper'></div>
<script>function send_emails(){
   //emailjs.send("gmail","test_departure_arrival",{name: "Hello", notes: YouWrote + " to " + YouWrote1 + f0 + f1 + wow });
 } </script> 
            <script language="JavaScript">

                    var User = "current_user";
                    User = getCookie("current_user");
                    //console.log(User);
                    //if (User == "current_user") 
                    //  {window.location = "http://andrewgoldstein.github.io/login.html"}

                    var YouWrote;
                    YouWrote=getCookie("origin");
                    // TODO: ERROR HANDLING
                    if (YouWrote == "origin")
                      {YouWrote = "Nothing_Entered"}

                    var YouWrote1;
                    YouWrote1=getCookie("destination");
                    // TODO: ERROR HANDLING
                    if (YouWrote1 == "destination")
                      {YouWrote1 = "Nothing_Entered"}

                    var f0;
                    f0=getCookie("input");
                    // TODO: ERROR HANDLING
                    if (f0 == "input")
                      {f0 = "Nothing_Entered";
                      window.location = "http://www.google.com";
                    }

                    var f1;
                    f1=getCookie("output");
                    // TODO: ERROR HANDLING
                    if (f1 == "output")
                      {f1 = "Nothing_Entered"}
 

                    var card = new Card({
                        form: 'form',
                        container: '.card-wrapper',
                        formSelectors: {
                            nameInput: 'input[name="full_name"]'
                        },
                        placeholders: {
                            number: "{{ current_user.card_number }}",
                            name: "{{ current_user.full_name }}",
                            expiry: "{{ current_user.expiration }}"
                        },
                        debug:true
                    });

            </script> 


<table class="table table-hover">
   
   <thead>
      <tr>
         <th>       </th>
         <th></th>
      </tr>
   </thead>
   
   <tbody>
      <tr>
         <td>Credit Card Information<a style="font-size:small" href="{{ url_for('user.settings') }}">  (edit)</a></td>
         <td>Number: {{ current_user.card_number }}</td>
      </tr>
      
      <tr>
         <td></td>
         <td>Expires {{ current_user.expiration }}</td>
      </tr>
      <tr>
         <td></td>
         <td>CVC Code: {{ current_user.cvc }}</td>
      </tr>      
      <tr>
         <td>Credit Card Address<a style="font-size:small" href="{{ url_for('user.settings') }}">  (edit)</a></td>
         <td>{{ current_user.full_name}}</td>
      </tr>

      {% if current_user.address_line2 %}
      <tr>
         <td></td>
         <td>{{ current_user.address_line1 }}, {{ current_user.address_line2 }}</td>
      </tr> 
      {% else %}
      <tr>
         <td></td>
         <td>{{ current_user.address_line1 }}</td>
      </tr> 
      {% endif %}

      <tr>
         <td></td>
         <td>{{ current_user.address_city }}, {{ current_user.address_state }}   {{ current_user.address_zip }}  </td>
      </tr>      

      <tr>
         <td>Date of Birth<a style="font-size:small" href="{{ url_for('user.settings') }}">  (edit)</a></td>
         <td>{{ current_user.date_of_birth }}</td>
      </tr>

      <tr>
         <td>Phone Number<a style="font-size:small" href="http://localhost:5000/users/settings#phone">  (edit)</a></td>
         <td>{{ current_user.phone }} </td>
      </tr>
   </tbody>
   
</table>

<br>
<br>
      <h2>Flight Details</h2>
            <h4 id="result4">
            </h4>
                        

<table class="table table-hover">
   
   <thead>
      <tr>
         <th> </th>
         <th></th>
      </tr>
   </thead>
   
   <tbody>
      <tr>
         <td>Outbound Flight</td>
         <td id="result0"></td>
      </tr>
      <tr>
         <td><a style="font-size:small" href='http://weekendflyer.herokuapp.com/users/flights#accordion-6'>(Change)</a></td>
         <td id="result1"></td>
      </tr>
      <tr>
         <td></td>
         <td id="result2"></td>
      </tr>            
      <tr>
         <td></td>
         <td></td>
      </tr>     
            
      <tr>
         <td>Returning Flight</td>
         <td id="result5"></td>
      </tr>
      <tr>
         <td><a style="font-size:small" href='http://weekendflyer.herokuapp.com/users/flights#accordion-7'>(Change)</a></td>
         <td id="result6"></td>
      </tr>
      <tr>
         <td></td>
         <td id="result3"></td>
      </tr>  

   </tbody>
   
</table>
            


  <script>  document.getElementById("result4").innerHTML = "You're headed from " + YouWrote + " to " +YouWrote1 + "!<br><br>"; 
  document.getElementById("result0").innerHTML = "Departing " + YouWrote; 
    document.getElementById("result1").innerHTML = "Arriving "  + YouWrote1; 
document.getElementById("result5").innerHTML = "Departing " + YouWrote1; 
    document.getElementById("result6").innerHTML = "Arriving " + YouWrote; 
          document.getElementById("result2").innerHTML = f0; 
                           document.getElementById("result3").innerHTML = f1; </script>

</div>
</div>


<br>

<!--
<form id="creditcardForm" class="form form-register" method="POST" action="" role="form">
          
            <input placeholder="Card Number" class="form-group" name="number" type="hidden">4343444444444444</input>
            
            <input placeholder="MM/YY" class="form-group" name="expiry" type="hidden">12/12</input>

            <p><input class="btn btn-default btn-submit" type="submit" value="Submit"></p>
        </form>

Payment
    full_name  {{ current_user.full_name }} <br>
    card_number     {{ current_user.card_number }}  <br>
    expiration     {{ current_user.expiration }} <br>
    cvc       {{ current_user.cvc }} <br>
    address_line1   {{ current_user.address_line1 }} <br>
    address_line2    {{ current_user.address_line2 }} <br>
    address_zip    {{ current_user.address_zip }} <br>
    address_city    {{ current_user.address_city }} <br>
    address_state  {{ current_user.address_state }} <br>
    
    date_of_birth  {{ current_user.date_of_birth }} <br>
    phone  {{ current_user.phone }} <br>
    email
flight info 


    <h1>Welcome user id {{ current_user.id }}</h1>
    <p> created at {{current_user.created_at  }} </p>
-->
<center><br><a class="btn btn-lrg btn-success" onClick="send_emails" href = "{{ url_for('user.jumbo') }}"  role="button">Complete Purchase!</a><center>
       

      


{% endblock %}


{'fraction_non_alphanumeric': 0.16534928434095278, 'fraction_numerical': 0.01281777397991882, 'mean_word_length': 1.6704696710401217, 'pattern_counts': {'":': 0, '<': 373, '<?xml version=': 0, '>': 373, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '6947044', 'n_tokens_mistral': 4547, 'n_tokens_neox': 4261, 'n_words': 758}