summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/bootos
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/user/views/scripts/bootos')
-rw-r--r--application/modules/user/views/scripts/bootos/index.phtml115
1 files changed, 68 insertions, 47 deletions
diff --git a/application/modules/user/views/scripts/bootos/index.phtml b/application/modules/user/views/scripts/bootos/index.phtml
index 0ea8f77..cb2a3aa 100644
--- a/application/modules/user/views/scripts/bootos/index.phtml
+++ b/application/modules/user/views/scripts/bootos/index.phtml
@@ -9,39 +9,31 @@
'onclick' => 'self.location="/user/bootos/createbootos/page/'.$this->page.'"',
'class' => 'addbutton'))?>
-<table>
- <tr>
- <th>ID <span class='code'>bootosID</span></th>
- <th>Title <span class='code'>title</span></th>
- <th>GroupID <span class='code'>groupID</span></th>
- <th>ConfigID <span class='code'>configID</span></th>
- <th>Init <span class='code'>init</span></th>
- <th>Kernel <span class='code'>kernel</span></th>
- <th>Kcl <span class='code'>kcl</span></th>
- <th>Description <span class='code'>description</span></th>
- <th>Changed <span class='code'>Changed</span></th>
- <th>Expires <span class='code'>expires</span></th>
- <th>Public <span class='code'>public</span></th>
- <th colspan=3>Actions</th>
- </tr>
+<div class='searchvars'>
+ <div class='head'>Available searchfilter:</div>
+ <div class='code'>bootosID</div>
+ <div class='code'>title</div>
+ <div class='code'>groupID</div>
+ <div class='code'>configID</div>
+ <div class='code'>init</div>
+ <div class='code'>kernel</div>
+ <div class='code'>kcl</div>
+ <div class='code'>description</div>
+ <div class='code'>changed</div>
+ <div class='code'>expires</div>
+ <div class='code'>public</div>
+</div>
+
+<div class='listelement'>
<?php if(count($this->bootoslist)==0)
- echo "</table> There are no BootOs's to display." ?>
+ echo "There are no BootOs's to display." ?>
<?php foreach ($this->bootoslist as $bootos): ?>
- <tr class=entry>
- <td><?php echo $this->escape($bootos->getID()); ?></td>
- <td><?php echo $this->escape($bootos->getTitle()); ?></td>
- <td><?php echo $this->escape($bootos->getGroupID()); ?></td>
- <td><?php echo $this->escape($bootos->getConfigID()); ?></td>
- <td><?php echo $this->escape($bootos->getPath_init()); ?></td>
- <td><?php echo $this->escape($bootos->getPath_kernel()); ?></td>
- <td><?php echo $this->escape($bootos->getDefaultkcl()); ?></td>
- <td><?php echo $this->escape($bootos->getDescription()); ?></td>
- <td><?php echo $this->escape($bootos->getCreated()); ?></td>
- <td><?php echo $this->escape($bootos->getExpires()); ?></td>
- <td><?php echo $this->escape($bootos->getPublic()); ?></td>
- <?php if($this->update[$bootos->getID()]==true): ?>
- <td class='action'><a
- href="<?php echo $this->url(
+ <div class='element'>
+ <div class='number'><?php echo $this->escape($bootos->getID()); ?></div>
+ <div class='content'>
+ <div class='actions'>
+ <?php if($this->update[$bootos->getID()]==true): ?>
+ <a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'bootos',
@@ -51,11 +43,10 @@
),
'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(
+ <?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' => 'bootos',
@@ -64,9 +55,8 @@
'page' => $this->page
),
'default',
- true, false) ?>"><img src='/media/img/edit.png' alt='Edit BootOS' /></a></td>
- <td class='action'><a
- href="<?php echo $this->url(
+ true, false) ?>"><img src='/media/img/edit.png' alt='Edit BootOS' /></a>
+ <a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'bootos',
@@ -75,14 +65,45 @@
'page' => $this->page
),
'default',
- true) ?>"><img src='/media/img/delete.png' alt='Delete BootOS' /></a></td>
- </tr>
+ true) ?>"><img src='/media/img/delete.png' alt='Delete BootOS' /></a>
+ </div>
+ <div class='title'><?php echo $this->escape($bootos->getTitle()); ?></div>
+ <div class='subtitle'><?php echo $this->escape($bootos->getDescription()); ?></div>
+ <div class='details dispnone'>
+ <label>GroupID</label>
+ <div class='item'><?php echo $this->escape($bootos->getGroupID()); ?></div>
+ <label>ConfigID</label>
+ <div class='item'><?php echo $this->escape($bootos->getConfigID()); ?></div>
+ <label>initPath</label>
+ <div class='item'><?php echo $this->escape($bootos->getPath_init()); ?></div>
+ <label>kernelPath</label>
+ <div class='item'><?php echo $this->escape($bootos->getPath_kernel()); ?></div>
+ <label>Default KCL</label>
+ <div class='item'><?php echo $this->escape($bootos->getDefaultkcl()); ?></div>
+ <label>Created</label>
+ <div class='item'><?php echo $this->escape($bootos->getCreated()); ?></div>
+ <label>Expires</label>
+ <div class='item'><?php echo $this->escape($bootos->getExpires()); ?></div>
+ <label>Public</label>
+ <div class='item'><?php echo $this->escape($bootos->getPublic()); ?></div>
+
+ </div>
+ </div>
+ <div class='clear'></div>
+ </div>
<?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).parent().find('.dispnone').toggle();
+ });
+ }
+});
+</script>