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,
);
}
}

View File

@@ -0,0 +1,16 @@
{# vim: ft=htmljinja
#}
<html>
<head>
<title>Események</title>
</head>
<body>
{% if events|length > 0 %}
<ul>
{% for event in events %}
<li>{{ event.title }}</li>
{% endfor %}
</ul>
{% endif %}
</body>
</html>

View File

@@ -20,17 +20,17 @@
{% for group in groups %}
<tr>
<td>[ikon]</td>
<td class="csoport" title="{{ group.description }}"><a href="{{ path('KekRozsakFrontBundle_groupView', {slug: group.slug}) }}">{{ group.name }}</a></td>
<td class="csoport" title="|Csoport leírás|{{ group.description }}"><a href="{{ path('KekRozsakFrontBundle_groupView', {slug: group.slug}) }}">{{ group.name }}</a></td>
<td>
{% if group.isMember(app.user) %}
<span title="Már tag vagy" class="ikon">[tag ikon]</span>
<span title="|Állapot|Már tag vagy" class="ikon">[tag ikon]</span>
{% elseif group.isRequested(app.user) %}
<span title="Már jelentkeztél, de a jelentkezésedet a csoport vezetője még nem fogadta el" class="ikon">[jelentkeztél ikon]</span>
<span title="|Állapot|Már jelentkeztél, de a jelentkezésedet a csoport vezetője még nem fogadta el" class="ikon">[jelentkeztél ikon]</span>
{% else %}
{% if group.isOpen %}
<a href="{{ path('KekRozsakFrontBundle_groupJoin', {slug: group.slug}) }}"><span title="Nyílt csoport, kattints a belépéshez!" class="ikon">[nyílt ikon]</span></a>
<a href="{{ path('KekRozsakFrontBundle_groupJoin', {slug: group.slug}) }}"><span title="|Állapot|Nyílt csoport, kattints a belépéshez!" class="ikon">[nyílt ikon]</span></a>
{% else %}
<a href="{{ path('KekRozsakFrontBundle_groupJoin', {slug: group.slug}) }}"><span title="Zárt csoport, kattints a jelentkezéshez!" class="ikon">[zárt ikon]</span></a>
<a href="{{ path('KekRozsakFrontBundle_groupJoin', {slug: group.slug}) }}"><span title="|Állapot|Zárt csoport, kattints a jelentkezéshez!" class="ikon">[zárt ikon]</span></a>
{% endif %}
{% endif %}
</td>
@@ -43,15 +43,13 @@
{% endblock content %}
{% block bottomscripts %}
<script type="text/javascript">
$('.csoport').tooltip({
track: true,
delay: 0,
fade: 250
$('.csoport').cluetip({
splitTitle: '|',
showTitle: false
});
$('.ikon').tooltip({
track: true,
delay: 0,
fade: 250
splitTitle: '|',
showTitle: false
});
</script>
{% endblock bottomscripts %}