crossey_app/app/views/admin/entreprises/public_create.html.haml
2013-09-30 17:42:55 +02:00

25 lines
746 B
Plaintext

-content_for :body do
=menu_cms Page.find(1)
>
Inscription à la liste de diffusion
-content_for :sidebar do
=cms_page_children_menu(@page)
=cms_page_sibling_menu(@page)
#calendar_sidebar
=render :partial => "agendas/small_calendar"
-first_month = Agenda.find(:first, :order => :start_at).start_at.beginning_of_month
-last_month = Agenda.find(:last, :order => :start_at).start_at.beginning_of_month
-the_month = last_month
%h2 Agenda par mois
%ul
-while the_month >= first_month
%li=link_to l(the_month.to_date, :format => :month_and_year), {:controller => :home, :action => :agenda_list, :year => the_month.year, :month => the_month.month}
-the_month = the_month.last_month
=cms_show_all_blocks_of(@page)