diff --git a/app/assets/stylesheets/style.css.scss b/app/assets/stylesheets/style.css.scss
index ea9368e34..60bfc1bd3 100755
--- a/app/assets/stylesheets/style.css.scss
+++ b/app/assets/stylesheets/style.css.scss
@@ -144,8 +144,12 @@ div.main-header img {
}
/* Custom Form Styling */
+form#edit_editCourse {
+ margin-top: 80px;
+}
+
.input-field{
- padding-bottom: 4vh !important;
+ padding-bottom: 3vh !important;
}
.input-field label{
@@ -162,6 +166,11 @@ input:not([type]):disabled, input[type=text]:disabled, input[type=password]:disa
color: #666;
}
+input[type=text], input[type=email]{
+ color: black;
+ font-weight: 400;
+}
+
.tabs{
overflow-x: hidden;
}
@@ -171,7 +180,12 @@ input:not([type]):disabled, input[type=text]:disabled, input[type=password]:disa
}
.checkbox-input{
- margin-bottom: 5vh;
+ // margin-bottom: 5vh;
+ margin-top: 2vh;
+}
+
+.btn-primary{
+ //margin-top:3vh;
}
@@ -399,7 +413,7 @@ div#footer .right {
div#footer a {
display: inline-block;
padding: 12px;
- color: $autolab-highlight-gray;
+ color: #666;
}
div#footer div.fb-like.fb_iframe_widget {
@@ -725,9 +739,9 @@ body.autolab {
}
}
-input[type="text"],
-input[type="email"],
-input[type="password"], {
+input[type=text],
+input[type=email],
+input[type=password], {
/*border: none;*/
height: auto;
margin-top: 0.8rem;
@@ -737,19 +751,19 @@ input[type="password"], {
box-shadow: 0 1px 0 0 #CCC;
}
-input[type="text"]:focus,
-input[type="email"]:focus,
-input[type="password"]:focus {
+input[type=text]:focus,
+input[type=email]:focus,
+input[type=password]:focus {
/*border: 1px solid rgba(133, 0, 0, 1);*/
outline: none;
}
-input[type="checkbox"] {
+input[type=checkbox] {
// For spacing between this and an adjacent label
margin-right: 10px;
}
-input[type="search"] {
+input[type=search] {
border-bottom: 1px #CCC;
box-shadow: 0 1px 0 0 #CCC;
}
@@ -795,17 +809,17 @@ textarea {
}
label.active {
- font-size: inherit;
+ font-size: 20px;
}
}
-input[type=text] {
+input[type=text], input[type=email] {
box-sizing: border-box;
margin-bottom: 10px;
}
.help-block {
- color: #4e4e4e;
+ color: black;
font-size: 15px;
margin-left: 8px;
margin-top: 2px;
diff --git a/app/controllers/assessment/autograde.rb b/app/controllers/assessment/autograde.rb
index 10866e160..db81fa81d 100644
--- a/app/controllers/assessment/autograde.rb
+++ b/app/controllers/assessment/autograde.rb
@@ -76,7 +76,7 @@ def regradeBatch
redirect_to([@course, @assessment, :submissions]) && return
elsif job < 0 # autograding failed
failed_jobs += 1
- failed_list += "#{@submission.filename}: autograding error.
"
+ failed_list += "#{submission.filename}: autograding error.
"
end
else
failed_jobs += 1
@@ -119,7 +119,7 @@ def regradeAll
redirect_to([@course, @assessment, :submissions]) && return
elsif job < 0 # autograding failed
failed_jobs += 1
- failed_list += "#{@submission.filename}: autograding error.
"
+ failed_list += "#{submission.filename}: autograding error.
"
end
else
failed_jobs += 1
diff --git a/app/form_builders/form_builder_with_date_time_input.rb b/app/form_builders/form_builder_with_date_time_input.rb
index 0b8988855..b985e3efd 100755
--- a/app/form_builders/form_builder_with_date_time_input.rb
+++ b/app/form_builders/form_builder_with_date_time_input.rb
@@ -4,7 +4,7 @@
# custom datetimepicker. In reality, it's goal is to wrap common form builder
# methods in Bootstrap boilerplate code.
class FormBuilderWithDateTimeInput < ActionView::Helpers::FormBuilder
- %w(text_field text_area).each do |method_name|
+ %w(text_field text_area email_field).each do |method_name|
# retain access to default textfield, etc. helpers
alias_method "vanilla_#{method_name}", method_name
diff --git a/app/views/assessments/new.html.erb b/app/views/assessments/new.html.erb
index 58e56ee34..d7a5f39d2 100755
--- a/app/views/assessments/new.html.erb
+++ b/app/views/assessments/new.html.erb
@@ -19,11 +19,10 @@
or
diff --git a/app/views/course_user_data/_fields.html.erb b/app/views/course_user_data/_fields.html.erb new file mode 100644 index 000000000..d3c2f79b6 --- /dev/null +++ b/app/views/course_user_data/_fields.html.erb @@ -0,0 +1,42 @@ +<%= f.fields_for :user, cud.user do |u| %> + <%= u.email_field :email, disabled: true, placeholder: "johndoe@example.com" %> + + <%= u.text_field :first_name, disabled: true, placeholder: "John" %> + <%= u.text_field :last_name, disabled: true, placeholder: "Doe" %> + + <% end %> + + <%= f.text_field :nickname, help_text: "Anonymizing nickname to display on the public scoreboards", placeholder: "batman" %> + + <%= isDisabled = false + if !@cud.instructor? then + isDisabled = true + end + f.text_field :lecture, help_text: "The lecture number", placeholder: "15213", disabled: isDisabled %> + + <%= isDisabled = false + if !@cud.instructor? then + isDisabled = true + end + f.text_field :section, help_text: "A course assistant can see the gradebook and bulk-release grades for their assigned lecture and section.", placeholder: "A", disabled: isDisabled %> + + <% if @cud.instructor? then %> + +Course | <%= @editCUD.course.display_name %> | |
---|---|---|
First name: | <%= u.text_field :first_name %> | |
Last name: | <%= u.text_field :last_name %> | |
Email: | <%= u.text_field :email %> | |
Nickname: | <%= f.text_field :nickname %> | -Anonymizing nickname to display on the public scoreboards |
School | <%= @editCUD.user.school or "N/A" %> | -Ex: SCS/CIT |
Major | <%= @editCUD.user.major or "N/A"%> | -Ex: CS/ECE |
Year | <%= @editCUD.user.year or "N/A" %> | -Ex: 3 |
Lecture | <%= if @cud.instructor? then f.text_field :lecture else @editCUD.lecture end %> | -Ex: 15213/18213 |
Section | <%= if (@cud.instructor?) or (@editCUD.course.name == "15213-s11") then f.text_field :section else @editCUD.section end%> | -Ex: C<% if @cud.instructor? %>. A course assistant can see the gradebook and bulk-release grades for their assigned lecture and section.<% end %> |
Course average tweak: | -- <%= f.fields_for :tweak, @editCUD.tweak do |t| %> - <%= t.text_field :value, :size => 18 %> - <%= t.select :kind, options_for_select({"points" => "points", "%" => "percent"}, :selected => (@editCUD.tweak ? @editCUD.tweak.kind : "points")) %> - <% end %> - | btn primary handin-btn -A tweak is a positive or negative value that adjusts the student's course average. Ex: A tweak of 5 points would increase the student's course average by 5 points. |
-
Dropped? | <%= f.check_box :dropped %> | -Dropping a student from a course prevents them from handing in submissions or downloading assessments. Additionally they do not appear in any gradebook. None of their account information or submissions are deleted. |
Instructor? | <%= f.check_box :instructor %> | -Instructors have full read/write access to the course. |
Course assistant? | <%= f.check_box :course_assistant %> | -Course assistants can assign scores to problems and nothing else. |
Course | <%= @course.display_name %> | |
---|---|---|
User Email: * | <%= u.email_field :email %> | -User Lookup - (Enter email, then click this link to fill in user info from records) |
First Name * | <%= u.text_field :first_name %> | -|
Last Name * | <%= u.text_field :last_name %> | -|
Nickname: | <%= f.text_field :nickname %> | -Anonymizing nickname to display on the public scoreboards |
Lecture | <%= if @cud.instructor? then f.text_field :lecture else @newCUD.lecture end %> | -Ex: 15213/18213 |
Section | <%= if (@cud.instructor?) or (@newCUD.course.name == "15213-s11") then f.text_field :section else @newCUD.section end%> | -Ex: C<% if @cud.instructor? %>. A course assistant can see the gradebook and bulk-release grades for their assigned lecture and section.<% end %> |
Course average tweak: | -- <%= f.fields_for :tweak, @newCUD.tweak do |t| %> - <%= t.text_field :value, :size => 18, :value => "0" %> - <%= t.select :kind, options_for_select({"points" => "points", "%" => "percent"}, :selected => (@newCUD.tweak ? @newCUD.tweak.kind : "points")) %> - <% end %> - | -A tweak is a positive or negative value that adjusts the student's course average. Ex: A tweak of 5 points would increase the student's course average by 5 points. |
-
Dropped? | <%= f.check_box :dropped %> | -Dropping a student from a course prevents them from handing in submissions or downloading assessments. Additionally they do not appear in any gradebook. None of their account information or submissions are deleted. |
Instructor? | <%= f.check_box :instructor %> | -Instructors have full read/write access to the course. |
Course assistant? | <%= f.check_box :course_assistant %> | -Course assistants can assign scores to problems and nothing else. |
<%= f.email_field :email, readonly: true %> | |
First name: | <%= f.text_field :first_name %> |
Last name: | <%= f.text_field :last_name %> |
Administrator? | <%= f.check_box :administrator %> - |