diff options
| author | Simon | 2011-04-06 20:32:47 +0200 |
|---|---|---|
| committer | Simon | 2011-04-06 20:32:47 +0200 |
| commit | 7008750fafc7f0c4c0b31f0a53f1ffaeb8f7e36a (patch) | |
| tree | 188dfe3dda0964d485ac841a5e72612129a5176e /application/modules/user/views/scripts/bootmenu/index.phtml | |
| parent | Layout/Ansicht geändert, BootIso, BootOs,Client,Config,Preboot & Session (diff) | |
| download | pbs2-7008750fafc7f0c4c0b31f0a53f1ffaeb8f7e36a.tar.gz pbs2-7008750fafc7f0c4c0b31f0a53f1ffaeb8f7e36a.tar.xz pbs2-7008750fafc7f0c4c0b31f0a53f1ffaeb8f7e36a.zip | |
neues Design eingebettet, bei Role, Person &Group muss noch etwas überlegt werden
Diffstat (limited to 'application/modules/user/views/scripts/bootmenu/index.phtml')
| -rw-r--r-- | application/modules/user/views/scripts/bootmenu/index.phtml | 191 |
1 files changed, 94 insertions, 97 deletions
diff --git a/application/modules/user/views/scripts/bootmenu/index.phtml b/application/modules/user/views/scripts/bootmenu/index.phtml index 01842c1..c51a3ed 100644 --- a/application/modules/user/views/scripts/bootmenu/index.phtml +++ b/application/modules/user/views/scripts/bootmenu/index.phtml @@ -5,21 +5,22 @@ 'onclick' => 'self.location="/user/bootmenu/createbootmenu/page/'.$this->page.'"', 'class' => 'addbutton'))?> -<table> - <tr> - <th>ID <span class='code'>bootmenuID</span></th> - <th>Title <span class='code'>title</span></th> - <th>Changed <span class='code'>created</span></th> - <th colspan=3>Actions</th> - </tr> - <?php if(count($this->bootmenulist)==0) - echo "</table> There are no BootMenus to display." ?> - <?php foreach ($this->bootmenulist as $bootmenu): ?> - <tr class=entry> - <td><?php echo $this->escape($bootmenu->getID()); ?></td> - <td><?php echo $this->escape($bootmenu->getTitle()); ?></td> - <td><?php echo $this->escape($bootmenu->getCreated()); ?></td> - <td class='action'><a href="<?php echo $this->url( +<div class='searchvars'> + <div class='head'>Available searchfilter:</div> + <div class='code'>bootmenuID</div> + <div class='code'>title</div> + <div class='code'>created</div> +</div> + +<div class='listelement'> + <?php if(count($this->bootmenulist)==0) + echo "There are no BootMenus to display." ?> + <?php foreach ($this->bootmenulist as $bootmenu): ?> + <div class='element'> + <div class='number'><?php echo $this->escape($bootmenu->getID()); ?></div> + <div class='content'> + <div class='actions'> + <a href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'bootmenu', @@ -28,8 +29,8 @@ 'page' => $this->page ), 'default', - true, false) ?>"><img src='/media/img/edit.png' alt='Edit Bootmenu'/></a></td> - <td class='action'><a href="<?php echo $this->url( + true, false) ?>"><img src='/media/img/edit.png' alt='Edit Bootmenu'/></a> + <a href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'bootmenu', @@ -38,8 +39,8 @@ 'page' => $this->page ), 'default', - true) ?>"><img src='/media/img/delete.png' alt='Delete Bootmenu'/></a></td> - <td class='action'><a href="<?php echo $this->url( + true) ?>"><img src='/media/img/delete.png' alt='Delete Bootmenu'/></a> + <a href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'bootmenu', @@ -49,83 +50,79 @@ 'page' => $this->page ), 'default', - true) ?>"><img src='/media/img/add.png' alt='Add Entry'/></a></td> - </tr> - -<?php if(count($this->bootmenuentrylist[$bootmenu->getID()]) > 0):?> - <tr class=detail> - <td class=arrowtop>↳</td> - <td colspan=7> - <table> - <tr> - <th></th> - <th>ID</th> - <th>Title</th> - <th>BootOS</th> - <th>kcl</th> - <th>kclappend</th> - <th>Config</th> -<!-- <th>Position</th>--> - <th colspan=2>Actions</th> - - </tr> - <?php foreach ($this->bootmenuentrylist[$bootmenu->getID()] as $bootmenuentry): ?> - <tr> - <td class='action'> - <a href="<?php echo $this->url( - array( - - 'controller' => 'resource', - 'action' => 'getbootmenuentry', - 'bootmenuentryID' => $bootmenuentry->getID(), - 'page' => $this->page - ), - 'default', - true, false) ?>"><img src='/media/img/play.gif'> - </a> - </td> - <td><?php echo $this->escape($bootmenuentry->getID()); ?></td> - <td><?php echo $this->escape($bootmenuentry->getTitle()); ?></td> - <td><?php echo $this->escape($bootmenuentry->getBootosID()) ?></td> - <td><?php echo $this->escape($bootmenuentry->getKcl()); ?></td> - <td><?php echo $this->escape($bootmenuentry->getKclappend()); ?></td> - <td><?php echo $this->escape($bootmenuentry->getConfigID()) ?></td><!-- - <td><?php echo $this->escape($bootmenuentry->getOrder() + 1); ?></td> - --><td class='action'><a href="<?php echo $this->url( - array( - 'module' => 'user', - 'controller' => 'bootmenu', - 'action' => 'editbootmenuentry', - 'bootmenuentryID' => $bootmenuentry->getID(), - 'maxorder' => count($this->bootmenuentrylist[$bootmenu->getID()]), - 'oldorder' => $bootmenuentry->getOrder(), - 'page' => $this->page - ), - 'default', - true, false) ?>"><img src='/media/img/edit.png' alt='Edit Entry'/></a></td> - <td class='action'><a href="<?php echo $this->url( - array( - 'module' => 'user', - 'controller' => 'bootmenu', - 'action' => 'removebootmenuentry', - 'bootmenuentryID' => $bootmenuentry->getID(), - 'page' => $this->page - ), - 'default', - true) ?>"><img src='/media/img/delete.png' alt='Remove Entry'/></a></td> - </tr> + true) ?>"><img src='/media/img/add.png' alt='Add Entry'/></a> + </div> + <div class='title'><?php echo $this->escape($bootmenu->getTitle()); ?></div> + <div class='subtitle'><?php echo count($this->bootmenuentrylist[$bootmenu->getID()]);?> Entrys - <?php echo $this->escape($bootmenu->getCreated()); ?></div> + <div class='details dispnone'> + <?php foreach ($this->bootmenuentrylist[$bootmenu->getID()] as $bootmenuentry): ?> + <div class='element'> + <div class='number'><?php echo $this->escape($bootmenuentry->getID()); ?></div> + <div class='content'> + <div class='actions'> + <a href="<?php echo $this->url( + array( + 'controller' => 'resource', + 'action' => 'getbootmenuentry', + 'bootmenuentryID' => $bootmenuentry->getID(), + 'page' => $this->page + ), + 'default', + true, false) ?>"><img src='/media/img/play.gif'></a> + <a href="<?php echo $this->url( + array( + 'module' => 'user', + 'controller' => 'bootmenu', + 'action' => 'editbootmenuentry', + 'bootmenuentryID' => $bootmenuentry->getID(), + 'maxorder' => count($this->bootmenuentrylist[$bootmenu->getID()]), + 'oldorder' => $bootmenuentry->getOrder(), + 'page' => $this->page + ), + 'default', + true, false) ?>"><img src='/media/img/edit.png' alt='Edit Entry'/></a> + <a href="<?php echo $this->url( + array( + 'module' => 'user', + 'controller' => 'bootmenu', + 'action' => 'removebootmenuentry', + 'bootmenuentryID' => $bootmenuentry->getID(), + 'page' => $this->page + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Remove Entry'/></a> + </div> + <div class='title'><?php echo $this->escape($bootmenuentry->getTitle()); ?></div> + <div class='subtitle'><?php echo $this->escape($bootmenuentry->getBootosID()) ?></div> + <div class='details dispnone'> + <label>KCL</label> + <div class='item'><?php echo $this->escape($bootmenuentry->getKcl()); ?></div> + <label>KCL-Append</label> + <div class='item'><?php echo $this->escape($bootmenuentry->getKclappend()); ?></div> + <label>ConfigID</label> + <div class='item'><?php echo $this->escape($bootmenuentry->getConfigID()) ?></div> + </div> + </div> + <div class='clear'></div> + </div> + <?php endforeach; ?> + </div> + </div> + <div class='clear'></div> + </div> <?php endforeach; ?> - </table> - </td> - </tr> - <?php endif; ?> - <?php endforeach; ?> -</table> - <?php echo $this->pagination; ?> - - - - - - +</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).siblings('.dispnone').toggle(); + }); + } +}); +</script> |
