2015-07-07 01:21:43 +00:00
|
|
|
<section class="row auth" data-ng-controller="SettingsController" >
|
2015-07-30 00:22:53 +00:00
|
|
|
<h3 class="col-xs-offset-1 col-xs-10 text-center">Edit your profile</h3>
|
|
|
|
<div class="col-xs-offset-3 col-xs-6">
|
2015-06-29 22:51:29 +00:00
|
|
|
<form name="userForm" data-ng-submit="updateUserProfile(userForm.$valid)" class="signin form-horizontal" autocomplete="off">
|
|
|
|
<fieldset>
|
2015-07-02 02:49:35 +00:00
|
|
|
<div data-ng-show="success" class="text-center text-success">
|
|
|
|
<strong>Profile Saved Successfully</strong>
|
|
|
|
</div>
|
|
|
|
<div data-ng-show="error" class="text-center text-danger">
|
2015-07-07 01:21:43 +00:00
|
|
|
Couldn't Save Your Profile.<br>
|
2015-07-02 02:49:35 +00:00
|
|
|
Error: <strong data-ng-bind="error"></strong>
|
|
|
|
</div>
|
2015-07-30 00:22:53 +00:00
|
|
|
|
|
|
|
<div class="form-group row">
|
|
|
|
<div class="col-xs-7 field-title">
|
|
|
|
<b>First Name</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-12 field-input">
|
|
|
|
<input type="text" id="firstName" name="firstName" class="form-control" data-ng-model="user.firstName" placeholder="First Name">
|
|
|
|
</div>
|
2015-06-29 22:51:29 +00:00
|
|
|
</div>
|
2015-07-30 00:22:53 +00:00
|
|
|
<div class="form-group row">
|
|
|
|
<div class="col-xs-7 field-title">
|
|
|
|
<b>Last Name</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-12 field-input">
|
2015-07-06 04:37:34 +00:00
|
|
|
<input type="text" id="lastName" name="lastName" class="form-control" data-ng-model="user.lastName" placeholder="Last Name">
|
2015-07-30 00:22:53 +00:00
|
|
|
</div>
|
2015-07-06 04:37:34 +00:00
|
|
|
</div>
|
2015-07-30 00:22:53 +00:00
|
|
|
<div class="row">
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
<div class="row form-group">
|
|
|
|
<div class="col-xs-7 field-title">
|
|
|
|
<b>Language</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-12 field-input">
|
2015-07-07 01:21:43 +00:00
|
|
|
<select ng-model="user.language" required>
|
|
|
|
<option ng-repeat="language in languages"
|
|
|
|
ng-selected="language == user.language"
|
|
|
|
value="{{language}}">
|
|
|
|
{{language}}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2015-06-29 22:51:29 +00:00
|
|
|
</div>
|
2015-07-30 00:22:53 +00:00
|
|
|
|
|
|
|
<div class="row form-group">
|
|
|
|
<div class="col-xs-7 field-title">
|
|
|
|
<b>Email</b>
|
|
|
|
<small>(also your username)</small>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-12 field-input">
|
|
|
|
<input type="email" id="email" name="email" class="form-control" data-ng-model="user.email" placeholder="Email">
|
|
|
|
</div>
|
2015-06-29 22:51:29 +00:00
|
|
|
</div>
|
2015-07-30 00:22:53 +00:00
|
|
|
|
2015-06-29 22:51:29 +00:00
|
|
|
<div class="text-center form-group">
|
2015-07-30 00:22:53 +00:00
|
|
|
<button type="submit" class="btn btn-large btn-primary" style="font-size:1.6em;">Update Profile</button>
|
2015-06-29 22:51:29 +00:00
|
|
|
</div>
|
2015-07-02 02:49:35 +00:00
|
|
|
|
2015-06-29 22:51:29 +00:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</section>
|