summaryrefslogtreecommitdiffstats
path: root/application/views/scripts
diff options
context:
space:
mode:
authorSimon2011-03-04 20:01:42 +0100
committerSimon2011-03-04 20:01:42 +0100
commite230208572623c0f924db26243229c1fd322cf61 (patch)
tree5340d43202b3715208bd9970b1ebac8757845d10 /application/views/scripts
parentFilters Übersicht, FilterEntries hinzufügen (diff)
downloadpbs2-e230208572623c0f924db26243229c1fd322cf61.tar.gz
pbs2-e230208572623c0f924db26243229c1fd322cf61.tar.xz
pbs2-e230208572623c0f924db26243229c1fd322cf61.zip
Oberfläche der filter wurde verbessert, sodass nun filterentrys angelegt werden können, das löschen dieser filter funktioniert wegen einem fehler im Mapper noch nicht
Diffstat (limited to 'application/views/scripts')
-rw-r--r--application/views/scripts/filter/addfilterentry.phtml3
-rw-r--r--application/views/scripts/filter/index.phtml21
2 files changed, 22 insertions, 2 deletions
diff --git a/application/views/scripts/filter/addfilterentry.phtml b/application/views/scripts/filter/addfilterentry.phtml
new file mode 100644
index 0000000..8bf501a
--- /dev/null
+++ b/application/views/scripts/filter/addfilterentry.phtml
@@ -0,0 +1,3 @@
+<?php
+$this->editfilterform->setAction($this->url());
+echo $this->editfilterform;
diff --git a/application/views/scripts/filter/index.phtml b/application/views/scripts/filter/index.phtml
index 4e5f8af..b3c3013 100644
--- a/application/views/scripts/filter/index.phtml
+++ b/application/views/scripts/filter/index.phtml
@@ -42,9 +42,17 @@ tr.filter{background-color:#DDD;}
),
'default',
true) ?>">delete filter</a></td>
+ <td><a href="<?php echo $this->url(
+ array(
+ 'controller' => 'filter',
+ 'action' => 'addfilterentry',
+ 'filterID' => $filter->getID()
+ ),
+ 'default',
+ true) ?>">add filterentry</a></td>
</tr>
<tr><td></td>
- <td colspan=4>
+ <td colspan=5>
<table style='width:100%;'>
<?php foreach ($this->filterentries as $filterentry): ?>
<?php
@@ -54,7 +62,16 @@ tr.filter{background-color:#DDD;}
<tr>
<td><?php echo $filterentry->getFiltertypeID();?></td>
<td><?php echo $filterentry->getFiltervalue();?></td>
- <td><?php echo $filterentry->getFiltervalue();?></td>
+ <td><?php echo $filterentry->getFiltervalue();?></td>
+ <td><a href="<?php echo $this->url(
+ array(
+ 'controller' => 'filter',
+ 'action' => 'removefilterentry',
+ 'filterID' => $filter->getID(),
+ 'filtertypeID' => $filterentry->getFiltertypeID()
+ ),
+ 'default',
+ true) ?>">remove filterentry</a>
</tr>
<?php endif; ?>
<?php endforeach ?>