<?php 
$response = $this->response;
$user = $response["user"];
?>
<h1>Uživatel <?php echo $user->username; ?></h1>
<p>
	Uživatelské jméno: <strong><?php echo $user->username; ?></strong>
</p>
<p>
	E-Mailová adresa: <strong><?php echo $user->email; ?></strong>
</p>
<p>
	Domovský adresář: <strong><a href="/directory/get/<?php echo $user->root_directory_id; ?>.html"># <?php echo $user->root_directory_id; ?></a></strong>
</p>
<h2>Role uživatele</h2>
<p>
	<ul>
		<?php 
		foreach ($response["roles"] as $role) {
			?>
			<li><?php echo $role->role_name; ?></li>
			<?php 
		}
		?>
	</ul>
</p>
<h2>Sklupiny uživatele</h2>
<p>
	<ul>
		<?php 
		foreach ($response["groups"] as $group) {
			?>
			<li><?php echo $group->group_name; ?></li>
			<?php 
		}
		?>
	</ul>
</p>