Fixed the ng-model
This commit is contained in:
parent
eafb124760
commit
1fbf7a5af3
3 changed files with 16 additions and 13 deletions
|
@ -346,6 +346,14 @@ def login():
|
|||
|
||||
|
||||
|
||||
@app.route('/api/qa/init')
|
||||
def init_QA():
|
||||
qa_user = User(username='qa_student', name='Student QA', avatar_url='http://ava.com', email='just@mail.com',
|
||||
isLecturer=False, accessToken='student_token_', seToken='_QA_TOKEN_TEST')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
def cookieMonster(uid):
|
||||
redirect_to_home = redirect('/home')
|
||||
|
|
|
@ -12,11 +12,11 @@ angular.module('SeHub')
|
|||
$scope.user.name = "";
|
||||
$scope.user.name = $scope.user.username
|
||||
$scope.userHasNoName = true;
|
||||
}
|
||||
};
|
||||
|
||||
$scope.dropdownClicked = function()
|
||||
{
|
||||
console.log($scope.fullMail);
|
||||
// console.log($scope.fullMail);
|
||||
if($scope.campus){
|
||||
$scope.campusChecked = true;
|
||||
$scope.campusObj = null;
|
||||
|
@ -28,18 +28,13 @@ angular.module('SeHub')
|
|||
};
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
$scope.submitClicked = function()
|
||||
{
|
||||
if($scope.academicEmail === "")
|
||||
isEmpty = true;
|
||||
else{
|
||||
$scope.isEmpty = false;
|
||||
$scope.academicEmail = "matanbr";
|
||||
}
|
||||
console.log($scope.user.AcMail);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
apiService.getAllCampuses($scope.user.seToken).success(function(data)
|
||||
{
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
</div>
|
||||
<div>
|
||||
<div class = "disabledSubmitButton">
|
||||
<md-button ng-disabled="!campusChecked" class="md-raised md-primary">Submit</md-button>
|
||||
<md-button ng-click="submitClicked()" ng-disabled="!campusChecked" class="md-raised md-primary">Submit</md-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -46,7 +46,7 @@
|
|||
<div>
|
||||
<md-input-container>
|
||||
<label>Academic Email</label>
|
||||
<input ng-model="academicEmail" required>
|
||||
<input type="text" ng-model="user.AcMail" required/>
|
||||
</md-input-container>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue