diff --git a/app/views/attendance_entries/edit.html.erb b/app/views/attendance_entries/edit.html.erb index 8073218b..0714ba4f 100644 --- a/app/views/attendance_entries/edit.html.erb +++ b/app/views/attendance_entries/edit.html.erb @@ -4,7 +4,7 @@
  • <%= link_to @attendance_entry.name, attendance_entry_path(@attendance_entry) %>
  • Edit
  • -

    An Attendance Entry for <%= @attendance_entry.event.title %>

    +

    <%= @attendance_entry.name %> Edit

    <%= render 'form' %> diff --git a/app/views/attendance_entries/index.html.erb b/app/views/attendance_entries/index.html.erb index 6872eeba..81fe0167 100644 --- a/app/views/attendance_entries/index.html.erb +++ b/app/views/attendance_entries/index.html.erb @@ -3,7 +3,7 @@
  • <%= @event.title %>
  • -

    Attendance List for <%= @event.title %>

    +

    <%= @event.title %> Attendance List

    This table shows only the most useful Yale Phonebook (LDAP) attributes - you can see more details in two ways: diff --git a/app/views/attendance_entries/new.html.erb b/app/views/attendance_entries/new.html.erb index 80aa02cd..7e3da293 100644 --- a/app/views/attendance_entries/new.html.erb +++ b/app/views/attendance_entries/new.html.erb @@ -3,7 +3,7 @@

  • <%= link_to @event.title, event_attendance_entries_path(@event) %>
  • New Entry
  • -

    An Attendance Entry for <%= @event.title %>

    +

    <%= @event.title %> New Attendance Entry

    <%= render 'form' %> diff --git a/app/views/attendance_entries/show.html.erb b/app/views/attendance_entries/show.html.erb index 118836b2..4589d9e1 100644 --- a/app/views/attendance_entries/show.html.erb +++ b/app/views/attendance_entries/show.html.erb @@ -3,6 +3,9 @@
  • <%= link_to @attendance_entry.event.title, event_attendance_entries_path(@attendance_entry.event) %>
  • <%= @attendance_entry.name %>
  • + +

    <%= @attendance_entry.name %> Details

    +

    <%= notice %>

    diff --git a/app/views/events/edit.html.erb b/app/views/events/edit.html.erb index 9759435c..77b33718 100644 --- a/app/views/events/edit.html.erb +++ b/app/views/events/edit.html.erb @@ -3,9 +3,6 @@

  • <%= link_to @event.title, event_path(@event) %>
  • Edit
  • -

    Editing event

    +

    <%= @event.title %> Edit

    -<%= render 'form' %> - -<%= link_to 'Show', @event %> | -<%= link_to 'Back', events_path %> +<%= render 'form' %> \ No newline at end of file diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index d7a686f3..2a9e81c9 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb @@ -14,6 +14,7 @@ + @@ -21,7 +22,6 @@ - @@ -38,11 +38,11 @@ Attendance <% end %> + - <% end %> diff --git a/app/views/events/new.html.erb b/app/views/events/new.html.erb index 6119978e..989f8f54 100644 --- a/app/views/events/new.html.erb +++ b/app/views/events/new.html.erb @@ -1,5 +1,7 @@ +

    New event

    -<%= render 'form' %> - -<%= link_to 'Back', events_path %> +<%= render 'form' %> \ No newline at end of file diff --git a/app/views/events/show.html.erb b/app/views/events/show.html.erb deleted file mode 100644 index 22f76e2d..00000000 --- a/app/views/events/show.html.erb +++ /dev/null @@ -1,14 +0,0 @@ -

    <%= notice %>

    - -

    - Title: - <%= @event.title %> -

    - -

    - Description: - <%= @event.description %> -

    - -<%= link_to 'Edit', edit_event_path(@event) %> | -<%= link_to 'Back', events_path %> diff --git a/app/views/events/show.json.jbuilder b/app/views/events/show.json.jbuilder deleted file mode 100644 index bd101bdf..00000000 --- a/app/views/events/show.json.jbuilder +++ /dev/null @@ -1 +0,0 @@ -json.extract! @event, :title, :description, :created_at, :updated_at
    TitleCount Last Swipe-In
    <%= link_to 'Edit Event', edit_event_path(event), :class => "btn btn-default" %> <%= event.title %> <%= event.description %> <%= event.attendance_entries.count %> <%= event.last_edited %><%= link_to 'Edit', edit_event_path(event), :class => "btn btn-default" %> <%= link_to 'Destroy', event, method: :delete, data: { confirm: 'Are you sure?' }, :class => "btn btn-danger" %>