-
Notifications
You must be signed in to change notification settings - Fork 3
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
- Loading branch information
Showing
45 changed files
with
217 additions
and
181 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,2 @@ | ||
module ConceptsHelper | ||
end |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
class Task < ActiveRecord::Base | ||
|
||
belongs_to :learning_target | ||
belongs_to :concept | ||
|
||
validates_presence_of :status, :content | ||
end |
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,7 +1,7 @@ | ||
class Unit < ActiveRecord::Base | ||
|
||
belongs_to :course | ||
has_many :learning_targets | ||
has_many :concepts | ||
|
||
validates_presence_of :name, :number | ||
end |
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
File renamed without changes.
File renamed without changes.
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,21 @@ | ||
<tr> | ||
<% if current_student.current_progress(@concept.unit.course).nil? %> | ||
<% new_progress %> | ||
<% else %> | ||
<td><%= current_student.current_progress(@concept.unit.course).level%></td> | ||
<td> | ||
<%= current_student.current_progress(@concept.unit.course).comments.last.content if !current_student.current_progress(@concept.unit.course).comments.last.nil? %> | ||
</td> | ||
<td> | ||
<%= current_student.current_progress(@concept.unit.course). | ||
comments.last.commenter_name if !current_student.current_progress( | ||
@concept.unit.course).comments.last.nil? %> | ||
</td> | ||
<% end %> | ||
<td> | ||
<%= link_to "Change Level", '#levelModal', | ||
:class => "btn btn-primary btn-sm changebutton", | ||
:data => { :toggle => "modal" }, | ||
:id => current_student.id %> | ||
</td> | ||
</tr> |
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
2 changes: 1 addition & 1 deletion
2
...arning_targets/_teacher_progress.html.erb → ...views/concepts/_teacher_progress.html.erb
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
6 changes: 3 additions & 3 deletions
6
app/views/learning_targets/show.html.erb → app/views/concepts/show.html.erb
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 was deleted.
Oops, something went wrong.
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,19 @@ | ||
<%= form_tag units_add_concept_path, method: 'post' do %> | ||
<fieldset> | ||
<div class="form-group"> | ||
<%= label_tag :concept_number %> | ||
<%= text_field_tag :concept_number, nil, | ||
class: "form-control", | ||
placeholder: "Concept Number"%><br> | ||
|
||
<%= label_tag :concept_description %> | ||
<%= text_area_tag :concept_desc, nil, | ||
class: "form-control", | ||
rows: "5", | ||
placeholder: "Concept Description" %><br> | ||
<%= hidden_field_tag :current_unit, @unit.id %> | ||
|
||
</div> | ||
<%= submit_tag "Add Concept", class: "btn btn-default" %> | ||
</fieldset> | ||
<% end %> |
8 changes: 4 additions & 4 deletions
8
app/views/teachers/_lt_modal.html.erb → app/views/teachers/_concept_modal.html.erb
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,13 +1,13 @@ | ||
<div class="modal fade" id="ltModal"> | ||
<div class="modal fade" id="conceptModal"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||
<h4 class="modal-title">Create Your Learning Target</h4> | ||
<h4 class="modal-title">Create Concept</h4> | ||
</div> | ||
<div class="modal-body"> | ||
<%= render 'teachers/lt_form' %> | ||
<%= render 'teachers/concept_form' %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
<div class="panel"> | ||
<div class="panel-heading concept-heading clearfix">Concepts | ||
<% if teacher_signed_in? %> | ||
<a data-toggle="modal" href="#conceptModal"> | ||
<button type="button" class="btn btn-default btn-sm pull-right"> | ||
New Concept | ||
</button> | ||
</a> | ||
<% end %> | ||
</div> | ||
<table class="table" data-provides="rowlink"> | ||
<tr> | ||
<th>Concept</th> | ||
<th>Description</th> | ||
<th>View more</th> | ||
</tr> | ||
<% @unit.concepts.each do |concept| %> | ||
<tr> | ||
<td><%= concept.number %></td> | ||
<td><%= concept.description %></td> | ||
<td><%= link_to "View more", concept %></td> | ||
</tr> | ||
<% end %> | ||
</table> | ||
</div> |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
<%= render 'learning_target_list' %> | ||
<%= render 'concept_list' %> |
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,15 +1,19 @@ | ||
<div class="tab-pane active fade in" id="<%= @unit.name %>" > | ||
<% if @unit.learning_targets.first.nil? %> | ||
<div class="tab-pane active fade in" id="<%= @unit.name %>"> | ||
|
||
<% if @unit.concepts.first.nil? %> | ||
|
||
<div class="tab-content"> | ||
<div class="no-courses text-center"> | ||
Would you like to <a data-toggle="modal" href="#ltModal">add a learning target</a> for <%= @unit.name %>? | ||
Would you like to <a data-toggle="modal" href="#conceptModal">add a | ||
concept</a> for <%= @unit.name %>? | ||
</div> | ||
</div> | ||
<% else %> | ||
|
||
<% else %> | ||
|
||
<div class="tab-content"> | ||
<%= render 'learning_target_list' %> | ||
<%= render 'concept_list' %> | ||
</div> | ||
|
||
<% end %> | ||
|
||
<% 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
Oops, something went wrong.