summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/preboot/index.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/user/views/scripts/preboot/index.phtml')
-rw-r--r--application/modules/user/views/scripts/preboot/index.phtml71
1 files changed, 46 insertions, 25 deletions
diff --git a/application/modules/user/views/scripts/preboot/index.phtml b/application/modules/user/views/scripts/preboot/index.phtml
index f1829e1..76420fb 100644
--- a/application/modules/user/views/scripts/preboot/index.phtml
+++ b/application/modules/user/views/scripts/preboot/index.phtml
@@ -8,22 +8,22 @@
<?php echo $this->formButton('createpreboot', 'Create PreBoot', array(
'onclick' => 'self.location="/user/preboot/createpreboot/page/'.$this->page.'"',
'class' => 'addbutton'))?>
-<table>
- <tr>
- <th>ID <span class='code'>prebootID</span></th>
- <th>Title <span class='code'>title</span></th>
- <th>Preboot Path <span class='code'>path_preboot</span></th>
- <th colspan=3>Actions</th>
- </tr>
- <?php if(count($this->prebootlist)==0)
- echo "</table> There are no Preboot entries to display." ?>
+<div class='searchvars'>
+ <div class='head'>Available searchfilter:</div>
+ <div class='code'>prebootID</div>
+ <div class='code'>title</div>
+ <div class='code'>path_preboot</div>
+</div>
+
+<div class='listelement'>
+ <?php if(count($this->prebootlist)==0)
+ echo "There are no Preboot entries to display." ?>
<?php foreach ($this->prebootlist as $preboot): ?>
- <tr class=entry>
- <td><?php echo $this->escape($preboot->getID()); ?></td>
- <td><?php echo $this->escape($preboot->getTitle()); ?></td>
- <td><?php echo $this->escape($preboot->getPath_preboot()); ?></td>
- <?php if($this->update[$preboot->getID()]==true): ?>
- <td class='action'><a href="<?php echo $this->url(
+ <div class='element'>
+ <div class='number'><?php echo $this->escape($preboot->getID()); ?></div>
+ <div class='content'>
+ <div class='actions'>
+ <?php if($this->update[$preboot->getID()]==true): ?><a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'preboot',
@@ -32,11 +32,11 @@
'page' => $this->page
),
'default',
- true, false) ?>"><img src='/media/img/update.png' alt='Updates available' /></a></td>
- <?php else: ?>
- <td class='action'><img src='/media/img/update_grey.png' alt='No updates available' /></td>
- <?php endif; ?>
- <td class='action'><a href="<?php echo $this->url(
+ true, false) ?>"><img src='/media/img/update.png' alt='Updates available' /></a>
+ <?php else: ?>
+ <a><img src='/media/img/update_grey.png' alt='No updates available' /></a>
+ <?php endif; ?>
+ <a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'preboot',
@@ -45,8 +45,8 @@
'page' => $this->page
),
'default',
- true, false) ?>"><img src='/media/img/edit.png' alt='Edit Preboot' /></a></td>
- <td class='action'><a href="<?php echo $this->url(
+ true, false) ?>"><img src='/media/img/edit.png' alt='Edit Preboot' /></a>
+ <a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'preboot',
@@ -55,8 +55,29 @@
'page' => $this->page
),
'default',
- true) ?>"><img src='/media/img/delete.png' alt='Delete Preboot'/></a></td>
- </tr>
+ true) ?>"><img src='/media/img/delete.png' alt='Delete Preboot'/></a>
+ </div>
+ <div class='title'><?php echo $this->escape($preboot->getTitle()); ?></div>
+ <div class='details'>
+ <label>Prebootpath:</label>
+ <div class='item'><?php echo $this->escape($preboot->getPath_preboot()); ?></div>
+ </div>
+ </div>
+ <div class='clear'></div>
+ </div>
<?php endforeach; ?>
-</table>
+</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>