summaryrefslogtreecommitdiffstats
path: root/application/views
diff options
context:
space:
mode:
authorsf342011-03-05 19:57:06 +0100
committersf342011-03-05 19:57:06 +0100
commit5016fdbdeacefa697856c3576f7b57537536f031 (patch)
tree02cda90db98a659eaec19eb7576605bbb8bfbd5d /application/views
parentPrimary Key inn filterentries eingeführt um meherere Elemente eines Filterty... (diff)
parentBootOS create, edit und delete done (diff)
downloadpbs2-5016fdbdeacefa697856c3576f7b57537536f031.tar.gz
pbs2-5016fdbdeacefa697856c3576f7b57537536f031.tar.xz
pbs2-5016fdbdeacefa697856c3576f7b57537536f031.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/views')
-rw-r--r--application/views/scripts/bootos/editbootos.phtml5
-rw-r--r--application/views/scripts/bootos/index.phtml42
2 files changed, 35 insertions, 12 deletions
diff --git a/application/views/scripts/bootos/editbootos.phtml b/application/views/scripts/bootos/editbootos.phtml
index f36d3d0..43813de 100644
--- a/application/views/scripts/bootos/editbootos.phtml
+++ b/application/views/scripts/bootos/editbootos.phtml
@@ -1 +1,4 @@
-<br /><br /><center>View script for controller <b>Bootos</b> and script/action name <b>editbootos</b></center> \ No newline at end of file
+<?php
+$this->editbootosForm->setAction($this->url());
+echo $this->editbootosForm;
+?>
diff --git a/application/views/scripts/bootos/index.phtml b/application/views/scripts/bootos/index.phtml
index 2fef182..828a8bf 100644
--- a/application/views/scripts/bootos/index.phtml
+++ b/application/views/scripts/bootos/index.phtml
@@ -15,20 +15,40 @@
</tr>
<?php foreach ($this->bootoslist as $bootos): ?>
<tr>
- <td><?php echo $bootos->getID(); ?></td>
- <td><?php echo $bootos->getTitle(); ?></td>
- <td><?php echo $bootos->getGroupID(); ?></td>
- <td><?php echo $bootos->getConfigID(); ?></td>
- <td><?php echo $bootos->getPath_init(); ?></td>
- <td><?php echo $bootos->getPath_kernel(); ?></td>
- <td><?php echo $bootos->getDefaultkcl(); ?></td>
- <td><?php echo $bootos->getDescription(); ?></td>
- <td><?php echo $bootos->getCreated(); ?></td>
- <td><?php echo $bootos->getExpires(); ?></td>
- <td><?php echo $bootos->getPublic(); ?></td>
+ <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->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($bootos->getCreated()); ?></td>
+ <td><?php echo $this->escape($bootos->getExpires()); ?></td>
+ <td><?php echo $this->escape($bootos->getPublic()); ?></td>
+ <td><a href="<?php echo $this->url(
+ array(
+ 'controller' => 'bootos',
+ 'action' => 'editbootos',
+ 'bootosID' => $bootos->getID()
+ ),
+ 'default',
+ true, false) ?>">Edit BootOS</a></td>
+ <td><a href="<?php echo $this->url(
+ array(
+ 'controller' => 'bootos',
+ 'action' => 'deletebootos',
+ 'bootosID' => $bootos->getID()
+ ),
+ 'default',
+ true) ?>">Delete BootOS</a></td>
</tr>
<?php endforeach; ?>
</table>
+<br/>
+<?php echo $this->formButton('createbootos', 'Create BootOS', array(
+ 'onclick' => 'self.location="/bootos/createbootos"'))?>
+