Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Working Registration & User Information edits
- Loading branch information
Showing
3 changed files
with
136 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,67 @@ | ||
<div data-ng-controller="userController"><a id="top"></a> | ||
<div data-ng-controller="userController" data-ng-init="getUserInfo()"><a id="top"></a> | ||
|
||
<h1> Account Settings Change here </h1> | ||
<div id="grid1" ui-grid="{ data: myData }" class="grid"></div> | ||
<div class="col-md-6 col-md-offset-3"> | ||
<h2>Your Account Information</h2> | ||
<div ng-show="messages" class="alert alert-danger">{{messages}}</div> | ||
<form name="form" role="form"> | ||
<div class="form-group" ng-class="{ 'has-error': form.firstName.$dirty && form.firstName.$error.required }"> | ||
<label for="username">First name</label> | ||
<input type="text" name="firstName" id="firstName" class="form-control" ng-model="user.FName" required /> | ||
<span ng-show="form.firstName.$dirty && form.firstName.$error.required" class="help-block">First name is required</span> | ||
</div> | ||
<div class="form-group" ng-class="{ 'has-error': form.lastName.$dirty && form.lastName.$error.required }"> | ||
<label for="username">Last name</label> | ||
<input type="text" name="lastName" id="Text1" class="form-control" ng-model="user.LName" required /> | ||
<span ng-show="form.lastName.$dirty && form.lastName.$error.required" class="help-block">Last name is required</span> | ||
</div> | ||
<div class="form-group" ng-class="{ 'has-error': form.addr.$dirty && form.addr.$error.required }"> | ||
<label for="addr">Address</label> | ||
<input type="text" name="addr" id="addr" class="form-control" ng-model="user.Address" required /> | ||
<span ng-show="form.addr.$dirty && form.addr.$error.required" class="help-block">Address is required</span> | ||
</div> | ||
<div class="form-group" ng-class="{ 'has-error': form.city.$dirty && form.city.$error.required }"> | ||
<label for="city">City</label> | ||
<input type="text" name="city" id="city" class="form-control" ng-model="user.City" required /> | ||
<span ng-show="form.city.$dirty && form.city.$error.required" class="help-block">City is required</span> | ||
</div> | ||
<div class="form-group" ng-class="{ 'has-error': form.state.$dirty && form.state.$error.required }"> | ||
<label for="state">State</label> | ||
<input type="text" name="state" id="state" class="form-control" ng-model="user.State" required /> | ||
<span ng-show="form.state.$dirty && form.state.$error.required" class="help-block">State is required</span> | ||
</div> | ||
<div class="form-group" ng-class="{ 'has-error': form.country.$dirty && form.country.$error.required }"> | ||
<label for="country">Country</label> | ||
<input type="text" name="country" id="country" class="form-control" ng-model="user.Country" required /> | ||
<span ng-show="form.country.$dirty && form.country.$error.required" class="help-block">Country is required</span> | ||
</div> | ||
<div class="form-group" ng-class="{ 'has-error': form.postal.$dirty && form.postal.$error.required }"> | ||
<label for="postal">Zip Code</label> | ||
<input type="text" name="postal" id="postal" class="form-control" ng-model="user.Post" required /> | ||
<span ng-show="form.postal.$dirty && form.postal.$error.required" class="help-block">Postal is required</span> | ||
</div> | ||
<div class="form-group" ng-class="{ 'has-error': form.phone.$dirty && form.phone.$error.required }"> | ||
<label for="phone">Phone Number</label> | ||
<input type="text" name="phone" id="phone" class="form-control" ng-model="user.Phone" required /> | ||
<span ng-show="form.phone.$dirty && form.phone.$error.required" class="help-block">Phone number is required</span> | ||
</div> | ||
<div class="form-group" ng-class="{ 'has-error': form.fax.$dirty && form.fax.$error.required }"> | ||
<label for="fax">Fax Number</label> | ||
<input type="text" name="fax" id="fax" class="form-control" ng-model="user.Fax" required /> | ||
<span ng-show="form.fax.$dirty && form.fax.$error.required" class="help-block">Fax number is required</span> | ||
</div> | ||
<div class="form-group" ng-class="{ 'has-error': form.email.$dirty && form.email.$error.required }"> | ||
<label for="email">Email</label> | ||
<input type="text" name="email" id="email" class="form-control" ng-model="user.Email" required /> | ||
<span ng-show="form.email.$dirty && form.email.$error.required" class="help-block">Email is required</span> | ||
</div> | ||
<div class="form-group"> | ||
<label for="company">Company name (Optional)</label> | ||
<input type="text" name="company" id="company" class="form-control" ng-model="user.Company" /> | ||
</div> | ||
<div class="form-actions"> | ||
<button type="submit" ng-disabled="form.$invalid || vm.dataLoading" data-ng-click="updateUser(user)" class="btn btn-primary">Submit Changes</button> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
</div> |