Moved tooltips from jquery.tooltip to jquery-cluetip

Also removed no longer needed jquery.tooltip related files

Signed-off-by: Gergely Polonkai <polesz@w00d5t0ck.info>
This commit is contained in:
Polonkai Gergely
2012-08-01 01:26:25 +02:00
parent ac6467f649
commit 0377233eb6
11 changed files with 62 additions and 730 deletions

View File

@@ -59,7 +59,7 @@ class EventController extends Controller
/**
* @Route("/esemenyek/{date}", name="KekRozsakFrontBundle_eventList")
* @Template()
* @ParamConverter("date", class="DateTime", options={"format": "Y-m-d"})
* @ParamConverter("date", options={"format": "Y-m-d"})
*/
public function listAction(\DateTime $date)
{
@@ -72,4 +72,21 @@ class EventController extends Controller
'events' => $events,
);
}
/**
* @Route("/esemenyek/{date}/ajax-lista.{_format}", name="KekRozsakFrontBundle_eventAjaxList", requirements={=_format": "html"})
* @Template()
* @ParamConverter("date", options={"format": "Y-m-d"})
*/
public function ajaxListAction(\DateTime $date)
{
$query = $this->getDoctrine()->getEntityManager()->createQuery('SELECT e FROM KekRozsakFrontBundle:Event e WHERE e.cancelled = FALSE AND ((e.startDate < :day AND e.endDate >= :day) OR e.startDate = :day)');
$query->setParameter('day', $date, \Doctrine\DBAL\Types\Type::DATE);
$events = $query->getResult();
return array(
'day' => $date,
'events' => $events,
);
}
}