summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/bootiso
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/bootiso
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/bootiso')
-rw-r--r--application/modules/user/views/scripts/bootiso/index.phtml109
1 files changed, 68 insertions, 41 deletions
diff --git a/application/modules/user/views/scripts/bootiso/index.phtml b/application/modules/user/views/scripts/bootiso/index.phtml
index 1c0c5fe..d0e8dd1 100644
--- a/application/modules/user/views/scripts/bootiso/index.phtml
+++ b/application/modules/user/views/scripts/bootiso/index.phtml
@@ -1,19 +1,26 @@
<h1>BootMedien</h1>
<?php if($this->notification != ''){echo $this->notification;} ?>
<?php echo $this->searchform; ?>
+
+<?php if(Pbs_Acl::checkRight('bc')): ?>
<?php echo $this->formButton('createbootiso', 'Create BootISO', array(
'onclick' => 'self.location="/user/bootiso/createbootiso/page/'.$this->page.'"',
'class' => 'addbutton'))?>
+<?php endif;?>
<div class='searchvars'>
<div class='head'>Available searchfilter:</div>
- <div class='code'>bootosID</div>
+ <?php if(Pbs_Acl::checkRight('bai')): ?>
+ <div class='code'>bootmediumID</div>
+ <div class='code'>serialnumber</div>
+ <div class='code'>public</div>
+ <?php endif; ?>
+ <div class='code'>prebootID</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'>
@@ -24,48 +31,68 @@
<div class='number'><?php echo $k+1; ?></div>
<div class='content'>
<div class='actions'>
- <a href="<?php echo $this->url(
- array(
- 'module' => 'user',
- 'controller' => 'bootiso',
- 'action' => 'downloadbootiso',
- 'bootisoID' => $bootiso->getID(),
- 'page' => $this->page
- ),
- 'default',
- true, false) ?>"><img src='/media/img/download.png' alt='Download BootMedium' /></a>
- <a href="<?php echo $this->url(
- array(
- 'module' => 'user',
- 'controller' => 'bootiso',
- 'action' => 'editbootiso',
- 'bootisoID' => $bootiso->getID(),
- 'page' => $this->page
- ),
- 'default',
- true, false) ?>"><img src='/media/img/edit.png' alt='Edit BootISO' /></a>
- <a href="<?php echo $this->url(
- array(
- 'module' => 'user',
- 'controller' => 'bootiso',
- 'action' => 'deletebootiso',
- 'bootisoID' => $bootiso->getID(),
- 'page' => $this->page
- ),
- 'default',
- true) ?>"><img src='/media/img/delete.png' alt='Delete BootISO'/></a>
+ <?php if(Pbs_Acl::checkRight('bdld')): ?>
+ <a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'bootiso',
+ 'action' => 'downloadbootiso',
+ 'bootisoID' => $bootiso->getID(),
+ 'page' => $this->page
+ ),
+ 'default',
+ true, false) ?>"><img src='/media/img/download.png' alt='Download BootMedium' /></a>
+ <?php endif; ?>
+ <?php if(Pbs_Acl::checkRight('be') || Pbs_Acl::checkRight('bem')): ?>
+ <a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'bootiso',
+ 'action' => 'editbootiso',
+ 'bootisoID' => $bootiso->getID(),
+ 'page' => $this->page
+ ),
+ 'default',
+ true, false) ?>"><img src='/media/img/edit.png' alt='Edit BootISO' /></a>
+ <?php endif; ?>
+ <?php if(Pbs_Acl::checkRight('bd')): ?>
+ <a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'bootiso',
+ 'action' => 'deletebootiso',
+ 'bootisoID' => $bootiso->getID(),
+ 'page' => $this->page
+ ),
+ 'default',
+ true) ?>"><img src='/media/img/delete.png' alt='Delete BootISO'/></a>
+ <?php endif; ?>
</div>
+ <?php if(!Pbs_Acl::checkRight('bai')){
+ $bootiso->setPrebootID(preg_replace("!^\[[0-9]+\]\s!",'',$bootiso->getPrebootID()));
+ $bootiso->setGroupID(preg_replace("!^\[[0-9]+\]\s!",'',$bootiso->getGroupID()));
+ } ?>
<div class='title'><?php echo $this->escape($bootiso->getTitle()); ?></div>
- <div class='subtitle'><?php echo $this->escape($bootiso->getGroupID()); ?> - Serialnumber: <?php echo $this->escape($bootiso->getSerialnumber()); ?></div>
+ <div class='subtitle'><?php echo $this->escape($bootiso->getGroupID()); ?>
+ <?php if(Pbs_Acl::checkRight('bai')): ?>
+ - Serialnumber: <?php echo $this->escape($bootiso->getSerialnumber()); ?>
+ <?php endif; ?>
+ </div>
<div class='details dispnone'>
- <label>PreebootID</label>
- <div class='item'><?php echo $this->escape($bootiso->getPrebootID()); ?></div>
- <label>Created</label>
+ <?php if(Pbs_Acl::checkRight('bai')): ?>
+ <label>BootmediumID</label>
+ <div class='item'><?php echo $this->escape($bootiso->getID()); ?></div>
+ <?php endif; ?>
+ <label>PrebootID</label>
+ <div class='item'><?php echo $this->escape($bootiso->getPrebootID()); ?></div>
+ <label>Changed</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 class='item'><?php echo $this->escape($bootiso->getExpires()); ?></div>
+ <?php if(Pbs_Acl::checkRight('bai')): ?>
+ <label>Public</label>
+ <div class='item'><?php echo $this->escape($bootiso->getPublic()); ?></div>
+ <?php endif; ?>
</div>
</div>
<div class='clear'></div>