Sha256: 283cc3e74dd623dcaf68bfb84fdd06f7544dd1741e3b0f0dc66bc1699f09da56

Contents?: true

Size: 822 Bytes

Versions: 1

Compression:

Stored size: 822 Bytes

Contents

- add_title Calendar.model_name.human.pluralize
= date_book_scripts
.row
  .col-md-9
    #calendar-display
  .col-md-3
    %ul.calendars
      - @calendars.each do |calendar|
        %li.calendar{ class: calendar.css_class }
          = link_to calendar.name, calendar
- add_footer_javascript do
  :javascript
    $(function() {
      $('#calendar-display').fullCalendar({
        events: {
          url: '#{date_book.api_path format: :json}',
          type: 'POST',
          data: { query: calendarEventsQuery },
          success: function(data, status, xhr) {
            data = data.data.event_occurrences;
            new_data = $.map(data, formatEventOccurrence);
            return new_data;
          }
        },
        eventRender: calendarEventRender,
        header: calendarEventHeader,
      });
    });

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
date_book-0.0.6 app/views/date_book/calendars/index.html.haml