From 228d3697bcd0218605be2e28131574cc85293a2e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 17 Mar 2014 12:00:58 -0300 Subject: Squashed 'mod/tasks/' content from commit c9b1097 git-subtree-dir: mod/tasks git-subtree-split: c9b1097ce081d6893f9c939146208559c089dc15 --- views/default/input/tasks/list.php | 27 +++++++++++++++++++++++++++ views/default/input/tasks/priority.php | 13 +++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 views/default/input/tasks/list.php create mode 100644 views/default/input/tasks/priority.php (limited to 'views/default/input/tasks') diff --git a/views/default/input/tasks/list.php b/views/default/input/tasks/list.php new file mode 100644 index 000000000..864f227ab --- /dev/null +++ b/views/default/input/tasks/list.php @@ -0,0 +1,27 @@ + 'object', + 'subtype' => 'tasklist_top', + 'container_guid' => $container_guid, + 'limit' => 0, +)); + +if ($entities) { + $options_values = array(); + foreach ($entities as $entity) { + $options_values[$entity->guid] = $entity->title; + } +} else { + $container_name = get_entity($container_guid)->name; + $options_values = array(0 => elgg_echo('tasks:owner', array($container_name))); +} + +/*echo elgg_view('input/dropdown', array( + 'name' => $vars['name'], + 'options_values' => $options_values, + 'value' => $vars['value'], +));*/ +echo elgg_view('input/hidden', array('name' => $vars['name'], 'value' => $vars['value'])); diff --git a/views/default/input/tasks/priority.php b/views/default/input/tasks/priority.php new file mode 100644 index 000000000..43973beaa --- /dev/null +++ b/views/default/input/tasks/priority.php @@ -0,0 +1,13 @@ + 'low', + '2' => 'normal', + '3' => 'high', +); + +if(!isset($vars['value']) || !$vars['value']){ + $vars['value'] = '2'; +} + +echo elgg_view('input/dropdown', $vars); -- cgit v1.2.3