-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
102 lines (95 loc) · 4.01 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
layout: default
---
<section class="trip-planner" ng-controller="TripController">
<section class="trip-description">
<p>A tool written for Outdoor Adventures for creating a list of this semester's trips to be submitted to AS Marketing for publication on the AS website.</p>
</section>
<section class="trip-toolbar row">
<div class="col-sm-6">
<button class="btn btn-primary" data-toggle="modal" data-target="#tripEditor">
<i class="fa fa-plus"></i>
<span>Add Trip</span>
</button>
</div>
<div class="col-sm-6 text-right">
<button class="btn btn-primary" ngf-select ng-model="tripFile" accept="application/json">
<i class="fa fa-folder-open-o"></i>
<span>Open</span>
</button>
<button class="btn btn-primary" ng-click="downloadTrips()">
<i class="fa fa-download"></i>
<span>Download</span>
</button>
</div>
</section>
<div ng-show="planner.trips.length == 0" class="empty-trips text-center">
<p>There aren't any trips! Click "Add Trip" to start adding trips or open your "trips.json" file by selecting the "Open" button.</p>
</div>
<section class="trip-list">
<article class="row" ng-repeat="trip in planner.trips track by $index">
<div class="col-md-2 text-center">
[[trip.date]]
</div>
<div class="col-md-6">
[[trip.name]]
</div>
<div class="col-md-4 text-right">
<div id="trip-title-[[$index]]" class="trip-template">
[[trip.date]] — [[trip.name]]
</div>
<div id="trip-body-[[$index]]" class="trip-template">
<h4>[[trip.name]]</h4>
<p>[[trip.desc]]</p>
<p>
<strong>Trip includes:</strong>
</p>
<ul>
<li ng-repeat="include in trip.includes">
[[include]]
</li>
</ul>
<p>
<strong>Trip excludes:</strong>
</p>
<ul>
<li ng-repeat="exclude in trip.excludes">
[[exclude]]
</li>
</ul>
<p>
<strong>Meeting location:</strong> [[trip.location]]
</p>
<p>
<strong>Strenuosity Level:</strong> [[trip.level]]
</p>
<p>
<strong>Cost</strong>
</p>
<ul>
<li>Student: [[trip.studentPrice]]</li>
<li>Non-student: [[trip.nonStudentPrice]]</li>
</ul>
</div>
<button class="btn btn-info btn-sm" ng-click="copyTripTitle($index)">
<i class="fa fa-files-o"></i>
<span>Copy Title</span>
</button>
<button class="btn btn-info btn-sm" ng-click="copyTripBody($index)">
<i class="fa fa-files-o"></i>
<span>Copy Body</span>
</button>
<button class="btn btn-primary btn-sm" ng-click="editTrip($index)" data-toggle="modal" data-target="#tripEditor">
<i class="fa fa-pencil"></i>
<span>Edit</span>
</button>
<a class="btn btn-danger btn-sm" ng-click="deleteTrip($index)" href="#" data-toggle="modal" data-target="#deleteConfirmation">
<i class="fa fa-trash"></i>
<span>Delete</span>
</a>
</div>
</article>
</section>
{% include tripEditor.html %}
{% include deleteConfirmation.html %}
</section>