Skip to content
Snippets Groups Projects
Commit b499bfc1 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Merge pull request #255 from splitbrain/usermanager_bug

Usermanager bug fix
parents 7c054657 45c19902
No related branches found
No related tags found
No related merge requests found
......@@ -270,7 +270,9 @@ class admin_plugin_usermanager extends DokuWiki_Admin_Plugin {
$this->_htmlInputField($cmd."_usergroups","usergroups",$this->lang["user_groups"],$groups,$this->_auth->canDo("modGroups"),$indent+6);
if ($this->_auth->canDo("modPass")) {
$notes[] = $this->lang['note_pass'];
if ($cmd == 'add') {
$notes[] = $this->lang['note_pass'];
}
if ($user) {
$notes[] = $this->lang['note_notify'];
}
......@@ -296,11 +298,15 @@ class admin_plugin_usermanager extends DokuWiki_Admin_Plugin {
ptln(" </tr>",$indent);
ptln(" </tbody>",$indent);
ptln(" </table>",$indent);
ptln(" </div>",$indent);
foreach ($notes as $note)
ptln("<div class=\"fn\">".$note."</div>",$indent);
if ($notes) {
ptln(" <ul class=\"notes\">");
foreach ($notes as $note) {
ptln(" <li><span class=\"li\">".$note."</span></li>",$indent);
}
ptln(" </ul>");
}
ptln(" </div>",$indent);
ptln("</form>",$indent);
}
......
......@@ -13,6 +13,10 @@
#user__manager table {
margin-bottom: 1em;
}
#user__manager ul.notes {
padding-left: 0;
padding-right: 1.4em;
}
#user__manager input.button[disabled] {
color: #ccc!important;
border-color: #ccc!important;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment