summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/preboot/index.phtml
diff options
context:
space:
mode:
authormichael pereira2011-04-10 21:05:24 +0200
committermichael pereira2011-04-10 21:05:24 +0200
commitce62cf823e40aaf60389a28520390c9373cb3253 (patch)
treec4d027e88ea39ecf8d4f6717d7fe6d0f3cec2d4a /application/modules/user/views/scripts/preboot/index.phtml
parentkcl fixed (diff)
downloadpbs2-ce62cf823e40aaf60389a28520390c9373cb3253.tar.gz
pbs2-ce62cf823e40aaf60389a28520390c9373cb3253.tar.xz
pbs2-ce62cf823e40aaf60389a28520390c9373cb3253.zip
Config Own/Group getrennt
Diffstat (limited to 'application/modules/user/views/scripts/preboot/index.phtml')
-rw-r--r--application/modules/user/views/scripts/preboot/index.phtml85
1 files changed, 49 insertions, 36 deletions
diff --git a/application/modules/user/views/scripts/preboot/index.phtml b/application/modules/user/views/scripts/preboot/index.phtml
index fc0d07d..dba956c 100644
--- a/application/modules/user/views/scripts/preboot/index.phtml
+++ b/application/modules/user/views/scripts/preboot/index.phtml
@@ -1,13 +1,18 @@
<h1>Preboot</h1>
<?php if($this->notification != ''){echo $this->notification;} ?>
<?php echo $this->searchform; ?>
+
+<?php if(Pbs_Acl::checkRight('pru')): ?>
<?php echo $this->formButton('checkupdate', 'Check for Updates', array(
'onclick' => 'self.location="/user/preboot/index/checkupdate/true"',
'class' => 'updatebutton',
))?>
+<?php endif;?>
+<?php if(Pbs_Acl::checkRight('prc')): ?>
<?php echo $this->formButton('createpreboot', 'Create PreBoot', array(
'onclick' => 'self.location="/user/preboot/createpreboot/page/'.$this->page.'"',
'class' => 'addbutton'))?>
+<?php endif;?>
<div class='searchvars'>
<div class='head'>Available searchfilter:</div>
<div class='code'>prebootID</div>
@@ -18,48 +23,56 @@
<div class='listelement'>
<?php if(count($this->prebootlist)==0)
echo "There are no Preboot entries to display." ?>
- <?php foreach ($this->prebootlist as $preboot): ?>
+ <?php foreach ($this->prebootlist as $k => $preboot): ?>
<div class='element'>
- <div class='number'><?php echo $this->escape($preboot->getID()); ?></div>
+ <div class='number'><?php echo $k+1 ?></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',
- 'action' => 'updatepreboot',
- 'prebootID' => $preboot->getID(),
- 'page' => $this->page
- ),
- 'default',
- 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',
- 'action' => 'editpreboot',
- 'prebootID' => $preboot->getID(),
- 'page' => $this->page
- ),
- 'default',
- true, false) ?>"><img src='/media/img/edit.png' alt='Edit Preboot' /></a>
- <a href="<?php echo $this->url(
- array(
- 'module' => 'user',
- 'controller' => 'preboot',
- 'action' => 'deletepreboot',
- 'prebootID' => $preboot->getID(),
- 'page' => $this->page
- ),
- 'default',
- true) ?>"><img src='/media/img/delete.png' alt='Delete Preboot'/></a>
+ <?php if(Pbs_Acl::checkRight('pru')): ?>
+ <?php if($this->update[$preboot->getID()]==true): ?><a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'preboot',
+ 'action' => 'updatepreboot',
+ 'prebootID' => $preboot->getID(),
+ 'page' => $this->page
+ ),
+ 'default',
+ 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; ?>
+ <?php endif; ?>
+ <?php if(Pbs_Acl::checkRight('pre') || Pbs_Acl::checkRight('prem')): ?>
+ <a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'preboot',
+ 'action' => 'editpreboot',
+ 'prebootID' => $preboot->getID(),
+ 'page' => $this->page
+ ),
+ 'default',
+ true, false) ?>"><img src='/media/img/edit.png' alt='Edit Preboot' /></a>
+ <?php endif; ?>
+ <?php if(Pbs_Acl::checkRight('prd')): ?>
+ <a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'preboot',
+ 'action' => 'deletepreboot',
+ 'prebootID' => $preboot->getID(),
+ 'page' => $this->page
+ ),
+ 'default',
+ true) ?>"><img src='/media/img/delete.png' alt='Delete Preboot'/></a>
+ <?php endif; ?>
</div>
<div class='title'><?php echo $this->escape($preboot->getTitle()); ?></div>
<div class='details'>
- <label>Prebootpath:</label>
+ <label>PrebootID</label>
+ <div class='item'><?php echo $this->escape($preboot->getID()); ?></div>
+ <label>Prebootpath</label>
<div class='item'><?php echo $this->escape($preboot->getPath_preboot()); ?></div>
</div>
</div>