diff options
| author | michael pereira | 2011-03-21 10:49:32 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-21 10:49:32 +0100 |
| commit | 19d1af16ad8a2fdaa5aa608693b81fa9502e162d (patch) | |
| tree | b5b00a6fb91fffad157b85bbf209ac7675a86801 /application/modules/dev/views/scripts/preboot | |
| parent | Filter funktioniert nun, FBGui IndexController angepasst (diff) | |
| download | pbs2-19d1af16ad8a2fdaa5aa608693b81fa9502e162d.tar.gz pbs2-19d1af16ad8a2fdaa5aa608693b81fa9502e162d.tar.xz pbs2-19d1af16ad8a2fdaa5aa608693b81fa9502e162d.zip | |
Preboot Controller eingerichtet
Diffstat (limited to 'application/modules/dev/views/scripts/preboot')
3 files changed, 65 insertions, 0 deletions
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 |
