summaryrefslogtreecommitdiffstats
path: root/application/views
diff options
context:
space:
mode:
authorSimon2011-03-07 13:57:04 +0100
committerSimon2011-03-07 13:57:04 +0100
commit5688b750744f8568414dc745961747e5629bd194 (patch)
treed8821314ada6f422d3d362666e7060af502709a3 /application/views
parentview variable in application.ini hinzugefügt (diff)
downloadpbs2-5688b750744f8568414dc745961747e5629bd194.tar.gz
pbs2-5688b750744f8568414dc745961747e5629bd194.tar.xz
pbs2-5688b750744f8568414dc745961747e5629bd194.zip
Pool actions zum bearbeiten von Pools hinzugefügt
Diffstat (limited to 'application/views')
-rw-r--r--application/views/scripts/pool/createpool.phtml3
-rw-r--r--application/views/scripts/pool/editpool.phtml5
-rw-r--r--application/views/scripts/pool/index.phtml28
-rw-r--r--application/views/scripts/pool/linkclient.phtml1
-rw-r--r--application/views/scripts/pool/unlinkclient.phtml1
5 files changed, 34 insertions, 4 deletions
diff --git a/application/views/scripts/pool/createpool.phtml b/application/views/scripts/pool/createpool.phtml
index 3d7f8ca..305b36e 100644
--- a/application/views/scripts/pool/createpool.phtml
+++ b/application/views/scripts/pool/createpool.phtml
@@ -1 +1,2 @@
-<br /><br /><center>View script for controller <b>Pool</b> and script/action name <b>createpool</b></center> \ No newline at end of file
+<?php
+echo $this->addpool;
diff --git a/application/views/scripts/pool/editpool.phtml b/application/views/scripts/pool/editpool.phtml
index c70464e..359a5f9 100644
--- a/application/views/scripts/pool/editpool.phtml
+++ b/application/views/scripts/pool/editpool.phtml
@@ -1 +1,4 @@
-<br /><br /><center>View script for controller <b>Pool</b> and script/action name <b>editpool</b></center> \ No newline at end of file
+<h1>Edit Pool</h1>
+<?php
+
+echo $this->editpoolform;
diff --git a/application/views/scripts/pool/index.phtml b/application/views/scripts/pool/index.phtml
index 989cf41..1bee0fe 100644
--- a/application/views/scripts/pool/index.phtml
+++ b/application/views/scripts/pool/index.phtml
@@ -1,5 +1,13 @@
<h1>Pools</h1>
+<a href="<?php echo $this->url(
+ array(
+ 'controller' => 'pool',
+ 'action' => 'createpool'
+ ),
+ 'default',
+ true) ?>">create pool</a>
+
<?php if ($this->pools): ?>
<!-- A table of filters. -->
@@ -19,11 +27,27 @@
<td><a href="<?php echo $this->url(
array(
'controller' => 'pool',
- 'action' => 'removepool',
+ 'action' => 'editpool',
+ 'poolID' => $pool->getID()
+ ),
+ 'default',
+ true) ?>">edit pool</a></td>
+ <td><a href="<?php echo $this->url(
+ array(
+ 'controller' => 'pool',
+ 'action' => 'deletepool',
+ 'poolID' => $pool->getID()
+ ),
+ 'default',
+ true) ?>">delete pool</a></td>
+ <td><a href="<?php echo $this->url(
+ array(
+ 'controller' => 'pool',
+ 'action' => 'linkclient',
'poolID' => $pool->getID()
),
'default',
- true) ?>">remove pool</a></td>
+ true) ?>">link client</a></td>
</tr>
<?php endforeach ?>
</table>
diff --git a/application/views/scripts/pool/linkclient.phtml b/application/views/scripts/pool/linkclient.phtml
new file mode 100644
index 0000000..1cc06e4
--- /dev/null
+++ b/application/views/scripts/pool/linkclient.phtml
@@ -0,0 +1 @@
+<br /><br /><center>View script for controller <b>Pool</b> and script/action name <b>linkclient</b></center> \ No newline at end of file
diff --git a/application/views/scripts/pool/unlinkclient.phtml b/application/views/scripts/pool/unlinkclient.phtml
new file mode 100644
index 0000000..35aa9c5
--- /dev/null
+++ b/application/views/scripts/pool/unlinkclient.phtml
@@ -0,0 +1 @@
+<br /><br /><center>View script for controller <b>Pool</b> and script/action name <b>unlinkclient</b></center> \ No newline at end of file