agenda-libre-ruby/app/views/events/index.html.haml

17 lines
459 B
Plaintext

%form.region_selector
= select_tag :region,
options_from_collection_for_select(Region.all, 'id', 'name', params[:region]),
prompt: t('region_selector')
= calendar @events, { prev_text: '<<', next_text: '>>', start_day: :monday,
params: { region: params[:region] } } do |event|
%ul.events
%li.event
= link_to event.url do
%strong= event.city
= event.title
.formats
=t '.calendar_in'
rss, iCal ou calendrier Google