summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views
diff options
context:
space:
mode:
authormichael pereira2011-03-29 10:59:15 +0200
committermichael pereira2011-03-29 10:59:15 +0200
commit03b4da383449c290ea01723095d1a87fa257fea5 (patch)
tree4943185a212ced33465b92811cd070bf8e45b717 /application/modules/user/views
parentupdatebutton geadded (diff)
downloadpbs2-03b4da383449c290ea01723095d1a87fa257fea5.tar.gz
pbs2-03b4da383449c290ea01723095d1a87fa257fea5.tar.xz
pbs2-03b4da383449c290ea01723095d1a87fa257fea5.zip
Preboot User Controller fertig, ACL fehlt noch
Diffstat (limited to 'application/modules/user/views')
-rw-r--r--application/modules/user/views/scripts/preboot/createpreboot.phtml4
-rw-r--r--application/modules/user/views/scripts/preboot/editpreboot.phtml4
-rw-r--r--application/modules/user/views/scripts/preboot/index.phtml61
3 files changed, 69 insertions, 0 deletions
diff --git a/application/modules/user/views/scripts/preboot/createpreboot.phtml b/application/modules/user/views/scripts/preboot/createpreboot.phtml
new file mode 100644
index 0000000..3690cfb
--- /dev/null
+++ b/application/modules/user/views/scripts/preboot/createpreboot.phtml
@@ -0,0 +1,4 @@
+<?php
+$this->prebootForm;
+echo $this->prebootForm;
+?>
diff --git a/application/modules/user/views/scripts/preboot/editpreboot.phtml b/application/modules/user/views/scripts/preboot/editpreboot.phtml
new file mode 100644
index 0000000..3690cfb
--- /dev/null
+++ b/application/modules/user/views/scripts/preboot/editpreboot.phtml
@@ -0,0 +1,4 @@
+<?php
+$this->prebootForm;
+echo $this->prebootForm;
+?>
diff --git a/application/modules/user/views/scripts/preboot/index.phtml b/application/modules/user/views/scripts/preboot/index.phtml
new file mode 100644
index 0000000..21ff310
--- /dev/null
+++ b/application/modules/user/views/scripts/preboot/index.phtml
@@ -0,0 +1,61 @@
+<h1>Preboot</h1>
+<?php if($this->notification != ''){echo $this->notification;} ?>
+<?php echo $this->formButton('checkupdate', 'Check for Updates', array(
+ 'onclick' => 'self.location="/user/preboot/index/checkupdate/true"',
+ 'class' => 'updatebutton',
+ ))?>
+<?php echo $this->formButton('createpreboot', 'Create PreBoot', array(
+ 'onclick' => 'self.location="/user/preboot/createpreboot"',
+ 'class' => 'addbutton'))?>
+<table>
+ <tr>
+ <th>ID</th>
+ <th>Title</th>
+ <th>GroupID</th>
+ <th>MembershipID</th>
+ <th>Preboot Path</th>
+ <th colspan=3>Actions</th>
+ </tr>
+ <?php if(count($this->prebootlist)==0)
+ echo "</table> There are no Preboot entries to display." ?>
+ <?php foreach ($this->prebootlist as $preboot): ?>
+ <tr class=entry>
+ <td><?php echo $this->escape($preboot->getID()); ?></td>
+ <td><?php echo $this->escape($preboot->getTitle()); ?></td>
+ <td><?php echo $this->escape($preboot->getGroupID()); ?></td>
+ <td><?php echo $this->escape($preboot->getMembershipID()); ?></td>
+ <td><?php echo $this->escape($preboot->getPath_preboot()); ?></td>
+ <?php if($this->update[$preboot->getID()]==true): ?>
+ <td class='action'><a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'preboot',
+ 'action' => 'updatepreboot',
+ 'prebootID' => $preboot->getID()
+ ),
+ 'default',
+ true, false) ?>"><img src='/media/img/update.png' alt='Updates available' /></a></td>
+ <?php else: ?>
+ <td class='action'><img src='/media/img/update_grey.png' alt='No updates available' /></td>
+ <?php endif; ?>
+ <td class='action'><a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'preboot',
+ 'action' => 'editpreboot',
+ 'prebootID' => $preboot->getID()
+ ),
+ 'default',
+ true, false) ?>"><img src='/media/img/edit.png' alt='Edit Preboot' /></a></td>
+ <td class='action'><a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'preboot',
+ 'action' => 'deletepreboot',
+ 'prebootID' => $preboot->getID()
+ ),
+ 'default',
+ true) ?>"><img src='/media/img/delete.png' alt='Delete Preboot'/></a></td>
+ </tr>
+ <?php endforeach; ?>
+</table> \ No newline at end of file