Fix notification and validation messages when creating and importing a profile.
This commit is contained in:
parent
0060c9a0c9
commit
7f89772c86
5 changed files with 32 additions and 25 deletions
|
|
@ -18,7 +18,7 @@
|
|||
<div ng-include="'views/includes/version.html'"></div>
|
||||
</div>
|
||||
<div class="box-setup">
|
||||
<h3 class="text-center" translate>Create Profile</h3>
|
||||
<h1>Create Profile</h1>
|
||||
<div class="box-notification" ng-show="error">
|
||||
<div class="box-icon error">
|
||||
<i class="fi-x size-24"></i>
|
||||
|
|
@ -28,15 +28,14 @@
|
|||
</span>
|
||||
</div>
|
||||
<form name="profileForm" ng-submit="createProfile(profileForm)" novalidate>
|
||||
<div class="row">
|
||||
<label class="left" for="insightLivenet">Email</label>
|
||||
<span translate class="has-error right size-12" ng-show="profileForm.email.$invalid &&
|
||||
!profileForm.email.$pristine || error">
|
||||
<div class="m5b text-right">
|
||||
<span translate class="has-error size-12" ng-show="profileForm.email.$invalid &&
|
||||
!profileForm.email.$pristine">
|
||||
<span class="icon-input"><i class="fi-x"></i></span>
|
||||
Not valid
|
||||
</span>
|
||||
<span class="icon-input right" ng-show="!profileForm.email.$invalid &&
|
||||
!profileForm.email.$pristine || error"><i class="fi-check"></i></span>
|
||||
<span class="icon-input" ng-show="!profileForm.email.$invalid &&
|
||||
!profileForm.email.$pristine"><i class="fi-check"></i></span>
|
||||
</div>
|
||||
<div class="input">
|
||||
<input type="email" ng-model="email" class="form-control fi-email"
|
||||
|
|
@ -44,31 +43,30 @@
|
|||
<i class="icon-email"></i>
|
||||
</div>
|
||||
|
||||
<label for="insightLivenet">Password</label>
|
||||
<div class="input">
|
||||
<input id="password" type="password" ng-model="$parent.password"
|
||||
class="form-control" name="password" placeholder="{{'Choose a password'|translate}}" check-strength="passwordStrength"
|
||||
tooltip-html-unsafe="Password strength: <b>{{passwordStrength}}</b><br/><span class='size-12'>Tip: Use lower and uppercase, numbers and symbols</span>" tooltip-trigger="focus" required tooltip-placement="right">
|
||||
tooltip-html-unsafe="Password strength: <b>{{passwordStrength}}</b><br/><span class='size-12'>Tip: Use lower and uppercase, numbers and symbols</span>" tooltip-trigger="focus" required tooltip-placement="top">
|
||||
<i class="icon-locked"></i>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<label class="left" for="insightLivenet">Confirm Password</label>
|
||||
<span translate class="has-error right size-12" ng-show="profileForm.repeatpassword.$dirty &&
|
||||
|
||||
<div class="m5b text-right">
|
||||
<span translate class="has-error size-12" ng-show="profileForm.repeatpassword.$dirty &&
|
||||
profileForm.repeatpassword.$invalid">
|
||||
<span class="icon-input"><i class="fi-x"></i></span>
|
||||
{{'Passwords must match'|translate}}
|
||||
</span>
|
||||
<span class="icon-input right" ng-show="profileForm.repeatpassword.$dirty &&
|
||||
<span class="icon-input" ng-show="profileForm.repeatpassword.$dirty &&
|
||||
!profileForm.repeatpassword.$invalid"><i class="fi-check"></i></span>
|
||||
</div>
|
||||
|
||||
<div class="input">
|
||||
<input type="password" ng-model="repeatpassword"
|
||||
class="input form-control" name="repeatpassword"
|
||||
placeholder="{{'Repeat password'|translate}}"
|
||||
match="password" required>
|
||||
<i class="icon-locked"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button translate type="submit" class="button primary radius expand m0"
|
||||
ng-disabled="profileForm.$invalid || loading">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue