forked from railsbridge/bridge_troll
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request railsbridge#119 from lilliealbert/organizer-dashboard
Organizery actions have been moved to an Organizer Dashboard
- Loading branch information
Showing
18 changed files
with
260 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="row-fluid has-giant-header"> | ||
<div class="span7"> | ||
<h1><%= @event.title %></h1> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
<%= render 'events/header' %> | ||
|
||
<h1>Editing event</h1> | ||
|
||
<%= render 'form' %> | ||
<%= render 'shared/actions', links: [ | ||
['Show', @event], | ||
['Back', events_path], | ||
['Back', @event], | ||
['Manage Locations', locations_path], | ||
['Manage Organizers', event_organizers_path(@event)], | ||
['Manage Volunteers', event_volunteers_path(@event)] | ||
] %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<%= render 'header' %> | ||
|
||
<h2>Super Secret Organizer Mission Control Console</h2> | ||
|
||
<% checkin_links = [] %> | ||
<% @event.event_sessions.each do |session| %> | ||
<% checkin_links << ["Check in for #{session.name}", event_event_session_checkins_path(@event, session)] %> | ||
<% end %> | ||
<%= render 'shared/actions', links: checkin_links, additional_class: 'mission-control-actions' %> | ||
<%= render 'shared/actions', additional_class: 'mission-control-actions', links: [ | ||
['Manage Organizers', event_organizers_path(@event)], | ||
['Manage Volunteers', event_volunteers_path(@event)], | ||
['Email Volunteers', volunteer_emails_event_path(@event)] | ||
] %> | ||
<%= render 'shared/actions', additional_class: 'mission-control-actions', links: [ | ||
['Edit Event', edit_event_path(@event)], | ||
['View Event', event_path(@event)], | ||
] %> | ||
|
||
<h2>Volunteer Teaching Preference Totals</h2> | ||
<p>You can assign people's roles on the Manage Volunteers page.</p> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>Wants to teach</th> | ||
<th>Wants to TA</th> | ||
<th>No preference</th> | ||
<th>Non-teaching volunteer</th> | ||
<th>Total volunteers</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td><%= teachers_count(@event.volunteer_rsvps) %></td> | ||
<td><%= tas_count(@event.volunteer_rsvps) %></td> | ||
<td><%= teach_or_ta_count(@event.volunteer_rsvps) %></td> | ||
<td><%= not_teach_or_ta_count(@event.volunteer_rsvps) %></td> | ||
<td><%= @event.volunteer_rsvps.length %></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<div> | ||
<h4>Willing to Teach: <%= teachers_count(@event.volunteer_rsvps) %></h4> | ||
<%= partitioned_volunteer_list(@event.volunteer_rsvps, :teachers) %> | ||
|
||
<h4>Willing to TA: <%= tas_count(@event.volunteer_rsvps) %></h4> | ||
<%= partitioned_volunteer_list(@event.volunteer_rsvps, :tas) %> | ||
|
||
<h4>Willing to Teach or TA: <%= teach_or_ta_count(@event.volunteer_rsvps) %></h4> | ||
<%= partitioned_volunteer_list(@event.volunteer_rsvps, :teach_or_tas) %> | ||
|
||
<h4>Not Interested in Teaching: <%= not_teach_or_ta_count(@event.volunteer_rsvps) %></h4> | ||
<%= partitioned_volunteer_list(@event.volunteer_rsvps, :not_teach_or_tas) %> | ||
|
||
<h4>All Volunteers: <%= @event.volunteer_rsvps.length %></h4> | ||
</div> | ||
|
||
<%= render 'shared/actions', links: [ | ||
['Back', events_path], | ||
] %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.