mirror of
https://github.com/wheelybird/ldap-user-manager.git
synced 2025-02-23 16:09:21 +01:00
Change badges to buttons for list counts
This commit is contained in:
parent
4c7fbbc542
commit
5a96630845
@ -240,7 +240,7 @@ Other services or software might use the *Common Name* (`cn`) attribute, which i
|
|||||||
The account identifier is what uniquely identifies the account, so you can't create multiple accounts where the account identifier is the same.
|
The account identifier is what uniquely identifies the account, so you can't create multiple accounts where the account identifier is the same.
|
||||||
You should ensure your LDAP clients use the same account identifier attribute when authenticating users.
|
You should ensure your LDAP clients use the same account identifier attribute when authenticating users.
|
||||||
|
|
||||||
If you're using LDAP for server accounts then you'll find there are normally constraints on how many cahracters and the type of characters you're allowed to use. The user manager will validate user and group names against `USERNAME_REGEX`. If you don't need to be so strict then you can disable these checks by setting `ENFORCE_SAFE_SYSTEM_NAMES` to `FALSE`.
|
If you're using LDAP for server accounts then you'll find there are normally constraints on how many characters and the type of characters you're allowed to use. The user manager will validate user and group names against `USERNAME_REGEX`. If you don't need to be so strict then you can disable these checks by setting `ENFORCE_SAFE_SYSTEM_NAMES` to `FALSE`.
|
||||||
|
|
||||||
***
|
***
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ render_js_username_check();
|
|||||||
<div class="form-inline" id="new_group_div">
|
<div class="form-inline" id="new_group_div">
|
||||||
<form action="<?php print "${THIS_MODULE_PATH}"; ?>/show_group.php" method="post">
|
<form action="<?php print "${THIS_MODULE_PATH}"; ?>/show_group.php" method="post">
|
||||||
<input type="hidden" name="new_group">
|
<input type="hidden" name="new_group">
|
||||||
<span class="badge badge-secondary" style="font-size:1.9rem;"><?php print count($groups);?> group<?php if (count($groups) != 1) { print "s"; }?></span> <button id="show_new_group" class="form-control btn btn-default" type="button" onclick="show_new_group_form();">New group</button>
|
<button type="button" class="btn btn-light"><?php print count($groups);?> group<?php if (count($groups) != 1) { print "s"; }?></button> <button id="show_new_group" class="form-control btn btn-default" type="button" onclick="show_new_group_form();">New group</button>
|
||||||
<input type="text" class="form-control invisible" name="group_name" id="group_name" placeholder="Group name" onkeyup="check_entity_name_validity(document.getElementById('group_name').value,'new_group_div');"><button id="add_group" class="form-control btn btn-primary btn-sm invisible" type="submit">Add</button>
|
<input type="text" class="form-control invisible" name="group_name" id="group_name" placeholder="Group name" onkeyup="check_entity_name_validity(document.getElementById('group_name').value,'new_group_div');"><button id="add_group" class="form-control btn btn-primary btn-sm invisible" type="submit">Add</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -52,7 +52,7 @@ $people = ldap_get_user_list($ldap_connection);
|
|||||||
?>
|
?>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<form action="<?php print $THIS_MODULE_PATH; ?>/new_user.php" method="post">
|
<form action="<?php print $THIS_MODULE_PATH; ?>/new_user.php" method="post">
|
||||||
<span class="badge badge-secondary" style="font-size:1.9rem;"><?php print count($people);?> account<?php if (count($people) != 1) { print "s"; }?></span> <button id="add_group" class="btn btn-default" type="submit">New user</button>
|
<button type="button" class="btn btn-light"><?php print count($people);?> account<?php if (count($people) != 1) { print "s"; }?></button> <button id="add_group" class="btn btn-default" type="submit">New user</button>
|
||||||
</form>
|
</form>
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user