Source

nx-web / nxweb / apps / admin / html / partials / user.html

Full commit
<form name="form" novalidate>

<table>

<tr>
  <td>User Id:</td>
  <td><input type="text" ng-model="fuser.uid" required/></td>
  <td><p ng-hide="fuser.uid">Required</p></td>
</tr>

<tr>
  <td>Password:</td>
  <td><input type="password" ng-model="fuser.pwd" required /></td>
  <td><p ng-hide="fuser.pwd">Required</p></td>
</tr>

<tr>
  <td>Confirm Password:</td>
  <td><input type="password" ng-model="fuser.pwdcheck" required /></td>
  <td><p ng-show="fuser.pwd!=fuser.pwdcheck">Password doesn't match</p></td>
</tr>

<tr>
  <td>Groups:</td><td>
    <select multiple ng-model="fuser.groups" required>
      <option ng-repeat="group in groups">{{group}}</option>
    </select>
  </td>
  <td><p ng-hide="fuser.groups">Required</p></td>
</tr>


</table>
<button ng-click="update(fuser)"  ng-disabled="form.$invalid || fuser.pwd!=fuser.pwdcheck || !fuser.groups  ">Save</button>

</form>
<a href="#/users">Back</a>
<p ng-show=message> {{message}} </p>