Browse Source

nome-utente -> nome.utente

master
Zolfa 3 years ago
parent
commit
1afeda23b1
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      static/add.html
  2. +2
    -2
      static/add.js

+ 2
- 2
static/add.html View File

@ -40,9 +40,9 @@
</select> </select>
<div class="form-group"> <div class="form-group">
<label for="newUid">Username</label> <label for="newUid">Username</label>
<input class="form-control" type="username" id="newUid" ng-model="newUid" placeholder="nome-utente" aria-describedby="newUidHelp" required ng-readonly="startConfirm" ng-keyup="typingUser()" />
<input class="form-control" type="username" id="newUid" ng-model="newUid" placeholder="nome.utente" aria-describedby="newUidHelp" required ng-readonly="startConfirm" ng-keyup="typingUser()" />
<small id="newUidHelp" class="form-text text-muted"> <small id="newUidHelp" class="form-text text-muted">
Nome utente utilizzato per il login e per gli indirizzi <i>nome-utente</i><b>@lilik.it</b>.
Nome utente utilizzato per il login e per gli indirizzi <i>nome.utente</i><b>@lilik.it</b>.
</small> </small>
</div> </div>
<div class="form-group"> <div class="form-group">


+ 2
- 2
static/add.js View File

@ -38,8 +38,8 @@
$scope.newExtraGroups = []; $scope.newExtraGroups = [];
$scope.typingUser = function () { $scope.typingUser = function () {
$scope.newUid = $scope.newUid.toLowerCase().replace(' ', '-');
$scope.newCn = $scope.newUid.replace('-',' ').replace(/(^\w|\s\w)/g, m => m.toUpperCase());
$scope.newUid = $scope.newUid.toLowerCase().replace(' ', '.');
$scope.newCn = $scope.newUid.replace('.',' ').replace(/(^\w|\s\w)/g, m => m.toUpperCase());
}; };
$scope.notPrincipal = function (group) { $scope.notPrincipal = function (group) {


Loading…
Cancel
Save