diff options
| author | Simon | 2011-03-16 14:42:40 +0100 |
|---|---|---|
| committer | Simon | 2011-03-16 14:42:40 +0100 |
| commit | 29224a1ccc162e457589210168c38529e81a572d (patch) | |
| tree | f049b58ed09cd4bd9de2e3fe882593b75b16cae4 /application/modules/user/views/scripts/client/index.phtml | |
| parent | Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-29224a1ccc162e457589210168c38529e81a572d.tar.gz pbs2-29224a1ccc162e457589210168c38529e81a572d.tar.xz pbs2-29224a1ccc162e457589210168c38529e81a572d.zip | |
Helper initialisiert, ClientController geadded
Diffstat (limited to 'application/modules/user/views/scripts/client/index.phtml')
| -rw-r--r-- | application/modules/user/views/scripts/client/index.phtml | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/application/modules/user/views/scripts/client/index.phtml b/application/modules/user/views/scripts/client/index.phtml index 4f0e6ec..e79b208 100644 --- a/application/modules/user/views/scripts/client/index.phtml +++ b/application/modules/user/views/scripts/client/index.phtml @@ -1 +1,41 @@ -<br /><br /><center>View script for controller <b>Client</b> and script/action name <b>index</b></center>
\ No newline at end of file +<h1>Clients</h1> +<?php echo $this->formButton('createbootos', 'Create Client', array( + 'onclick' => 'self.location="/user/client/addclient"', + 'class' => 'addbutton'))?> + +<?php if ($this->clients): ?> + <table> + <tr> + <th>MAC</th> + <th>Hardwarehash</th> + <th colspan=2>Actions</th> + </tr> + <?php foreach ($this->clients as $client): ?> + <tr class=entry> + <td class='monospace'><?php echo $this->escape($client['macadress']) ?></td> + <td class='monospace'><?php echo $this->escape($client['hardwarehash']) ?></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'module' => 'user', + 'controller' => 'client', + 'action' => 'editclient', + 'clientID' => $client['clientID'] + ), + 'default', + true) ?>"><img src='/media/img/edit.png' alt='Edit Client'/></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'module' => 'user', + 'controller' => 'client', + 'action' => 'removeclient', + 'clientID' => $client['clientID'] + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Delete Client'/></a></td> + </tr> + <?php endforeach ?> + </table> + +<?php else: ?> + <p>There are no clients to display.</p> +<?php endif;?> |
