aboutsummaryrefslogtreecommitdiff
path: root/mod/tasklist/views
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-18 11:34:19 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-18 11:34:19 +0000
commitc4f61dd4c1b5a28a7c073c734f003ffd45b820d4 (patch)
tree46054d2ccb246d3133c4523d010a3480cf4d84ac /mod/tasklist/views
parent4e7d013c52cdb2ae00f5faf6bae7519bf3dc72ed (diff)
downloadelgg-c4f61dd4c1b5a28a7c073c734f003ffd45b820d4.tar.gz
elgg-c4f61dd4c1b5a28a7c073c734f003ffd45b820d4.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Added VERY simple tasklist plugin. git-svn-id: https://code.elgg.org/elgg/trunk@247 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/tasklist/views')
-rw-r--r--mod/tasklist/views/default/tasklist/item.php21
-rw-r--r--mod/tasklist/views/default/tasklist/main.php13
-rw-r--r--mod/tasklist/views/default/tasklist/newtask.php7
3 files changed, 41 insertions, 0 deletions
diff --git a/mod/tasklist/views/default/tasklist/item.php b/mod/tasklist/views/default/tasklist/item.php
new file mode 100644
index 000000000..a2225300f
--- /dev/null
+++ b/mod/tasklist/views/default/tasklist/item.php
@@ -0,0 +1,21 @@
+<tr>
+ <td><b><?php echo $vars['task'] ?></b></td>
+
+ <td>
+ <?php if ($vars['status']=='done')
+ echo "done";
+ else
+ {
+?>
+ <form method = "post">
+ <input type="hidden" name="action" value="tick" />
+ <input type="hidden" name="status" value="done" />
+ <input type="hidden" name="owner_id" value="<?php echo $vars['owner_id']; ?>"/>
+ <input type="hidden" name="guid" value="<?php echo $vars['guid']; ?>"/>
+ <input type="submit" name="Done" value="Done" />
+ </form>
+<?php
+ }
+?>
+ </td>
+</tr> \ No newline at end of file
diff --git a/mod/tasklist/views/default/tasklist/main.php b/mod/tasklist/views/default/tasklist/main.php
new file mode 100644
index 000000000..bb530b3c6
--- /dev/null
+++ b/mod/tasklist/views/default/tasklist/main.php
@@ -0,0 +1,13 @@
+<?php
+ /**
+ * Simple tasklist plugin.
+ * @author Marcus Povey <marcus@dushka.co.uk>
+ */
+
+?>
+<h1><?php echo $vars['name'] ?>'s Tasklist</h1>
+<?php echo $vars['tasklist']; ?>
+
+<?php echo $vars['newtask']; ?>
+
+
diff --git a/mod/tasklist/views/default/tasklist/newtask.php b/mod/tasklist/views/default/tasklist/newtask.php
new file mode 100644
index 000000000..420c409d6
--- /dev/null
+++ b/mod/tasklist/views/default/tasklist/newtask.php
@@ -0,0 +1,7 @@
+<form method="post">
+ <textarea name="task"></textarea>
+ <input type="hidden" name="action" value="newtask"/>
+ <input type="hidden" name="guid" value="<?php echo $vars['guid']; ?>"/>
+ <input type="hidden" name="owner_id" value="<?php echo $vars['owner_id']; ?>"/>
+ <input type="submit" name="submit" />
+</form> \ No newline at end of file