Improve group controllers and views

This commit is contained in:
Frederic Guillot
2016-05-16 20:19:07 -04:00
parent de8ce875f4
commit abdf6f9780
19 changed files with 207 additions and 213 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace Kanboard\Controller;
use Kanboard\Formatter\GroupAutoCompleteFormatter;
/**
* Group Ajax Controller
*
* @package Kanboard\Controller
* @author Frederic Guillot
*/
class GroupAjaxController extends BaseController
{
/**
* Group auto-completion (Ajax)
*
* @access public
*/
public function autocomplete()
{
$search = $this->request->getStringParam('term');
$formatter = new GroupAutoCompleteFormatter($this->groupManager->find($search));
$this->response->json($formatter->format());
}
}