<?php
$response = $this->response;
?>
<h1>Výpis plánovacích manažerů</h1>
<p>
	Projekt: <a href="/project/get/<?php echo $this->project_id; ?>.html"><?php echo $this->project_id?></a>
</p>
<form action="/plan/manager/<?php echo $this->project_id; ?>.html" method="post">
	<table>
		<thead>
			<tr>
				<th>
				Uživatel
				</th>
				<th>
				Používat
				</th>
			</tr>
		</thead>
		<tbody>
		<?php 
		foreach ($response["user"] as $user) {
			$obj = $user->findParentRow("Application_Model_Users", "user");
			?>
			<tr>
				<td>
				<a href="/user/get/<?php echo $obj->id; ?>.html"><?php echo $obj->username; ?></a>
				</td>
				<td>
				<?php echo $this->formCheckbox("user[]", $obj->id, array("checked" => "checked")); ?>
				</td>
			</tr>
			<?php 
		}
		?>
		</tbody>
	</table>
	<h2>Přidat uživatele</h2>
	<p>
		Identifikační číslo: <input type="text" name="user[]" />
	</p>
	<p>
		<?php echo $this->formSubmit("submit", "Uložit"); ?>
	</p>
</form>