-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/#4 create course reviews
- Loading branch information
Showing
37 changed files
with
759 additions
and
138 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,7 @@ | ||
course_review_page = Proc.new do | ||
menu parent: "Models" | ||
|
||
permit_params :overall_rating, :challenge_rating, :inclusivity_rating, :comments, :course_id, :work_per_week | ||
end | ||
|
||
ActiveAdmin.register CourseReview, :namespace => :admin, &course_review_page |
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.
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,17 @@ | ||
// Place all the behaviors and hooks related to the matching controller here. | ||
// All this logic will automatically be available in application.js. | ||
// You can use CoffeeScript in this file: http://coffeescript.org/ | ||
$( document ).ready(function() { | ||
$(document).ready(function () { | ||
$('select[id*="time"]').wrap('<div class="select">'); | ||
|
||
$(".expand-search-options").click(function (e) { | ||
e.preventDefault(); | ||
$(".expandable").toggle('slow', 'swing', function () { | ||
if ($('.expandable').css('display') == 'block') { | ||
$(".expand-search-options").text("Hide advanced search") | ||
} else { | ||
$(".expand-search-options").text("Show advanced search") | ||
} | ||
}); | ||
}); | ||
}); |
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.
Oops, something went wrong.