More work on displaying and editing an LDAP entry

This commit is contained in:
2023-04-02 22:07:15 +10:00
parent d6f833f6eb
commit 4fd51abcb1
25 changed files with 194 additions and 91 deletions

View File

@@ -144,16 +144,6 @@ class Attribute
};
}
/**
* Determine how we render this attribute's value
*
* @return string
*/
public function __toString(): string
{
return $this->values->join('<br>');
}
/**
* Return the hints about this attribute, ie: RDN, Required, etc
*
@@ -182,7 +172,13 @@ class Attribute
return $result->toArray();
}
public function render(bool $edit): View
/**
* Display the attribute value
*
* @param bool $edit
* @return View
*/
public function render(bool $edit=FALSE): View
{
return view('components.attribute')
->with('edit',$edit)