2015-06-16 20:32:10 +00:00
|
|
|
<div>
|
|
|
|
<div class="loader" ng-if="loadingData">
|
|
|
|
<md-progress-circular md-mode="indeterminate"></md-progress-circular>
|
|
|
|
</div>
|
|
|
|
<md-content layout-padding>
|
|
|
|
<md-card layout-padding>
|
|
|
|
<h1><i class="fa fa-cogs"></i> {{title}}</h1>
|
2015-06-16 21:07:21 +00:00
|
|
|
<div layout="row">
|
|
|
|
<div>
|
|
|
|
<md-card layout-padding>
|
|
|
|
<div id="profile" layout="column">
|
|
|
|
<div class="user-box" layout="row">
|
|
|
|
<div>
|
|
|
|
<img ng-src="{{user.avatar_url}}" alt="" style="width:20%">
|
|
|
|
</div>
|
|
|
|
<div flex="70%">
|
|
|
|
<md-button class="md-raised" ng-click="changeProfileMode()">
|
2015-06-16 21:16:26 +00:00
|
|
|
<i ng-class="profileModeIcon"></i> {{profileMode}}
|
2015-06-16 21:07:21 +00:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-06-16 21:16:26 +00:00
|
|
|
</div>
|
|
|
|
<div layout="column" ng-if="!isEditMode">
|
2015-06-16 21:07:21 +00:00
|
|
|
<div>
|
|
|
|
<h2>{{user.name}}</h2>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
Email: {{user.email}}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
I Am a: {{(user.isLecturer) ? "Lecturer" : "Student"}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-06-17 17:59:45 +00:00
|
|
|
|
|
|
|
<!-- Starting Edit Mode Div -->
|
2015-06-16 21:16:26 +00:00
|
|
|
<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>
|
2015-06-16 21:07:21 +00:00
|
|
|
</md-card>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-06-16 20:32:10 +00:00
|
|
|
</md-card>
|
2015-06-16 21:07:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2015-06-16 20:32:10 +00:00
|
|
|
</md-content>
|
|
|
|
</div>
|