-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
169 lines (164 loc) · 11.5 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!doctype html>
<html ng-app="LFG" lang="en">
<head>
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<link href="bower_components/material-design-iconic-font/css/material-design-iconic-font.css" rel="stylesheet">
<link href="bower_components/angular-material/angular-material.css" rel="stylesheet">
<link href="bower_components/angular-material/modules/css/angular-material-layout.css" rel="stylesheet">
<link href="css/theme.css" rel="stylesheet" />
<link href="css/styles.css" rel="stylesheet" />
</head>
<body ng-controller="GroupController" class="layout-content" layout="column" md-theme="default">
<section class="main" ng-cloak>
<md-toolbar layout="row">
<h1>Looking for Group {{ isCollegeSelected() ? ' in ' + data.selectedCollege : '' }}</h1>
</md-toolbar>
<div class="main-content">
<md-tabs>
<md-tab label="Choose College">
<md-content class="md-padding" layout="column" flex>
<md-input-container flex>
<label>
{{ selectedCollege }}
</label>
</md-input-container>
<md-select ng-model="data.selectedCollege" placeholder="Choose College">
<md-option ng-value="college" ng-repeat="college in colleges">{{ college }}</md-option>
</md-select>
</md-content>
</md-tab>
<md-tab label="Find Group" tab-disable >
<md-content class="md-padding" layout="column" flex>
<md-input-container flex>
<label>
<md-icon class="md-2x md-flip-horizontal" md-font-icon="md-search" alt="search "></md-icon>
Search for Course
</label>
<input type="text" ng-model="searchCourse">
</md-input-container>
<div layout="row" flex class="courses accordion">
<div class="accordion-item" layout="column" flex="{{ getColWidth('courses') }}">
<h2>Available Courses</h2>
<md-list flex>
<md-item ng-repeat="course in getCourses() | filter: searchCourse">
<md-item-content ng-click="selectCourse(course.id)" ng-class="{ 'selected' : (selectedCourse === course.id) }" class="">
<div class="md-tile-left">
{{ course.id }}
</div>
<div class="md-tile-content one-line">
{{ course.name }}
</div>
</md-item-content>
</md-item>
</md-list>
<div layout="row">
<span flex></span>
<md-button class="md-fab md-warn add-button" ng-click="showAddCourse(selectedCourse)">
<md-icon class="md-2x" md-font-icon="md-add" alt="Add Course"></md-icon>
<md-tooltip>
Add Course
</md-tooltip>
</md-button>
</div>
</div>
<div class="accordion-item" layout="column" flex="{{ getColWidth('groups') }}" show-item="{{ isItemShown('groups') }}">
<h2>Groups in Course {{ selectedCourse }}</h2>
<md-list flex>
<md-item ng-repeat="group in getGroups(selectedCourse)">
<md-item-content ng-click="selectGroup(group.id)" ng-class="{ 'selected' : (selectedGroup === group.id) }">
<md-button class="md-raised md-primary md-hue-4 md-icon-button" aria-label="Profile">
<md-icon class="md-2x" md-font-icon="md-people" alt="people"></md-icon> {{ getGroupSize(group.id) }}
</md-button>
<div class="md-tile-content one-line">
{{ group.name }}
</div>
<md-button class="md-raised md-primary" ng-click="joinGroup(group.id, $event)" ng-if="!isInGroup(me.id, group.id)">Join</md-button>
<md-button class="md-raised md-warn" ng-click="leaveGroup(group.id, $event)" ng-if="isInGroup(me.id, group.id)">Leave</md-button>
</md-item-content>
</md-item>
</md-list>
<div layout="row">
<span flex></span>
<md-button class="md-fab md-warn add-button" ng-click="showAddGroup(selectedCourse)">
<md-icon class="md-2x" md-font-icon="md-add" alt="Add Group"></md-icon>
<md-tooltip>
Add Group
</md-tooltip>
</md-button>
</div>
</div>
<div class="accordion-item" layout="column" flex="{{ getColWidth('people') }}" show-item="{{ isItemShown('people') }}">
<h2>People in Group</h2>
<md-list flex>
<md-item ng-repeat="person in getPeople(selectedGroup, true)">
<md-item-content ng-click="selectPerson(person, $event)">
<div class="md-tile-content one-line">
{{ person.name }}
</div>
<md-button class="md-raised md-warn" ng-click="removePersonFromGroup(person.id, selectedGroup, $event)">Remove</md-button>
</md-item-content>
</md-item>
</md-list>
<div layout="row">
<span flex></span>
<md-button class="md-fab md-warn add-button" ng-click="showAddPerson(selectedGroup)">
<md-icon class="md-2x" md-font-icon="md-add" alt="Add Person"></md-icon>
<md-tooltip>
Add Person
</md-tooltip>
</md-button>
</div>
</div>
</div>
</md-content>
</md-tab>
<md-tab label="My Groups" tab-disable >
<md-content class="md-padding" layout="column" flex>
<div layout="row" flex class="courses accordion">
<div class="accordion-item" layout="column" flex="50">
<h2>Groups</h2>
<md-list flex>
<md-item ng-repeat="group in getMyGroups()">
<md-item-content ng-click="selectMyGroup(group.id)" ng-class="{ 'selected' : (mySelectedGroup === group.id) }">
<md-button class="md-raised md-primary md-hue-4 md-icon-button" aria-label="Profile">
<md-icon class="md-2x" md-font-icon="md-people" alt="people"></md-icon> {{ getGroupSize(group.id) }}
</md-button>
<div class="md-tile-content one-line">
{{ group.name }}
</div>
<md-button class="md-raised md-warn" ng-click="leaveGroup(group.id, $event)" ng-if="isInGroup(me.id, group.id)">Leave</md-button>
</md-item-content>
</md-item>
</md-list>
</div>
<div class="accordion-item" layout="column" flex="50" show-item="{{ isItemShown('myPeople') }}">
<h2>People in Group</h2>
<md-list flex>
<md-item ng-repeat="person in getPeople(mySelectedGroup, true)">
<md-item-content ng-click="selectPerson(person, $event)">
<div class="md-tile-content one-line">
{{ person.name }}
</div>
</md-item-content>
</md-item>
</md-list>
</div>
</div>
</md-content>
</md-tab>
</md-tabs>
</div>
</section>
</body>
<script src="bower_components/jquery/dist/jquery.min.js" type="text/javascript"></script>
<script src="bower_components/angular/angular.min.js" type="text/javascript"></script>
<script src="bower_components/angular-route/angular-route.min.js" type="text/javascript"></script>
<script src="bower_components/angular-aria/angular-aria.min.js" type="text/javascript"></script>
<script src="bower_components/angular-animate/angular-animate.min.js" type="text/javascript"></script>
<script src="bower_components/angular-material/angular-material.min.js" type="text/javascript"></script>
<script src="js/app/app.js" type="text/javascript"></script>
<script src="js/group/group.module.js" type="text/javascript"></script>
<script src="js/group/controllers/group.controller.js" type="text/javascript"></script>
<script src="js/group/services/data.service.js" type="text/javascript"></script>
<script src="js/group/directives/dynamic.tab.disable.directive.js" type="text/javascript"></script>
</html>