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):
|
def cookieMonster(uid):
|
||||||
redirect_to_home = redirect('/home')
|
redirect_to_home = redirect('/home')
|
||||||
|
|
|
@ -12,11 +12,11 @@ angular.module('SeHub')
|
||||||
$scope.user.name = "";
|
$scope.user.name = "";
|
||||||
$scope.user.name = $scope.user.username
|
$scope.user.name = $scope.user.username
|
||||||
$scope.userHasNoName = true;
|
$scope.userHasNoName = true;
|
||||||
}
|
};
|
||||||
|
|
||||||
$scope.dropdownClicked = function()
|
$scope.dropdownClicked = function()
|
||||||
{
|
{
|
||||||
console.log($scope.fullMail);
|
// console.log($scope.fullMail);
|
||||||
if($scope.campus){
|
if($scope.campus){
|
||||||
$scope.campusChecked = true;
|
$scope.campusChecked = true;
|
||||||
$scope.campusObj = null;
|
$scope.campusObj = null;
|
||||||
|
@ -28,18 +28,13 @@ angular.module('SeHub')
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
};
|
||||||
|
|
||||||
$scope.submitClicked = function()
|
$scope.submitClicked = function()
|
||||||
{
|
{
|
||||||
if($scope.academicEmail === "")
|
console.log($scope.user.AcMail);
|
||||||
isEmpty = true;
|
|
||||||
else{
|
|
||||||
$scope.isEmpty = false;
|
|
||||||
$scope.academicEmail = "matanbr";
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
};
|
||||||
|
|
||||||
apiService.getAllCampuses($scope.user.seToken).success(function(data)
|
apiService.getAllCampuses($scope.user.seToken).success(function(data)
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class = "disabledSubmitButton">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
<div>
|
<div>
|
||||||
<md-input-container>
|
<md-input-container>
|
||||||
<label>Academic Email</label>
|
<label>Academic Email</label>
|
||||||
<input ng-model="academicEmail" required>
|
<input type="text" ng-model="user.AcMail" required/>
|
||||||
</md-input-container>
|
</md-input-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue