forked from psu-capstone-alfa/alfa-cam
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added Offering Summary
- Loading branch information
Showing
7 changed files
with
91 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div id="offering-summary"> | ||
<% if offering.is_complete? :details %> | ||
<%= render partial: 'offerings/details/summary', locals: {offering: offering} %> | ||
<% end %> | ||
<% if offering.is_complete? :objectives %> | ||
<%= render partial: 'offerings/objectives/summary', locals: {offering: offering} %> | ||
<% end %> | ||
<% if offering.is_complete? :content %> | ||
<%= render partial: 'offerings/content/summary', locals: {offering: offering} %> | ||
<% end %> | ||
</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 +1,12 @@ | ||
Nothing here but us words | ||
<div class="row summary content"> | ||
<div class="title span2"> | ||
<h2 class="middle">Content</h2> | ||
</div> | ||
<div class="span5"> | ||
<ul class="horizontal-list"> | ||
<% offering.content_groups.each do |cg| %> | ||
<li><%= cg.content.count %><br><%= cg.name %></li> | ||
<% end %> | ||
</ul></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,2 +1,22 @@ | ||
Nothing here but us words | ||
|
||
<div class="row details summary"> | ||
<div class="span2"> | ||
<dl class=""> | ||
<dt>CRN #</dt> | ||
<dd><%= offering.crn %></dd> | ||
<dt>Section(s)</dt> | ||
<dd><%= offering.section %></dd> | ||
<dt>Credits</dt> | ||
<dd><%= offering.credits %></dd> | ||
<dt>Location</dt> | ||
<dd><%= offering.location %></dd> | ||
|
||
</dl></div> | ||
<div class="span5"> | ||
<dl class="padded"> | ||
<dt>Description</dt> | ||
<dd><%= offering.description %></dd> | ||
<dt>Primary Textbook</dt> | ||
<dd><%= offering.textbook %></dd> | ||
</dl> | ||
</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
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,2 +1,29 @@ | ||
Nothing here but us words | ||
<div class="row summary objectives"> | ||
<div class="title span2"> | ||
<h2 class="middle">Objectives</h2> | ||
</div> | ||
<div class="span5"> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th colspan="11" style="text-align: center"> | ||
<%= offering.objectives.count %> objectives meeting outcomes | ||
</th> | ||
</tr> | ||
<tr> | ||
<% offering.outcomes.each do |outcome| %> | ||
<th class="col-outcome"><%= outcome.key %></th> | ||
<% end %> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<% offering.summed_mappings.each do |value| %> | ||
<td class="col-oucome"><%= value %></td> | ||
<% end %> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</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