summaryrefslogtreecommitdiffstats
path: root/application/views/scripts
diff options
context:
space:
mode:
authorBjörn Geiger2011-09-14 13:05:49 +0200
committerBjörn Geiger2011-09-14 13:05:49 +0200
commit993ee56edcf4e306385524424b28b515b378ec49 (patch)
tree5b430dca5fab2f2802c4f8e0e96d02efb211032a /application/views/scripts
parentMerge branch 'master' of git.openslx.org:lsfks/projekte/poolctrl (diff)
downloadpoolctrl-993ee56edcf4e306385524424b28b515b378ec49.tar.gz
poolctrl-993ee56edcf4e306385524424b28b515b378ec49.tar.xz
poolctrl-993ee56edcf4e306385524424b28b515b378ec49.zip
neues file vergessen
Diffstat (limited to 'application/views/scripts')
-rw-r--r--application/views/scripts/event/showreports.phtml47
1 files changed, 47 insertions, 0 deletions
diff --git a/application/views/scripts/event/showreports.phtml b/application/views/scripts/event/showreports.phtml
new file mode 100644
index 0000000..2c1c400
--- /dev/null
+++ b/application/views/scripts/event/showreports.phtml
@@ -0,0 +1,47 @@
+<h1>Reports <?php echo $this->eventTitle; ?></h1>
+<?php
+if(count($this->reportlist) > 0) {
+ foreach($this->reportlist as $report) {
+?>
+<style type="text/css">
+label {
+ width: 150px !important;
+}
+</style>
+<div class='listelement'>
+ <div class='element'>
+ <div class='content'>
+ <div class='actions'>
+ <a href="<?php echo $this->url(
+ array(
+ 'controller' => 'event',
+ 'action' => 'deletereport',
+ 'reportID' => $report->getID()
+ ),
+ 'default',
+ true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' />
+ </a>
+ </div>
+ <div class='title'>Run event <?php echo $report->getResult();?>.</div>
+ <div class='subtitle'><?php echo date("m/d/Y H:i", $report->getCreated());?>&nbsp;</div>
+ <div class='details'>
+ <label>Type:</label>
+ <div class='item'><?php echo $report->getType(); ?></div>
+ <?php if($report->getErrors()) { ?>
+ <label>Errors:</label>
+ <div class='item'><?php echo $report->getErrors(); ?>&nbsp;</div>
+ <?php } ?>
+ </div>
+ </div>
+ <div class='clear'></div>
+ </div>
+</div>
+<?php
+ }
+} else {
+ ?>
+<br />
+<br />
+<h3>No reports for this Event available.</h3>
+<?php
+} \ No newline at end of file