summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/bootmenu
diff options
context:
space:
mode:
authormichael pereira2011-04-08 03:21:00 +0200
committermichael pereira2011-04-08 03:21:00 +0200
commit906ef8eff141f91bf1628d844db357ca0e29abf6 (patch)
tree120f879d217758145db760261d451543c4230486 /application/modules/user/views/scripts/bootmenu
parentacl merge (diff)
downloadpbs2-906ef8eff141f91bf1628d844db357ca0e29abf6.tar.gz
pbs2-906ef8eff141f91bf1628d844db357ca0e29abf6.tar.xz
pbs2-906ef8eff141f91bf1628d844db357ca0e29abf6.zip
defaultbootmenu fertig
Diffstat (limited to 'application/modules/user/views/scripts/bootmenu')
-rw-r--r--application/modules/user/views/scripts/bootmenu/index.phtml22
1 files changed, 21 insertions, 1 deletions
diff --git a/application/modules/user/views/scripts/bootmenu/index.phtml b/application/modules/user/views/scripts/bootmenu/index.phtml
index 74d0666..2e04618 100644
--- a/application/modules/user/views/scripts/bootmenu/index.phtml
+++ b/application/modules/user/views/scripts/bootmenu/index.phtml
@@ -16,10 +16,30 @@
<?php if(count($this->bootmenulist)==0)
echo "There are no BootMenus to display." ?>
<?php foreach ($this->bootmenulist as $bootmenu): ?>
- <div class='element'>
+ <?php
+ $class='';
+ if($bootmenu->getDefaultbootmenu() == true)
+ $class= 'highlight';
+ ?>
+ <div class='element<?php echo " $class";?>'>
<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',
+ 'action' => 'defaultbootmenu',
+ 'bootmenuID' => $bootmenu->getID(),
+ 'page' => $this->page
+ ),
+ 'default',
+ true, false) ?>">
+ <?php if($bootmenu->getDefaultbootmenu() == true): ?>
+ <img src='/media/img/default.png' alt='Checked as default'/></a>
+ <?php else: ?>
+ <img src='/media/img/default_grey.png' alt='Not checked as default' /></a>
+ <?php endif; ?>
<a href="<?php echo $this->url(
array(
'module' => 'user',