Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
150aa37cc1 | |||
8c02d4f827 | |||
4f207e6ed5 | |||
4c7250df42 |
4 changed files with 41 additions and 41 deletions
|
@ -3,8 +3,8 @@
|
|||
{{define "body"}}
|
||||
|
||||
<div class="d-flex">
|
||||
<h4>Explorateur LDAP</h4>
|
||||
<a class="ml-auto btn btn-info" href="/">Menu principal</a>
|
||||
<h4>LDAP-Explorer</h4>
|
||||
<a class="ml-auto btn btn-info" href="/">Main Menu</a>
|
||||
</div>
|
||||
|
||||
<div class="mt-4">
|
||||
|
@ -38,25 +38,25 @@
|
|||
|
||||
{{if .CanAddChild}}
|
||||
<div class="mt-2">
|
||||
<a class="btn btn-sm btn-success" href="/admin/create/user/{{.DN}}">+utilisateur</a>
|
||||
<a class="ml-4 btn btn-sm btn-success" href="/admin/create/group/{{.DN}}">+groupe</a>
|
||||
<a class="btn btn-sm btn-success" href="/admin/create/user/{{.DN}}">+user</a>
|
||||
<a class="ml-4 btn btn-sm btn-success" href="/admin/create/group/{{.DN}}">+group</a>
|
||||
<a class="ml-4 btn btn-sm btn-success" href="/admin/create/ou/{{.DN}}">+ou</a>
|
||||
<a class="ml-4 btn btn-sm btn-success" href="/admin/create/generic/{{.DN}}">+objet</a>
|
||||
<a class="ml-4 btn btn-sm btn-success" href="/admin/create/generic/{{.DN}}">+object</a>
|
||||
</div>
|
||||
<hr class="mt-4" />
|
||||
{{end}}
|
||||
|
||||
{{if .Success}}
|
||||
<div class="alert alert-success mt-2">Modification enregistrée.</div>
|
||||
<div class="alert alert-success mt-2">Modifications have been saved.</div>
|
||||
{{end}}
|
||||
{{if .Error}}
|
||||
<div class="alert alert-danger mt-2">
|
||||
Impossible d'effectuer la modification.
|
||||
Impossible to execute the requested change.
|
||||
<div style="font-size: 0.8em">{{.Error}}</div>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<h5>Attributs</h5>
|
||||
<h5>Attributes</h5>
|
||||
<div class="container">
|
||||
{{range $key, $value := .Props}}
|
||||
{{if $value.Editable}}
|
||||
|
@ -78,7 +78,7 @@
|
|||
|
||||
<div class="col-md-1">
|
||||
{{if $value.Deletable}}
|
||||
<form method="POST" onsubmit="return confirm('Supprimer cet attribut ?');">
|
||||
<form method="POST" onsubmit="return confirm('Do you really want to delete this attribute ?');">
|
||||
<input type="hidden" name="action" value="delete" />
|
||||
<input type="hidden" name="attr" value="{{$key}}" />
|
||||
<input type="submit" value="Suppr." class="form-control btn btn-danger btn-sm" />
|
||||
|
@ -104,11 +104,11 @@
|
|||
<div class="row mt-4">
|
||||
<div class="col-md-3">
|
||||
<input type="hidden" name="action" value="add" />
|
||||
<input class="form-control" type="text" name="attr" placeholder="Ajouter un attribut..." />
|
||||
<input class="form-control" type="text" name="attr" placeholder="Add an attribute..." />
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<div class="form-row">
|
||||
<textarea name="values" placeholder="Valeur(s)..." rows="2" class="form-control col-md-9"></textarea>
|
||||
<textarea name="values" placeholder="Value(s)..." rows="2" class="form-control col-md-9"></textarea>
|
||||
<div class="col-md-3">
|
||||
<input type="submit" value="Ajouter" class="form-control btn btn-success" />
|
||||
</div>
|
||||
|
@ -120,7 +120,7 @@
|
|||
|
||||
{{if .HasMembers}}
|
||||
<hr class="mt-4" />
|
||||
<h5 class="mt-4">Membres</h5>
|
||||
<h5 class="mt-4">Members</h5>
|
||||
<div class="container">
|
||||
{{range .Members}}
|
||||
<div class="row mt-4">
|
||||
|
@ -131,7 +131,7 @@
|
|||
<a href="/admin/ldap/{{.DN}}">{{.DN}}</a>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<form method="POST" onsubmit="return confirm('Supprimer du groupe ?');">
|
||||
<form method="POST" onsubmit="return confirm('Remove from Group ?');">
|
||||
<input type="hidden" name="action" value="delete-member" />
|
||||
<input type="hidden" name="member" value="{{.DN}}" />
|
||||
<input type="submit" value="Supprimer" class="form-control btn btn-danger btn-sm" />
|
||||
|
@ -143,10 +143,10 @@
|
|||
<input type="hidden" name="action" value="add" />
|
||||
<input type="hidden" name="attr" value="member" />
|
||||
<div class="row mt-4">
|
||||
<div class="col-md-3"><strong>Ajouter au groupe :</strong>
|
||||
<div class="col-md-3"><strong>Add to Group :</strong>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<input class="form-control" type="text" list="users" name="values" placeholder="Utilisateur..." />
|
||||
<input class="form-control" type="text" list="users" name="values" placeholder="User..." />
|
||||
<datalist id="users">
|
||||
{{range .PossibleNewMembers}}
|
||||
<option value="{{.DN}}">{{.Name}}</option>
|
||||
|
@ -154,7 +154,7 @@
|
|||
</datalist>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<input type="submit" value="Ajouter" class="form-control btn btn-success btn-sm" />
|
||||
<input type="submit" value="Add" class="form-control btn btn-success btn-sm" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -162,7 +162,7 @@
|
|||
|
||||
{{if .HasGroups}}
|
||||
<hr class="mt-4" />
|
||||
<h5 class="mt-4">Membre de</h5>
|
||||
<h5 class="mt-4">Member of</h5>
|
||||
<div class="container">
|
||||
{{range .Groups}}
|
||||
<div class="row mt-4">
|
||||
|
@ -173,7 +173,7 @@
|
|||
<a href="/admin/ldap/{{.DN}}">{{.DN}}</a>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<form method="POST" onsubmit="return confirm('Supprimer du groupe ?');">
|
||||
<form method="POST" onsubmit="return confirm('Delete from Group ?');">
|
||||
<input type="hidden" name="action" value="delete-from-group" />
|
||||
<input type="hidden" name="group" value="{{.DN}}" />
|
||||
<input type="submit" value="Supprimer" class="form-control btn btn-danger btn-sm" />
|
||||
|
@ -184,10 +184,10 @@
|
|||
<form method="POST">
|
||||
<input type="hidden" name="action" value="add-to-group" />
|
||||
<div class="row mt-4">
|
||||
<div class="col-md-3"><strong>Nouveau groupe :</strong>
|
||||
<div class="col-md-3"><strong>New group :</strong>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<input class="form-control" list="groups" type="text" name="group" placeholder="Groupe..." />
|
||||
<input class="form-control" list="groups" type="text" name="group" placeholder="Group..." />
|
||||
<datalist id="groups">
|
||||
{{range .PossibleNewGroups}}
|
||||
<option value="{{.DN}}">{{.Name}}</option>
|
||||
|
@ -195,7 +195,7 @@
|
|||
</datalist>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<input type="submit" value="Ajouter" class="form-control btn btn-success btn-sm" />
|
||||
<input type="submit" value="Add" class="form-control btn btn-success btn-sm" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -203,15 +203,15 @@
|
|||
|
||||
{{if .CanDelete}}
|
||||
<hr class="mt-4">
|
||||
<h5 class="mt-4">Supprimer l'objet</h5>
|
||||
<h5 class="mt-4">Delete the Object</h5>
|
||||
<div class="alert alert-danger">
|
||||
Attention, cette opération est irrévocable !
|
||||
Attention, this action is irreversible !
|
||||
</div>
|
||||
<form method="POST" onsubmit="return confirm('Supprimer cet objet DÉFINITIVEMENT ?');">
|
||||
<form method="POST" onsubmit="return confirm('Do you REALLY want to delete this object forever ?');">
|
||||
<div class="form-row">
|
||||
<input type="hidden" name="action" value="delete-object" />
|
||||
<div class="col-sm-5"></div>
|
||||
<input type="submit" value="Supprimer l'objet" class="form-control btn btn-danger col-sm-2" />
|
||||
<input type="submit" value="DELETE" class="form-control btn btn-danger col-sm-2" />
|
||||
<div class="col-sm-5"></div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
{{define "body"}}
|
||||
<div class="d-flex">
|
||||
<h4>Annuaire</h4>
|
||||
<a class="ml-auto btn btn-info" href="/">Menu principal</a>
|
||||
<h4>Directory</h4>
|
||||
<a class="ml-auto btn btn-info" href="/">Main Menu</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
|||
<form>
|
||||
<div class="form-group form-row">
|
||||
<div class="col-sm-2"> </div>
|
||||
<label for="search" class="col-sm-2 col-form-label">Rechercher :</label>
|
||||
<label for="search" class="col-sm-2 col-form-label">Search for :</label>
|
||||
<input class="form-control col-sm-4" id="search" name="search" type="text" onkeyup="searchDirectory()" size="20">
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -19,5 +19,5 @@
|
|||
</div>
|
||||
{{end}}
|
||||
{{else}}
|
||||
Aucun résultat.
|
||||
No results found.
|
||||
{{end}}
|
||||
|
|
|
@ -2,32 +2,32 @@
|
|||
|
||||
{{define "body"}}
|
||||
<div class="alert alert-info">
|
||||
Bienvenue, <strong>{{ .Login.WelcomeName }}</strong> !
|
||||
Welcome, <strong>{{ .Login.WelcomeName }}</strong> !
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<a class="ml-auto btn btn-sm btn-dark" href="/logout">Se déconnecter</a>
|
||||
<a class="ml-auto btn btn-sm btn-dark" href="/logout">Disconnect</a>
|
||||
</div>
|
||||
<div class="mt-3"></div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
Mon compte
|
||||
My Account
|
||||
</div>
|
||||
<div class="list-group list-group-flush">
|
||||
<a class="list-group-item list-group-item-action" href="/profile">Modifier mon profil</a>
|
||||
<a class="list-group-item list-group-item-action" href="/passwd">Modifier mon mot de passe</a>
|
||||
<a class="list-group-item list-group-item-action" href="/directory">Annuaire</a>
|
||||
<a class="list-group-item list-group-item-action" href="/profile">Modify My Profile</a>
|
||||
<a class="list-group-item list-group-item-action" href="/passwd">Modify My Password</a>
|
||||
<a class="list-group-item list-group-item-action" href="/directory">Directory</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{if .Login.CanInvite}}
|
||||
<div class="card mt-3">
|
||||
<div class="card-header">
|
||||
Inviter des gens sur Deuxfleurs
|
||||
Invite People To Deuxfleurs
|
||||
</div>
|
||||
<div class="list-group list-group-flush">
|
||||
<a class="list-group-item list-group-item-action" href="/invite/send_code">Envoyer un code d'invitation</a>
|
||||
<a class="list-group-item list-group-item-action" href="/invite/new_account">Créer un nouveau compte directement</a>
|
||||
<a class="list-group-item list-group-item-action" href="/invite/send_code">Send an invite code</a>
|
||||
<a class="list-group-item list-group-item-action" href="/invite/new_account">Create a new Account</a>
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
|
@ -38,9 +38,9 @@
|
|||
Administration
|
||||
</div>
|
||||
<div class="list-group list-group-flush">
|
||||
<a class="list-group-item list-group-item-action" href="/admin/users">Utilisateurs</a>
|
||||
<a class="list-group-item list-group-item-action" href="/admin/groups">Groupes</a>
|
||||
<a class="list-group-item list-group-item-action" href="/admin/ldap/{{.BaseDN}}">Explorateur LDAP</a>
|
||||
<a class="list-group-item list-group-item-action" href="/admin/users">Users</a>
|
||||
<a class="list-group-item list-group-item-action" href="/admin/groups">Groups</a>
|
||||
<a class="list-group-item list-group-item-action" href="/admin/ldap/{{.BaseDN}}">Explore the Directory</a>
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
|
|
Loading…
Reference in a new issue