summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/bootiso
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/bootiso
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/bootiso')
-rw-r--r--application/modules/user/views/scripts/bootiso/index.phtml95
1 files changed, 58 insertions, 37 deletions
diff --git a/application/modules/user/views/scripts/bootiso/index.phtml b/application/modules/user/views/scripts/bootiso/index.phtml
index 526edc0..0d175e8 100644
--- a/application/modules/user/views/scripts/bootiso/index.phtml
+++ b/application/modules/user/views/scripts/bootiso/index.phtml
@@ -4,31 +4,27 @@
<?php echo $this->formButton('createbootiso', 'Create BootISO', array(
'onclick' => 'self.location="/user/bootiso/createbootiso/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>PrebootID <span class='code'>prebootID</span></th>
- <th>Serialnumber <span class='code'>serialnumber</span></th>
- <th>Changed <span class='code'>created</span></th>
- <th>Expires <span class='code'>expires</span></th>
- <th>Public <span class='code'>public</span></th>
- <th colspan=3>Actions</th>
- </tr>
- <?php if(count($this->bootisolist)==0)
- echo "</table> There are no BootISO's entries to display." ?>
- <?php foreach ($this->bootisolist as $bootiso): ?>
- <tr class=entry>
- <td><?php echo $this->escape($bootiso->getID()); ?></td>
- <td><?php echo $this->escape($bootiso->getTitle()); ?></td>
- <td><?php echo $this->escape($bootiso->getGroupID()); ?></td>
- <td><?php echo $this->escape($bootiso->getPrebootID()); ?></td>
- <td><?php echo $this->escape($bootiso->getSerialnumber()); ?></td>
- <td><?php echo $this->escape($bootiso->getCreated()); ?></td>
- <td><?php echo $this->escape($bootiso->getExpires()); ?></td>
- <td><?php echo $this->escape($bootiso->getPublic()); ?></td>
- <td class='action'><a href="<?php echo $this->url(
+<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'>prebootID</div>
+ <div class='code'>serialnumber</div>
+ <div class='code'>created</div>
+ <div class='code'>expires</div>
+ <div class='code'>public</div>
+</div>
+
+<div class='listelement'>
+ <?php if(count($this->bootisolist)==0)
+ echo "There are no BootISO entries to display." ?>
+ <?php foreach ($this->bootisolist as $bootiso): ?>
+ <div class='element'>
+ <div class='number'><?php echo $this->escape($bootiso->getID()); ?></div>
+ <div class='content'>
+ <div class='actions'>
+ <a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'bootiso',
@@ -37,8 +33,8 @@
'page' => $this->page
),
'default',
- true, false) ?>"><img src='/media/img/download.png' alt='Download BootMedium' /></a></td>
- <td class='action'><a href="<?php echo $this->url(
+ true, false) ?>"><img src='/media/img/download.png' alt='Download BootMedium' /></a>
+ <a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'bootiso',
@@ -47,8 +43,8 @@
'page' => $this->page
),
'default',
- true, false) ?>"><img src='/media/img/edit.png' alt='Edit BootISO' /></a></td>
- <td class='action'><a href="<?php echo $this->url(
+ true, false) ?>"><img src='/media/img/edit.png' alt='Edit BootISO' /></a>
+ <a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'bootiso',
@@ -57,13 +53,38 @@
'page' => $this->page
),
'default',
- true) ?>"><img src='/media/img/delete.png' alt='Delete BootISO'/></a></td>
- </tr>
- <?php endforeach; ?>
-</table>
-<?php echo $this->pagination; ?>
+ true) ?>"><img src='/media/img/delete.png' alt='Delete BootISO'/></a>
+ </div>
+ <div class='title'><?php echo $this->escape($bootiso->getTitle()); ?></div>
+ <div class='subtitle'>Serialnumber: <?php echo $this->escape($bootiso->getSerialnumber()); ?></div>
+ <div class='details dispnone'>
+ <label>Group</label>
+ <div class='item'><?php echo $this->escape($bootiso->getGroupID()); ?></div>
+ <label>PreebootID</label>
+ <div class='item'><?php echo $this->escape($bootiso->getPrebootID()); ?></div>
+ <label>Created</label>
+ <div class='item'><?php echo $this->escape($bootiso->getCreated()); ?></div>
+ <label>Expires</label>
+ <div class='item'><?php echo $this->escape($bootiso->getExpires()); ?></div>
+ <label>Public</label>
+ <div class='item'><?php echo $this->escape($bootiso->getPublic()); ?></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>