diff options
| author | Simon | 2011-04-06 17:36:56 +0200 |
|---|---|---|
| committer | Simon | 2011-04-06 17:36:56 +0200 |
| commit | 6320fa9c2e21a8a5b87876e3e1fd65f0de402c45 (patch) | |
| tree | d7a7018eb8663fe178cdb5d6e497b55c39b24adf /application/modules/user/views/scripts/config/index.phtml | |
| parent | suche gefixt (diff) | |
| download | pbs2-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/config/index.phtml')
| -rw-r--r-- | application/modules/user/views/scripts/config/index.phtml | 79 |
1 files changed, 45 insertions, 34 deletions
diff --git a/application/modules/user/views/scripts/config/index.phtml b/application/modules/user/views/scripts/config/index.phtml index 0b62f7e..aa68975 100644 --- a/application/modules/user/views/scripts/config/index.phtml +++ b/application/modules/user/views/scripts/config/index.phtml @@ -5,29 +5,24 @@ <?php echo $this->formButton('createconfig', 'Create Config', array( 'onclick' => 'self.location="/user/config/createconfig/page/'.$this->page.'"', 'class' => 'addbutton'))?> +<div class='searchvars'> + <div class='head'>Available searchfilter:</div> + <div class='code'>title</div> + <div class='code'>shellscript</div> + <div class='code'>created</div> +</div> - -<table> - <tr> - <?php if(Pbs_Acl::checkRight('csai')): ?> - <th>ID <span class='code'>configID</span></th> - <?php endif; ?> - <th>Title <span class='code'>title</span></th> - <th>Shellscript <span class='code'>shellscript</span></th> - <th>Changed <span class='code'>created</span></th> - <th colspan=2>Actions</th> - </tr> - <?php if(count($this->configlist)==0) - echo "</table> There are no Config's to display." ?> - <?php foreach ($this->configlist as $config): ?> - <tr class=entry> - <?php if(Pbs_Acl::checkRight('csai')): ?> - <td><?php echo $this->escape($config->getID()); ?></td> - <?php endif; ?> - <td><?php echo $this->escape($config->getTitle()); ?></td> - <td><?php echo $this->escape($config->getShellscript()); ?></td> - <td><?php echo $this->escape($config->getCreated()); ?></td> - <td class='action'><a href="<?php echo $this->url( +<div class='listelement'> + <?php if(count($this->configlist)==0) + echo "There are no Config's to display." ?> + <?php foreach ($this->configlist as $config): ?> + <div class='element'> + <?php if(Pbs_Acl::checkRight('csai')): ?> + <div class='number'><?php echo $this->escape($config->getID()); ?></div> + <?php endif; ?> + <div class='content'> + <div class='actions'> + <a href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'config', @@ -36,8 +31,8 @@ 'page' => $this->page ), 'default', - true, false) ?>"><img src='/media/img/edit.png' alt='Edit Config'/></a></td> - <td class='action'><a href="<?php echo $this->url( + true, false) ?>"><img src='/media/img/edit.png' alt='Edit Config'/></a> + <a href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'config', @@ -46,15 +41,31 @@ 'page' => $this->page ), 'default', - true) ?>"><img src='/media/img/delete.png' alt='Delete Config'/></a></td> - </tr> - <?php endforeach; ?> -</table> -<?php echo $this->pagination; ?> - - + true) ?>"><img src='/media/img/delete.png' alt='Delete Config'/></a> + </div> + <div class='title'><?php echo $this->escape($config->getTitle()); ?></div> + <div class='details'> + <label>Shellscript</label> + <div class='item'><?php echo $this->escape($config->getShellscript()); ?></div> + <label>Created</label> + <div class='item'><?php echo $this->escape($config->getCreated()); ?></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> |
