Commit 9c483d0d authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4757 Removed confusing padlock icon next to edited object dn

parent c3a8ff81
......@@ -251,9 +251,7 @@ class management
$plIcon = get_template_path($plIcon);
}
if (get_object_info() != '') {
$display = print_header($plIcon, _($plTitle),
'<img alt="" class="center" src="geticon.php?context=status&amp;icon=object-locked&amp;size=16"/>'.
LDAP::fix(get_object_info()));
$display = print_header($plIcon, _($plTitle), LDAP::fix(get_object_info()));
} else {
$display = print_header($plIcon, _($plTitle));
}
......
......@@ -922,20 +922,16 @@ class simplePlugin extends plugin
($tabs || (!$account->dialog && $account->is_account)) &&
empty($lock_msg)) {
$display .= '<p class="plugbottom">';
$info = $entry_dn.'&nbsp;';
/* Are we in edit mode? */
if (session::is_set('edit')) {
$display .= '<input type="submit" name="edit_finish" style="width:80px" value="'.msgPool::okButton().'"/>'."\n";
$display .= "&nbsp;";
$display .= '&nbsp;';
$display .= '<input type="submit" name="edit_cancel" value="'.msgPool::cancelButton().'"/>'."\n";
$info = '<img class="center" alt="locked" src="geticon.php?context=status&amp;icon=object-locked&amp;size=16"/> '.
$entry_dn."&nbsp;";
} else {
$info = '<img class="center" alt="unlocked" src="geticon.php?context=status&amp;icon=object-unlocked&amp;size=16"/> '.
$entry_dn.'&nbsp;';
/* Only display edit button if there is at least one attribute editable */
if (preg_match("/r/", $ui->get_permissions($entry_dn, "$plCategory/$classname"))) {
if (preg_match('/r/', $ui->get_permissions($entry_dn, "$plCategory/$classname"))) {
$info .= '<div style="display:inline-block" class="optional"><img class="center" alt="information" '.
'src="geticon.php?context=status&amp;icon=dialog-information&amp;size=16"> '.
msgPool::clickEditToChange().'</div>';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment