summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/client
diff options
context:
space:
mode:
authorSimon2011-04-06 17:36:56 +0200
committerSimon2011-04-06 17:36:56 +0200
commit6320fa9c2e21a8a5b87876e3e1fd65f0de402c45 (patch)
treed7a7018eb8663fe178cdb5d6e497b55c39b24adf /application/modules/user/views/scripts/client
parentsuche gefixt (diff)
downloadpbs2-6320fa9c2e21a8a5b87876e3e1fd65f0de402c45.tar.gz
pbs2-6320fa9c2e21a8a5b87876e3e1fd65f0de402c45.tar.xz
pbs2-6320fa9c2e21a8a5b87876e3e1fd65f0de402c45.zip
Layout/Ansicht geändert, BootIso, BootOs,Client,Config,Preboot & Session
Diffstat (limited to 'application/modules/user/views/scripts/client')
-rw-r--r--application/modules/user/views/scripts/client/index.phtml66
1 files changed, 45 insertions, 21 deletions
diff --git a/application/modules/user/views/scripts/client/index.phtml b/application/modules/user/views/scripts/client/index.phtml
index 95bf7a2..6b7c43f 100644
--- a/application/modules/user/views/scripts/client/index.phtml
+++ b/application/modules/user/views/scripts/client/index.phtml
@@ -4,19 +4,22 @@
<?php echo $this->formButton('createbootos', 'Create Client', array(
'onclick' => 'self.location="/user/client/addclient/page/'.$this->page.'"',
'class' => 'addbutton'))?>
+<div class='searchvars'>
+ <div class='head'>Available searchfilter:</div>
+ <div class='code'>clientID</div>
+ <div class='code'>macadress</div>
+ <div class='code'>hardwarehash</div>
+</div>
-<?php if ($this->clients): ?>
- <table>
- <tr>
- <th>MAC <span class='code'>macadress</span></th>
- <th>Hardwarehash <span class='code'>hardwarehash</span></th>
- <th colspan=2>Actions</th>
- </tr>
+<div class='listelement'>
+ <?php if(count($this->clients)==0)
+ echo "There are no Clients to display." ?>
<?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(
+ <div class='element'>
+ <div class='number'><?php echo $this->escape($client['clientID']) ?></div>
+ <div class='content'>
+ <div class='actions'>
+ <a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'client',
@@ -25,8 +28,8 @@
'page' => $this->page
),
'default',
- true) ?>"><img src='/media/img/edit.png' alt='Edit Client'/></a></td>
- <td class='action'><a href="<?php echo $this->url(
+ true) ?>"><img src='/media/img/edit.png' alt='Edit Client'/></a>
+ <a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'client',
@@ -35,11 +38,32 @@
'page' => $this->page
),
'default',
- true) ?>"><img src='/media/img/delete.png' alt='Delete Client'/></a></td>
- </tr>
- <?php endforeach ?>
- </table>
- <?php echo $this->pagination; ?>
-<?php else: ?>
- <p>There are no clients to display.</p>
-<?php endif;?>
+ true) ?>"><img src='/media/img/delete.png' alt='Delete Client'/></a>
+ </div>
+ <!--<div class='title'>Title</div>-->
+ <!--<div class='subtitle'>Subtitle</div>-->
+ <div class='details'>
+ <label>MacAdress</label>
+ <div class='item'><?php echo $this->escape($client['macadress']) ?></div>
+ <label>Hardwarehash</label>
+ <div class='item'><?php echo $this->escape($client['hardwarehash']) ?></div>
+ </div>
+ </div>
+ <div class='clear'></div>
+ </div>
+ <?php endforeach ?>
+</div>
+
+<?php echo $this->pagination; ?>
+
+<script>
+$(document).ready(function(){
+ if($('.element').find('.dispnone').length >= 1){
+ $(this).find('.title').css('cursor','pointer');
+
+ $('.title').click(function(){
+ $(this).parent().find('.dispnone').toggle();
+ });
+ }
+});
+</script>