summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/client
diff options
context:
space:
mode:
authorSimon2011-03-16 14:42:40 +0100
committerSimon2011-03-16 14:42:40 +0100
commit29224a1ccc162e457589210168c38529e81a572d (patch)
treef049b58ed09cd4bd9de2e3fe882593b75b16cae4 /application/modules/user/views/scripts/client
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-29224a1ccc162e457589210168c38529e81a572d.tar.gz
pbs2-29224a1ccc162e457589210168c38529e81a572d.tar.xz
pbs2-29224a1ccc162e457589210168c38529e81a572d.zip
Helper initialisiert, ClientController geadded
Diffstat (limited to 'application/modules/user/views/scripts/client')
-rw-r--r--application/modules/user/views/scripts/client/index.phtml42
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;?>