summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/bootmenu/index.phtml
diff options
context:
space:
mode:
authormichael pereira2011-04-08 15:20:55 +0200
committermichael pereira2011-04-08 15:20:55 +0200
commit7067b772abaf370fb9b73c33e4b92d4dfbc5b2cf (patch)
tree6d901d595c04b9b5156b6803bfb2fbcb2785273c /application/modules/user/views/scripts/bootmenu/index.phtml
parentkcl gefixt (diff)
parentFooter ist wieder an der Box (diff)
downloadpbs2-7067b772abaf370fb9b73c33e4b92d4dfbc5b2cf.tar.gz
pbs2-7067b772abaf370fb9b73c33e4b92d4dfbc5b2cf.tar.xz
pbs2-7067b772abaf370fb9b73c33e4b92d4dfbc5b2cf.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules/user/views/scripts/bootmenu/index.phtml')
-rw-r--r--application/modules/user/views/scripts/bootmenu/index.phtml35
1 files changed, 22 insertions, 13 deletions
diff --git a/application/modules/user/views/scripts/bootmenu/index.phtml b/application/modules/user/views/scripts/bootmenu/index.phtml
index 2e04618..5d298a5 100644
--- a/application/modules/user/views/scripts/bootmenu/index.phtml
+++ b/application/modules/user/views/scripts/bootmenu/index.phtml
@@ -1,5 +1,6 @@
<h1>BootMenu</h1>
<?php if($this->notification != ''){echo $this->notification;} ?>
+<div id='notification' style='display:none;'></div>
<?php echo $this->searchform; ?>
<?php echo $this->formButton('createbootmenu', 'Create BootMenu', array(
'onclick' => 'self.location="/user/bootmenu/createbootmenu/page/'.$this->page.'"',
@@ -24,20 +25,20 @@
<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) ?>">
+ <div class='actions'>
<?php if($bootmenu->getDefaultbootmenu() == true): ?>
- <img src='/media/img/default.png' alt='Checked as default'/></a>
+ <a><img src='/media/img/default.png' alt='Checked as default'/></a>
<?php else: ?>
+ <a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'bootmenu',
+ 'action' => 'defaultbootmenu',
+ 'bootmenuID' => $bootmenu->getID(),
+ 'page' => $this->page
+ ),
+ 'default',
+ true, false) ?>">
<img src='/media/img/default_grey.png' alt='Not checked as default' /></a>
<?php endif; ?>
<a href="<?php echo $this->url(
@@ -80,7 +81,7 @@
<div class='number'><?php echo $this->escape($bootmenuentry->getID()); ?></div>
<div class='content'>
<div class='actions'>
- <a href="<?php echo $this->url(
+ <a class='play' href="<?php echo $this->url(
array(
'controller' => 'resource',
'action' => 'getbootmenuentry',
@@ -135,3 +136,11 @@
<?php echo $this->pagination; ?>
+<script>
+$(document).ready(function(){
+ $('.actions .play').click(function (){
+ $("#notification").load($(this).attr('href')).addClass('infobox').show();
+ return false;
+ });
+});
+</script>