summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/user/views')
-rw-r--r--application/modules/user/views/scripts/bootos/createbootos.phtml4
-rw-r--r--application/modules/user/views/scripts/bootos/editbootos.phtml4
-rw-r--r--application/modules/user/views/scripts/bootos/index.phtml86
3 files changed, 93 insertions, 1 deletions
diff --git a/application/modules/user/views/scripts/bootos/createbootos.phtml b/application/modules/user/views/scripts/bootos/createbootos.phtml
new file mode 100644
index 0000000..51c49a2
--- /dev/null
+++ b/application/modules/user/views/scripts/bootos/createbootos.phtml
@@ -0,0 +1,4 @@
+<?php
+$this->bootosForm;
+echo $this->bootosForm;
+?>
diff --git a/application/modules/user/views/scripts/bootos/editbootos.phtml b/application/modules/user/views/scripts/bootos/editbootos.phtml
new file mode 100644
index 0000000..51c49a2
--- /dev/null
+++ b/application/modules/user/views/scripts/bootos/editbootos.phtml
@@ -0,0 +1,4 @@
+<?php
+$this->bootosForm;
+echo $this->bootosForm;
+?>
diff --git a/application/modules/user/views/scripts/bootos/index.phtml b/application/modules/user/views/scripts/bootos/index.phtml
index c9bbeb9..53d219f 100644
--- a/application/modules/user/views/scripts/bootos/index.phtml
+++ b/application/modules/user/views/scripts/bootos/index.phtml
@@ -1 +1,85 @@
-<br /><br /><center>View script for controller <b>Bootos</b> and script/action name <b>index</b></center> \ No newline at end of file
+<h1>BootOS</h1>
+<?php if($this->notification != ''){echo $this->notification;} ?>
+<?php echo $this->formButton('checkupdate', 'Check for Updates', array(
+ 'onclick' => 'self.location="/user/bootos/index/checkupdate/true"',
+ 'class' => 'updatebutton',
+ ))?>
+<?php echo $this->formButton('createbootos', 'Create BootOS', array(
+ 'onclick' => 'self.location="/user/bootos/createbootos"',
+ 'class' => 'addbutton'))?>
+
+<table>
+ <tr>
+ <th>ID</th>
+ <th>Title</th>
+ <th>GroupID</th>
+ <th>MembershipID</th>
+ <th>ConfigID</th>
+ <th>Init</th>
+ <th>Kernel</th>
+ <th>Kcl</th>
+ <th>Description</th>
+ <th>Changed</th>
+ <th>Expires</th>
+ <th>Public</th>
+ <th colspan=3>Actions</th>
+ </tr>
+ <?php if(count($this->bootoslist)==0)
+ echo "</table> There are no BootOs's to display." ?>
+ <?php foreach ($this->bootoslist as $bootos): ?>
+ <tr class=entry>
+ <td><?php echo $this->escape($bootos->getID()); ?></td>
+ <td><?php echo $this->escape($bootos->getTitle()); ?></td>
+ <td><?php echo $this->escape($bootos->getGroupID()); ?></td>
+ <td><?php echo $this->escape($bootos->getMembershipID()); ?></td>
+ <td><?php echo $this->escape($bootos->getConfigID()); ?></td>
+ <td><?php echo $this->escape($bootos->getPath_init()); ?></td>
+ <td><?php echo $this->escape($bootos->getPath_kernel()); ?></td>
+ <td><?php echo $this->escape($bootos->getDefaultkcl()); ?></td>
+ <td><?php echo $this->escape($bootos->getDescription()); ?></td>
+ <td><?php echo $this->escape(date('Y-m-d H:i:s', $bootos->getCreated())); ?></td>
+ <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
+ href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'bootos',
+ 'action' => 'updatebootos',
+ 'bootosID' => $bootos->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' => 'bootos',
+ 'action' => 'editbootos',
+ 'bootosID' => $bootos->getID()
+ ),
+ 'default',
+ true, false) ?>"><img src='/media/img/edit.png' alt='Edit BootOS' /></a></td>
+ <td class='action'><a
+ href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'bootos',
+ 'action' => 'deletebootos',
+ 'bootosID' => $bootos->getID()
+ ),
+ 'default',
+ true) ?>"><img src='/media/img/delete.png' alt='Delete BootOS' /></a></td>
+ </tr>
+ <?php endforeach; ?>
+</table>
+
+
+
+
+
+