Skip to content

Commit

Permalink
form validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ruralant committed Jan 1, 2017
1 parent 1039bab commit ee1944e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion public/js/controllers/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,9 @@ function SearchController(Flights, $http, $rootScope, $state) {
$state.go("results");
});
}
};
};

window.addEventListener('click', function(e) {
const holidaySelected = document.querySelector('themes["${e.target}"]')
console.log(holidaySelected);
})
6 changes: 3 additions & 3 deletions public/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ <h1 id="title">Travelly</h1>

<h5>or</h5>

<div id="login-forms" class="form-group m-x-auto"" ng-submit="login.submit()">
<input class="form-control" type="email" name="email" ng-model="login.credentials.email" placeholder="Email" ng-required="true">
<div id="login-forms" class="form-group m-x-auto" ng-submit="login.submit()">
<input class="form-control email" type="email" name="email" ng-model="login.credentials.email" placeholder="Email" ng-required="true">
<br>
<input class="form-control" type="password" name="password" ng-model="login.credentials.password" placeholder="Password" ng-required="true">
<input class="form-control password" type="password" name="password" ng-model="login.credentials.password" placeholder="Password" ng-required="true">
<br>
<input class="btn btn-outline-danger" type="submit" value="Login">
</div>
Expand Down

0 comments on commit ee1944e

Please sign in to comment.