summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/config
diff options
context:
space:
mode:
authormichael pereira2011-04-05 19:33:19 +0200
committermichael pereira2011-04-05 19:33:19 +0200
commit3a6c9972b59b11dc98b76ee51446d5568ef0f519 (patch)
treeb0b93ab6630b09c12a94e7e97fb5bd7783754fca /application/modules/user/views/scripts/config
parentDates angepasst (diff)
downloadpbs2-3a6c9972b59b11dc98b76ee51446d5568ef0f519.tar.gz
pbs2-3a6c9972b59b11dc98b76ee51446d5568ef0f519.tar.xz
pbs2-3a6c9972b59b11dc98b76ee51446d5568ef0f519.zip
Forms Rechte angepasst, Views angepasst
Diffstat (limited to 'application/modules/user/views/scripts/config')
-rw-r--r--application/modules/user/views/scripts/config/index.phtml9
1 files changed, 7 insertions, 2 deletions
diff --git a/application/modules/user/views/scripts/config/index.phtml b/application/modules/user/views/scripts/config/index.phtml
index b651f63..0b62f7e 100644
--- a/application/modules/user/views/scripts/config/index.phtml
+++ b/application/modules/user/views/scripts/config/index.phtml
@@ -1,15 +1,18 @@
<h1>Config</h1>
<?php if($this->notification != ''){echo $this->notification;} ?>
<?php echo $this->searchform; ?>
+
<?php echo $this->formButton('createconfig', 'Create Config', array(
'onclick' => 'self.location="/user/config/createconfig/page/'.$this->page.'"',
'class' => 'addbutton'))?>
+
<table>
<tr>
+ <?php if(Pbs_Acl::checkRight('csai')): ?>
<th>ID <span class='code'>configID</span></th>
+ <?php endif; ?>
<th>Title <span class='code'>title</span></th>
- <th>GroupID <span class='code'>groupID</span></th>
<th>Shellscript <span class='code'>shellscript</span></th>
<th>Changed <span class='code'>created</span></th>
<th colspan=2>Actions</th>
@@ -18,9 +21,10 @@
echo "</table> There are no Config's to display." ?>
<?php foreach ($this->configlist as $config): ?>
<tr class=entry>
+ <?php if(Pbs_Acl::checkRight('csai')): ?>
<td><?php echo $this->escape($config->getID()); ?></td>
+ <?php endif; ?>
<td><?php echo $this->escape($config->getTitle()); ?></td>
- <td><?php echo $this->escape($config->getGroupID()); ?></td>
<td><?php echo $this->escape($config->getShellscript()); ?></td>
<td><?php echo $this->escape($config->getCreated()); ?></td>
<td class='action'><a href="<?php echo $this->url(
@@ -50,6 +54,7 @@
+