#43 - Settings Page: Profile Edit Mode
This commit is contained in:
parent
f258856102
commit
980d81324c
1 changed files with 22 additions and 1 deletions
|
@ -15,10 +15,12 @@
|
||||||
</div>
|
</div>
|
||||||
<div flex="70%">
|
<div flex="70%">
|
||||||
<md-button class="md-raised" ng-click="changeProfileMode()">
|
<md-button class="md-raised" ng-click="changeProfileMode()">
|
||||||
<i ng-class="[profileModeIcon]"></i> {{profileMode}}
|
<i ng-class="profileModeIcon"></i> {{profileMode}}
|
||||||
</md-button>
|
</md-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div layout="column" ng-if="!isEditMode">
|
||||||
<div>
|
<div>
|
||||||
<h2>{{user.name}}</h2>
|
<h2>{{user.name}}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
@ -29,6 +31,25 @@
|
||||||
I Am a: {{(user.isLecturer) ? "Lecturer" : "Student"}}
|
I Am a: {{(user.isLecturer) ? "Lecturer" : "Student"}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</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>
|
||||||
</md-card>
|
</md-card>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue