2016-06-25 21:12:17 +02:00
|
|
|
<div class="container-fluid container-fluid-custom" element-height ng-controller="AccountSettingController as vm">
|
2016-05-09 12:53:40 +02:00
|
|
|
<div class="container container-custom">
|
|
|
|
<div class="row extend-height">
|
|
|
|
<div class="section">
|
2016-05-13 13:16:57 +02:00
|
|
|
<h1 class="col-md-12 col-md-offset-2 main-title title-color">// 'account_setting' | tr //</h1>
|
2016-05-31 12:49:16 +02:00
|
|
|
<div class="col-md-12 col-md-offset-2 main-content">
|
2016-06-22 05:26:28 +02:00
|
|
|
<modal-dialog modal-title="//vm.modalTitle//" modal-message="//vm.modalMessage//" action="vm.confirm()" confirm-only="true"></modal-dialog>
|
2016-06-21 07:28:21 +02:00
|
|
|
<form name="form" class="css-form form-horizontal" novalidate>
|
2016-05-31 12:49:16 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="username" class="col-sm-3 control-label">// 'username' | tr //:</label>
|
|
|
|
<div class="col-sm-7">
|
2016-06-21 07:28:21 +02:00
|
|
|
<input type="text" class="form-control" id="username" ng-model="user.username" name="uUsername" ng-disabled="vm.isOpen" required maxlength="20" invalid-chars>
|
2016-05-31 12:49:16 +02:00
|
|
|
<div ng-messages="form.$submitted && form.uUsername.$error">
|
|
|
|
<span ng-message="required">// 'username_is_required' | tr //</span>
|
|
|
|
<span ng-message="maxlength">// 'username_is_too_long' | tr //</span>
|
|
|
|
<span ng-message="invalidChars">// 'username_contains_illegal_chars' | tr //</span>
|
2016-05-09 12:53:40 +02:00
|
|
|
</div>
|
2016-05-31 12:49:16 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
|
|
<span class="asterisk">*</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="email" class="col-sm-3 control-label">// 'email' | tr //:</label>
|
|
|
|
<div class="col-sm-7">
|
2016-06-21 07:28:21 +02:00
|
|
|
<input type="email" class="form-control" id="email" ng-model="user.email" name="uEmail" ng-disabled="vm.isOpen" required>
|
2016-05-31 12:49:16 +02:00
|
|
|
<div ng-messages="form.$submitted && form.uEmail.$error">
|
|
|
|
<span ng-message="required">// 'email_is_required' | tr //</span>
|
|
|
|
<span ng-message="email">// 'email_content_illegal' | tr //</span>
|
2016-05-09 12:53:40 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-31 12:49:16 +02:00
|
|
|
<div class="col-sm-2">
|
|
|
|
<span class="asterisk">*</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="fullName" class="col-sm-3 control-label">// 'full_name' | tr //:</label>
|
|
|
|
<div class="col-sm-7">
|
2016-06-21 07:28:21 +02:00
|
|
|
<input type="text" class="form-control" id="fullName" ng-model="user.realname" name="uFullName" ng-disabled="vm.isOpen" required maxlength="20" invalid-chars>
|
2016-05-31 12:49:16 +02:00
|
|
|
<div ng-messages="form.$submitted && form.uFullName.$error">
|
|
|
|
<span ng-message="required">// 'full_name_is_required' | tr //</span>
|
|
|
|
<span ng-message="invalidChars">// 'full_name_contains_illegal_chars' | tr //</span>
|
|
|
|
<span ng-message="maxlength">// 'full_name_is_too_long' | tr //</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
|
|
<span class="asterisk">*</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="comments" class="col-sm-3 control-label">// 'comments' | tr //:</label>
|
|
|
|
<div class="col-sm-7">
|
2016-06-21 07:28:21 +02:00
|
|
|
<input type="text" class="form-control" id="comments" ng-model="user.comment" name="uComments" ng-disabled="vm.isOpen" maxlength="20">
|
2016-05-31 12:49:16 +02:00
|
|
|
<div ng-messages="form.$submitted && form.uComments.$error">
|
|
|
|
<span ng-show="maxlength">// 'comment_is_too_long' | tr //</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-06-21 07:28:21 +02:00
|
|
|
</div>
|
2016-05-31 12:49:16 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="toggleChangePassword" class="col-sm-3 control-label"><a id="toggleChangePassword" href="#" ng-click="vm.toggleChangePassword()">// 'change_password' | tr //</a></label>
|
|
|
|
</div>
|
|
|
|
<div ng-show="vm.isOpen">
|
|
|
|
<hr/>
|
2016-05-09 12:53:40 +02:00
|
|
|
<div class="form-group">
|
2016-05-31 12:49:16 +02:00
|
|
|
<label for="oldPassword" class="col-sm-3 control-label">// 'old_password' | tr //:</label>
|
2016-05-09 12:53:40 +02:00
|
|
|
<div class="col-sm-7">
|
2016-06-21 07:28:21 +02:00
|
|
|
<input type="password" class="form-control" id="oldPassword" ng-model="user.oldPassword" ng-change="vm.reset()" name="uOldPassword" required>
|
|
|
|
<div class="error-message" ng-messages="vm.isOpen && form.$submitted && form.uOldPassword.$touched && form.uOldPassword.$error">
|
2016-05-31 12:49:16 +02:00
|
|
|
<span ng-message="required">// 'old_password_is_required' | tr //</span>
|
|
|
|
</div>
|
2016-05-09 12:53:40 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
|
|
<span class="asterisk">*</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2016-05-31 12:49:16 +02:00
|
|
|
<label for="password" class="col-sm-3 control-label">// 'new_password' | tr //:</label>
|
|
|
|
<div class="col-sm-7">
|
2016-06-21 07:28:21 +02:00
|
|
|
<input type="password" class="form-control" id="password" ng-model="user.password" ng-change="vm.reset()" name="uPassword" required password>
|
|
|
|
<div class="error-message" ng-messages="vm.isOpen && form.$submitted && form.uPassword.$touched && form.uPassword.$error">
|
2016-05-31 12:49:16 +02:00
|
|
|
<span ng-message="required">// 'password_is_required' | tr //</span>
|
|
|
|
<span ng-message="password">// 'password_is_invalid' | tr //</span>
|
2016-05-09 12:53:40 +02:00
|
|
|
</div>
|
2016-05-31 12:49:16 +02:00
|
|
|
<p class="help-block small-size-fonts">// 'password_desc' | tr //</p>
|
2016-05-09 12:53:40 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
|
|
<span class="asterisk">*</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2016-05-31 12:49:16 +02:00
|
|
|
<label for="confirmPassword" class="col-sm-3 control-label">// 'confirm_password' | tr //:</label>
|
2016-05-09 12:53:40 +02:00
|
|
|
<div class="col-sm-7">
|
2016-05-31 12:49:16 +02:00
|
|
|
<input type="password" class="form-control" id="confirmPassword" ng-model="user.confirmPassword" ng-change="vm.reset()" name="uConfirmPassword" ng-model-options="{ updateOn: 'blur' }" compare-to="user.password">
|
2016-06-21 07:28:21 +02:00
|
|
|
<div class="error-message" ng-messages="vm.isOpen && form.$submitted && form.uConfirmPassword.$touched && form.uConfirmPassword.$error">
|
2016-05-31 12:49:16 +02:00
|
|
|
<span ng-message="compareTo">// 'password_does_not_match' | tr //</span>
|
2016-05-09 12:53:40 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-31 12:49:16 +02:00
|
|
|
<div class="col-sm-2">
|
|
|
|
<span class="asterisk">*</span>
|
2016-05-09 12:53:40 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-31 12:49:16 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-md-offset-7 col-md-10">
|
2016-06-21 12:42:53 +02:00
|
|
|
<input type="submit" class="btn btn-primary" ng-click="vm.updateUser(user)" value="// 'save' | tr //">
|
2016-06-21 07:28:21 +02:00
|
|
|
<input type="button" class="btn btn-default" ng-click="vm.cancel(form)" value="// 'cancel' | tr //">
|
2016-05-09 19:48:05 +02:00
|
|
|
</div>
|
2016-05-31 12:49:16 +02:00
|
|
|
</div>
|
|
|
|
<div class="error-message">
|
|
|
|
<span ng-show="vm.hasError">// vm.errorMessage | tr //</span>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2016-05-09 12:53:40 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|