diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-05-05 18:26:07 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-05-05 18:26:13 +0200 |
commit | 2facf509cc172ab822f573f3b582caef59995dc1 (patch) | |
tree | f1fd342291a90ac9b625729844f6448743e74696 /apps/tasks/ajax/edittaskform.php | |
parent | d46bea8867593399c04ea18bb6ad090aa2a258f2 (diff) | |
parent | 2092caf6d3be26dbb009c2f6585212841f5c823a (diff) | |
download | nextcloud-server-2facf509cc172ab822f573f3b582caef59995dc1.tar.gz nextcloud-server-2facf509cc172ab822f573f3b582caef59995dc1.zip |
Merge branch 'tasks' for Tasks app
Diffstat (limited to 'apps/tasks/ajax/edittaskform.php')
-rw-r--r-- | apps/tasks/ajax/edittaskform.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/apps/tasks/ajax/edittaskform.php b/apps/tasks/ajax/edittaskform.php new file mode 100644 index 00000000000..a439a0c0317 --- /dev/null +++ b/apps/tasks/ajax/edittaskform.php @@ -0,0 +1,24 @@ +<?php + +// Init owncloud +OCP\JSON::checkLoggedIn(); +OCP\JSON::checkAppEnabled('tasks'); + +$id = $_GET['id']; +$details = OC_Calendar_App::getVCalendar($id)->VTODO; +$categories = $details->getAsString('CATEGORIES'); + +$category_options = OC_Calendar_App::getCategoryOptions(); +$percent_options = range(0, 100, 10); +$priority_options = OC_Task_App::getPriorityOptions(); + +$tmpl = new OC_Template('tasks','part.edittaskform'); +$tmpl->assign('category_options', $category_options); +$tmpl->assign('percent_options', $percent_options); +$tmpl->assign('priority_options', $priority_options); +$tmpl->assign('id',$id); +$tmpl->assign('details',$details); +$tmpl->assign('categories', $categories); +$page = $tmpl->fetchPage(); + +OCP\JSON::success(array('data' => array( 'page' => $page ))); |