summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/views/scripts
diff options
context:
space:
mode:
authormichael pereira2011-03-21 10:49:32 +0100
committermichael pereira2011-03-21 10:49:32 +0100
commit19d1af16ad8a2fdaa5aa608693b81fa9502e162d (patch)
treeb5b00a6fb91fffad157b85bbf209ac7675a86801 /application/modules/dev/views/scripts
parentFilter funktioniert nun, FBGui IndexController angepasst (diff)
downloadpbs2-19d1af16ad8a2fdaa5aa608693b81fa9502e162d.tar.gz
pbs2-19d1af16ad8a2fdaa5aa608693b81fa9502e162d.tar.xz
pbs2-19d1af16ad8a2fdaa5aa608693b81fa9502e162d.zip
Preboot Controller eingerichtet
Diffstat (limited to 'application/modules/dev/views/scripts')
-rw-r--r--application/modules/dev/views/scripts/bootiso/index.phtml21
-rw-r--r--application/modules/dev/views/scripts/bootos/index.phtml2
-rw-r--r--application/modules/dev/views/scripts/preboot/createpreboot.phtml4
-rw-r--r--application/modules/dev/views/scripts/preboot/editpreboot.phtml4
-rw-r--r--application/modules/dev/views/scripts/preboot/index.phtml57
5 files changed, 80 insertions, 8 deletions
diff --git a/application/modules/dev/views/scripts/bootiso/index.phtml b/application/modules/dev/views/scripts/bootiso/index.phtml
index 453f316..cb06be6 100644
--- a/application/modules/dev/views/scripts/bootiso/index.phtml
+++ b/application/modules/dev/views/scripts/bootiso/index.phtml
@@ -1,4 +1,4 @@
-<h1>BootISO</h1>
+<h1>BootMedien</h1>
<?php echo $this->formButton('createbootiso', 'Create BootISO', array(
'onclick' => 'self.location="/dev/bootiso/createbootiso"',
'class' => 'addbutton'))?>
@@ -8,22 +8,22 @@
<th>Title</th>
<th>GroupID</th>
<th>MembershipID</th>
- <th>FbGui Path</th>
+ <th>PrebootID</th>
<th>Serialnumber</th>
<th>Created</th>
<th>Expires</th>
<th>Public</th>
- <th colspan=2>Actions</th>
+ <th colspan=3>Actions</th>
</tr>
<?php if(count($this->bootisolist)==0)
- echo "</table> There are no BootISO's entries for the Bootmenuto display." ?>
+ echo "</table> There are no BootISO's entries to display." ?>
<?php foreach ($this->bootisolist as $bootiso): ?>
<tr class=entry>
<td><?php echo $this->escape($bootiso->getID()); ?></td>
<td><?php echo $this->escape($bootiso->getTitle()); ?></td>
<td><?php echo $this->escape($bootiso->getGroupID()); ?></td>
<td><?php echo $this->escape($bootiso->getMembershipID()); ?></td>
- <td><?php echo $this->escape($bootiso->getPath_fbgui()); ?></td>
+ <td><?php echo "[" . $this->escape($bootiso->getPrebootID()) . "] " . $this->prebootlist[$bootiso->getID()]; ?></td>
<td><?php echo $this->escape($bootiso->getSerialnumber()); ?></td>
<td><?php echo $this->escape(date('Y-m-d H:i:s', $bootiso->getCreated())); ?></td>
<td><?php echo $this->escape($bootiso->getExpires()); ?></td>
@@ -32,6 +32,15 @@
array(
'module' => 'dev',
'controller' => 'bootiso',
+ 'action' => 'downloadbootiso',
+ 'prebootID' => $bootiso->getprebootID()
+ ),
+ 'default',
+ true, false) ?>"><img src='/media/img/download.png' alt='Download BootMedium' /></a></td>
+ <td class='action'><a href="<?php echo $this->url(
+ array(
+ 'module' => 'dev',
+ 'controller' => 'bootiso',
'action' => 'editbootiso',
'bootisoID' => $bootiso->getID()
),
@@ -51,8 +60,6 @@
</table>
-
-
diff --git a/application/modules/dev/views/scripts/bootos/index.phtml b/application/modules/dev/views/scripts/bootos/index.phtml
index f76938d..2f7f86f 100644
--- a/application/modules/dev/views/scripts/bootos/index.phtml
+++ b/application/modules/dev/views/scripts/bootos/index.phtml
@@ -36,7 +36,7 @@
<td><?php echo $this->escape($bootos->getExpires()); ?></td>
<td><?php echo $this->escape($bootos->getPublic()); ?></td>
<?php if($this->update[$bootos->getID()]==true): ?>
- <td class='action'><a
+ <td class='action'><a
href="<?php echo $this->url(
array(
'module' => 'dev',
diff --git a/application/modules/dev/views/scripts/preboot/createpreboot.phtml b/application/modules/dev/views/scripts/preboot/createpreboot.phtml
new file mode 100644
index 0000000..19d1595
--- /dev/null
+++ b/application/modules/dev/views/scripts/preboot/createpreboot.phtml
@@ -0,0 +1,4 @@
+<?php
+$this->createprebootForm->setAction($this->url());
+echo $this->createprebootForm;
+?>
diff --git a/application/modules/dev/views/scripts/preboot/editpreboot.phtml b/application/modules/dev/views/scripts/preboot/editpreboot.phtml
new file mode 100644
index 0000000..a8f9c42
--- /dev/null
+++ b/application/modules/dev/views/scripts/preboot/editpreboot.phtml
@@ -0,0 +1,4 @@
+<?php
+$this->editprebootForm->setAction($this->url());
+echo $this->editprebootForm;
+?>
diff --git a/application/modules/dev/views/scripts/preboot/index.phtml b/application/modules/dev/views/scripts/preboot/index.phtml
new file mode 100644
index 0000000..eec8f1b
--- /dev/null
+++ b/application/modules/dev/views/scripts/preboot/index.phtml
@@ -0,0 +1,57 @@
+<h1>Preboot</h1>
+<?php echo $this->formButton('createpreboot', 'Create PreBoot', array(
+ 'onclick' => 'self.location="/dev/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' => 'dev',
+ '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' => 'dev',
+ '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' => 'dev',
+ '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