Sha256: 65773a94d3bdcefc19df814ed704ee8be73708e062f3e51cde0583e7990c8fc8

Contents?: true

Size: 773 Bytes

Versions: 15

Compression:

Stored size: 773 Bytes

Contents

-content_for :main do
  %h1.calendar_icon Calendar Entries

  %div(style="margin-bottom: 10px;")
    = icon_to "New", new_admin_calendar_entry_path + "?calendar_id=#{params[:calendar_id]}" if params[:calendar_id]
  
  %div(style="margin-bottom: 10px;")
    = icon_to "Unapproved Only", "/admin/calendar_entries?calendar_id=#{params[:calendar_id]}&unapproved=1"
    = icon_to "Approved Only", "/admin/calendar_entries?calendar_id=#{params[:calendar_id]}&approved=1"

  = paginate @calendar_entries

  %table
    %tr
      %th Calendar
      %th Name

    - for calendar_entry in @calendar_entries
      %tr
        %td= link_to calendar_entry.calendar.name, "/admin/calendars/#{calendar_entry.calendar_id}"
        %td= link_to calendar_entry.name, [:admin, calendar_entry]

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kit_cms-2.3.22 app/views/admin/calendar_entries/index.html.haml
kit_cms-2.3.20 app/views/admin/calendar_entries/index.html.haml
kit_cms-2.3.19 app/views/admin/calendar_entries/index.html.haml
kit_cms-2.3.18 app/views/admin/calendar_entries/index.html.haml
kit_cms-2.3.17 app/views/admin/calendar_entries/index.html.haml
kit_cms-2.3.16 app/views/admin/calendar_entries/index.html.haml
kit_cms-2.3.15 app/views/admin/calendar_entries/index.html.haml
kit_cms-2.3.14 app/views/admin/calendar_entries/index.html.haml
kit_cms-2.3.13 app/views/admin/calendar_entries/index.html.haml
kit_cms-2.3.11 app/views/admin/calendar_entries/index.html.haml
kit_cms-2.3.10 app/views/admin/calendar_entries/index.html.haml
kit_cms-2.3.9 app/views/admin/calendar_entries/index.html.haml
kit_cms-2.3.8 app/views/admin/calendar_entries/index.html.haml
kit_cms-2.3.7 app/views/admin/calendar_entries/index.html.haml
kit_cms-2.3.6 app/views/admin/calendar_entries/index.html.haml