-create campus Fixed
- email validation for lecturer in campus fixed!!
This commit is contained in:
parent
191bbdc634
commit
0b4af040c7
1 changed files with 8 additions and 5 deletions
|
@ -25,19 +25,22 @@
|
||||||
<div>
|
<div>
|
||||||
<div ng-if="user.isLecturer">
|
<div ng-if="user.isLecturer">
|
||||||
<div>
|
<div>
|
||||||
<md-button ng-click = "lecturer($event)" ng-model="jsonCreateCampus" class="md-raised">Create Campus</md-button>
|
<md-button ng-click = "createCampus($event)" ng-model="jsonCreateCampus" class="md-raised">Create Campus</md-button>
|
||||||
<div class = "createCampus" ng-if="createCampusClicked">
|
<div class = "createCampus" ng-if="createCampusClicked">
|
||||||
<md-input-container>
|
<md-input-container>
|
||||||
<label>Academic Lecturer Email</label>
|
<label>Academic Suffix Email</label>
|
||||||
<input type="text" ng-disabled="!createCampusClicked" ng-model="user.lecAcMail" required/>
|
<input type="text" ng-model="user.campusSuffixMail" ng-minlength="1" required/>
|
||||||
|
<!-- <div ng-if = "emailValid">
|
||||||
|
|
||||||
|
</div> -->
|
||||||
</md-input-container>
|
</md-input-container>
|
||||||
<md-input-container>
|
<md-input-container>
|
||||||
<label>Campus Name</label>
|
<label>Campus Name</label>
|
||||||
<input type="text" ng-disabled="!createCampusClicked" ng-model="user.campusName" required/>
|
<input type="text" ng-if="createCampusClicked" ng-model="user.campusName" ng-minlength="1" required !important/>
|
||||||
</md-input-container>
|
</md-input-container>
|
||||||
<md-input-container>
|
<md-input-container>
|
||||||
<label>Campus Avatar Url (optional)</label>
|
<label>Campus Avatar Url (optional)</label>
|
||||||
<input type="text" ng-disabled="!createCampusClicked" ng-model="user.newCampusAvatar" required/>
|
<input type="text" ng-if="createCampusClicked" ng-model="user.newCampusAvatar"/>
|
||||||
</md-input-container>
|
</md-input-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue