diff options
| author | jpl | 2017-04-07 12:17:47 +0200 |
|---|---|---|
| committer | jpl | 2017-04-07 12:18:47 +0200 |
| commit | a31103a83f25844d0d928d248313d86cedf7be5d (patch) | |
| tree | 65a60fdd4d888601a04b6c139406129fdd18e5fc /app/helpers | |
| parent | 700927525b24ecbbb730db468117838cfd2a1676 (diff) | |
| download | chouette-core-a31103a83f25844d0d928d248313d86cedf7be5d.tar.bz2 | |
Refs #3076: fix include/exclude dates in form for timetables#edit
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/time_tables_helper.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/helpers/time_tables_helper.rb b/app/helpers/time_tables_helper.rb index 267c896bd..88dbda061 100644 --- a/app/helpers/time_tables_helper.rb +++ b/app/helpers/time_tables_helper.rb @@ -20,10 +20,10 @@ module TimeTablesHelper :table_id => "calendar-#{options[:year]}-#{"%02d" % options[:month]}", :table_class => 'calendar', :month_name_class => 'monthName', - :other_month_class => 'otherMonth', + :other_month_class => 'outsideMonth', :day_name_class => 'dayName', :day_class => 'day', - :abbrev => true, + :abbrev => false, :first_day_of_week => 0, :accessible => false, :show_today => true, @@ -69,7 +69,7 @@ module TimeTablesHelper week_days.each do |wday| cal << %(<th id="#{th_id(Date::DAYNAMES[wday], options[:table_id])}" scope="col">) - cal << (options[:abbrev] ? %(<abbr title="#{day_names[wday]}">#{t("calendars.days.#{Date::DAYNAMES[wday].downcase}")}</abbr>) : day_names[wday]) + cal << (options[:abbrev] ? %(<abbr title="#{day_names[wday]}">#{t("calendars.days.#{Date::DAYNAMES[wday].downcase}")}</abbr>) : t("calendars.days.#{Date::DAYNAMES[wday].downcase}")) cal << %(</th>) end @@ -86,7 +86,7 @@ module TimeTablesHelper cell_attrs ||= {} cell_attrs[:headers] = th_id(cur, options[:table_id]) cell_attrs[:class] ||= options[:day_class] - cell_attrs[:class] += " weekendDay" if [0, 6].include?(cur.wday) + cell_attrs[:class] += " weekend" if [0, 6].include?(cur.wday) today = (Time.respond_to?(:zone) && !(zone = Time.zone).nil? ? zone.now.to_date : Date.today) cell_attrs[:class] += " today" if (cur == today) and options[:show_today] @@ -139,7 +139,7 @@ module TimeTablesHelper cell_attrs = {} cell_attrs[:headers] = th_id(date, options[:table_id]) cell_attrs[:class] = options[:other_month_class] - cell_attrs[:class] += " weekendDay" if weekend?(date) + cell_attrs[:class] += " weekend" if weekend?(date) cell_text = date.day if options[:accessible] |
