Skip to content

Commit

Permalink
Buttons list events
Browse files Browse the repository at this point in the history
  • Loading branch information
GCalmels committed Dec 5, 2014
1 parent c3ca5ff commit dd40030
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ event:
page_header: Évènement
list:
page_header: Les évènements
button:
donate: Faire un don
show: Voir l'évènement
menu:
events: Les évènements
ratings: Classements
Expand Down
6 changes: 5 additions & 1 deletion src/CG/PlatformBundle/Resources/views/Event/list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@
{% for event in events %}
<div class="row jumbotron">

<div class="col-md-12">
<div class="col-md-8">
<p>{{ 'event.name'|trans }}: {{ event.name }}</p>
<p>{{ 'event.short_description'|trans }}: {{ event.shortDescription }}</p>
<p>{{ 'event.location'|trans }}: {{ event.location }}</p>
<p>{{ 'event.date'|trans }}: {{ event.date|date("d/m/Y") }}</p>
</div>
<div class="col-md-4">
<a href="{{ path('cg_platform_event_view', {'id': event.id})}}"class="btn btn-default">{{ 'event.button.show'|trans }}</a>
<a class="btn btn-default">{{ 'event.button.donate'|trans }}</a>
</div>
</div>
{% endfor %}
</ul>
Expand Down
2 changes: 2 additions & 0 deletions src/CG/PlatformBundle/Resources/views/Layout/header.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
<ul class="nav navbar-nav">
<li>
<a href="{{ path('cg_platform_events_list')}}">{{ 'menu.events'|trans({}, 'CGPlatformBundle') }}</a>
</li>
<li>
<a href="{{ path('cg_platform_ratings')}}">{{ 'menu.ratings'|trans({}, 'CGPlatformBundle') }}</a>
</li>
</ul>
Expand Down

0 comments on commit dd40030

Please sign in to comment.