summaryrefslogtreecommitdiffstats
path: root/application/views/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/scripts')
-rw-r--r--application/views/scripts/client/addclient.phtml4
-rw-r--r--application/views/scripts/client/editclient.phtml3
-rw-r--r--application/views/scripts/client/index.phtml16
3 files changed, 21 insertions, 2 deletions
diff --git a/application/views/scripts/client/addclient.phtml b/application/views/scripts/client/addclient.phtml
index 9d1c04e..e5b0bcf 100644
--- a/application/views/scripts/client/addclient.phtml
+++ b/application/views/scripts/client/addclient.phtml
@@ -1 +1,3 @@
-<br /><br /><center>View script for controller <b>Client</b> and script/action name <b>addclient</b></center> \ No newline at end of file
+<?php
+
+echo $this->addclient;
diff --git a/application/views/scripts/client/editclient.phtml b/application/views/scripts/client/editclient.phtml
new file mode 100644
index 0000000..94d6b34
--- /dev/null
+++ b/application/views/scripts/client/editclient.phtml
@@ -0,0 +1,3 @@
+<?php
+
+echo $this->editclient;
diff --git a/application/views/scripts/client/index.phtml b/application/views/scripts/client/index.phtml
index 4095a5f..0eb28b8 100644
--- a/application/views/scripts/client/index.phtml
+++ b/application/views/scripts/client/index.phtml
@@ -1,7 +1,13 @@
<h1>Clients</h1>
<?php if ($this->clients): ?>
-
+ <a href="<?php echo $this->url(
+ array(
+ 'controller' => 'client',
+ 'action' => 'addclient'
+ ),
+ 'default',
+ true) ?>">add client</a>
<!-- A table of filters. -->
<table border=1>
<tr>
@@ -17,6 +23,14 @@
<td><a href="<?php echo $this->url(
array(
'controller' => 'client',
+ 'action' => 'editclient',
+ 'clientID' => $client->getID()
+ ),
+ 'default',
+ true) ?>">edit client</a></td>
+ <td><a href="<?php echo $this->url(
+ array(
+ 'controller' => 'client',
'action' => 'removeclient',
'clientID' => $client->getID()
),