Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

angela - backtrek - pipes #32

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
149 changes: 148 additions & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,165 @@
<head>
<meta charset="utf-8">
<title>My JavaScript App</title>
<link rel="shortcut icon" href="favicon.ico">
<!-- <link rel="../favico.ico" href="favicon.ico" type="favicon.ico"> -->

<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<header>

<h1>BackTREK</h1>
</header>
<main>
<button id="load-trips" class="button">
&nbsp;&nbsp;
Search Trips

</button>

<a href="#add-trip-form" rel="modal:open" id="load-trips" class="button"> ▶
&nbsp;&nbsp;Add Trip</a>

<section id="status-messages">
<button class="clear float-right">
<img src="http://www.pvhc.net/img223/xeiwtpbbgpmyhtcnjvwt.png" alt="Clear">
</button>

<ul>
</ul>
</section>

<section class="grid-x">
<div class="columns medium-9 small-12">
<div id="trips">
<table>
<thead>
<th class="sort name">Name</th>
<th class="sort continent">Continent</th>
<th class="sort category">Category</th>
<th class="sort weeks">Weeks</th>
<th class="sort cost">Cost</th>
</thead>

<tbody id="trip-list">
</tbody>
</table>
</div>
</div>
</section>

<section >
<div id='trip' ></div>


</section>

<aside class="columns large-4 small-12">

<form id="add-trip-form" class="modal">
<h2>Add a Trip</h2>
<label for="name">Name</label>
<input type="text" name="name">

<label for="category">Category</label>
<input type="text" name="category">

<label for="continent">Continent</label>
<input type="text" name="continent" placeholder="Continent">

<!-- <select name="continent">
<option value="Africa">Africa</option>
<option value="Antartica">Antartica</option>
<option value="Asia">Asia</option>
<option value="Australis">Australia</option>
<option value="Europe">Europe</option>
<option value="North America">North America</option>
<option value="South America">South America</option>
</select> -->


<label for="weeks">Duration</label>
<input type="text" name="weeks">

<label for="cost">Cost</label>
<input type="text" name="cost">

<label for="about">About</label>
<input type="text" name="about">

<input type="submit" value="Trip Registration" id="load-trips" class="button">
</form>

</aside>



</main>
<footer>

</footer>

<script type="text/template" id="trip-template">
<tr class="trip" >
<td>
<%- name %>
</td>

<td>
<%- continent %>
</td>

<td>
<%- category %>
</td>

<td>
<%- weeks %>
</td>

<td>
<%- cost %>
</td>
</tr>
</script>

<script type="text/template" id="trip-detail-template">
<div class="grid-x">
<div class="columns medium-8 small-12">
<h2><%- name %><h2/>
<p><span class="bold">Category:</span> <%- category %></p>
<p><span class="bold">Continent:</span> <%- continent %></p>
<p><span class="bold">Duration:</span> <%- weeks %> weeks</p>
<p><span class="bold">Cost:</span> $<%- cost %></p>
<p><span class="bold">About:</span> <%- about %></p>


<form id="add-res" >
<hr>

<h3>Make Your Reservation</h3>
<label for="name"> Name </label>
<input type="text" name="name">

<label for="email">Email</label>
<input type="text" name="email" value="">

<input type="hidden" name="tripId" value="<%- id %>">

<input type="submit" value="Reserve Trip" class="">
<br>
<br>
</form>
</div>
</div>
</script>

<script src="app.bundle.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.css" />

</body>
</html>
Loading