2015-06-21 19:22:13 +00:00
|
|
|
<div>
|
2015-06-26 12:13:26 +00:00
|
|
|
<div class="loader" ng-if="loadingData" layout="row" layout-align="center">
|
|
|
|
|
2015-06-21 19:22:13 +00:00
|
|
|
<md-progress-circular md-mode="indeterminate"></md-progress-circular>
|
2015-06-26 12:13:26 +00:00
|
|
|
|
2015-06-21 19:22:13 +00:00
|
|
|
</div>
|
2015-06-30 15:48:13 +00:00
|
|
|
<md-content layout-padding ng-if="userExists && !loadingData">
|
2015-06-21 19:22:13 +00:00
|
|
|
<md-card layout-padding>
|
|
|
|
<h1><i class="fa fa-cogs"></i> {{title}}</h1>
|
|
|
|
<div layout="row">
|
2015-08-01 10:35:59 +00:00
|
|
|
<div flex='40'>
|
2015-06-21 19:22:13 +00:00
|
|
|
<md-card layout-padding>
|
|
|
|
<div id="profile" layout="column">
|
|
|
|
<!-- User Profile Box -->
|
|
|
|
<div class="user-box" layout="row">
|
|
|
|
<div>
|
|
|
|
<img ng-src="{{user.avatar_url}}" alt="" style="width:20%">
|
|
|
|
</div>
|
|
|
|
<div flex="70%">
|
2015-06-26 12:34:07 +00:00
|
|
|
<md-button class="md-raised" ng-click="changeProfileMode()" ng-if="isUser">
|
2015-06-21 19:22:13 +00:00
|
|
|
<i ng-class="profileModeIcon"></i> {{profileMode}}
|
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Start View Profile -->
|
|
|
|
<div layout="column" ng-if="!isEditMode">
|
|
|
|
<div>
|
|
|
|
<h2>{{user.name}}</h2>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
Email: {{user.email}}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
I Am a: {{(user.isLecturer) ? "Lecturer" : "Student"}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- End View Profile -->
|
|
|
|
<!-- Starting Edit Mode Div -->
|
|
|
|
<div layout="column" ng-if="isEditMode">
|
|
|
|
<div>
|
|
|
|
<md-input-container>
|
|
|
|
<label>Full Name</label>
|
|
|
|
<input ng-model="user.name">
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<md-input-container>
|
|
|
|
<label>Email</label>
|
|
|
|
<input ng-model="user.email">
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<md-switch ng-model="user.isLecturer" aria-label="Switch 1">
|
|
|
|
I Am a: {{(user.isLecturer) ? "Lecturer" : "Student"}}
|
|
|
|
</md-switch>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- End Edit Div -->
|
2015-06-22 10:04:21 +00:00
|
|
|
<!-- Chart -->
|
|
|
|
<h4>
|
|
|
|
<i class="fa fa-bar-chart"></i> Statistics:
|
|
|
|
</h4>
|
|
|
|
<canvas id="bar" class="chart chart-bar" data="data"
|
|
|
|
labels="labels" series="series"></canvas>
|
2015-06-21 19:22:13 +00:00
|
|
|
</md-card>
|
|
|
|
</div>
|
|
|
|
<!-- Campuses & Classes Div -->
|
|
|
|
<div flex>
|
|
|
|
<md-card layout-padding>
|
|
|
|
<h3><i class="fa fa-graduation-cap"></i> My Classes</h3>
|
|
|
|
<div class="settingList">
|
|
|
|
<div class="settingListRoot">
|
|
|
|
<div ng-repeat="course in courses" class="settingListItem" layout="row">
|
|
|
|
<div>
|
2015-06-30 15:48:13 +00:00
|
|
|
<img alt="{{ person.name }}" src="https://www.isc2.org/uploadedimages/education/classroom-based-training-icon.png" class="md-avatar" />
|
2015-06-21 19:22:13 +00:00
|
|
|
</div>
|
|
|
|
<div class="port_spacer">
|
|
|
|
{{ course.courseName }} - <strong>IN</strong> {{course.campusName}}
|
|
|
|
</div>
|
|
|
|
<div class="spacer"></div>
|
|
|
|
<div>
|
2015-06-26 12:34:07 +00:00
|
|
|
<md-button class="" ng-if="isUser">
|
2015-06-21 19:22:13 +00:00
|
|
|
X
|
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
<md-divider ng-if="!$last"></md-divider>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h3><i class="fa fa-university"></i> My Campuses</h3>
|
|
|
|
|
|
|
|
<div class="settingList">
|
|
|
|
<div class="settingListRoot">
|
|
|
|
<div ng-repeat="campus in campuses" class="settingListItem" layout="row">
|
|
|
|
<div>
|
|
|
|
<img alt="{{ person.name }}" ng-src="{{ campus.avatar_url }}" class="md-avatar" />
|
|
|
|
</div>
|
|
|
|
<div class="port_spacer">
|
2015-06-26 12:13:26 +00:00
|
|
|
<strong>{{ campus.title }}</strong> {{campus.email_ending}}
|
2015-06-21 19:22:13 +00:00
|
|
|
</div>
|
|
|
|
<div class="spacer"></div>
|
|
|
|
<div>
|
2015-06-26 12:34:07 +00:00
|
|
|
<md-button class="" ng-if="isUser">
|
2015-06-21 19:22:13 +00:00
|
|
|
X
|
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
<md-divider ng-if="!$last"></md-divider>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</md-card>
|
|
|
|
</div>
|
|
|
|
<!-- End Campuses & Classes Div -->
|
|
|
|
</div>
|
|
|
|
</md-card>
|
|
|
|
</md-content>
|
2015-06-30 15:48:13 +00:00
|
|
|
|
|
|
|
<md-content layout-padding ng-if="!userExists && !loadingData" class="gray-font-no-animation">
|
|
|
|
<md-card>
|
|
|
|
<div layout="row">
|
|
|
|
<div class="spacer"></div>
|
|
|
|
<div>
|
|
|
|
<h1><i class="fa fa-exclamation-triangle"></i></h1>
|
|
|
|
</div>
|
|
|
|
<div class="spacer"></div>
|
|
|
|
</div>
|
|
|
|
<div layout="row">
|
|
|
|
<div class="spacer"></div>
|
|
|
|
<div>
|
|
|
|
<h1>User Not Found</h1>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="spacer"></div>
|
|
|
|
</div>
|
|
|
|
<div layout="row">
|
|
|
|
<div class="spacer"></div>
|
|
|
|
<div>
|
|
|
|
<P>Might Not Be A Registered SE-Hub User</P>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="spacer"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</md-card>
|
|
|
|
</md-content>
|
2015-06-21 19:22:13 +00:00
|
|
|
</div>
|