have self enrollment on by default for new courses, fixes #9219
when creating a course from the new dashboard, have self enrollment on by default (provided that the account allows self enrollment) test plan: 1. enable the new dashboard 2. on your root account, allow self enrollment for manually created courses 3. create a new course from the dashboard 4. it should have self enrollment turned on 5. on your root account, disallow self enrollment 6. create a new course from the dashboard 7. it should have self enrollment turned off Change-Id: I79f22b720cf86872b479b3b0fec4bd2a97d08d4e Reviewed-on: https://gerrit.instructure.com/12225 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Ryan Florence <ryanf@instructure.com>
This commit is contained in:
parent
fe99951d28
commit
6221e9c3bb
|
@ -33,7 +33,7 @@
|
|||
<%= text_field_tag :name %>
|
||||
<% end %>
|
||||
|
||||
<% form_for :course, Course.new, :url => api_v1_account_courses_path(@domain_root_account.manually_created_courses_account.id), :html => {:class => 'hide create_course_form'} do |f| %>
|
||||
<% form_for :course, c = Course.new, :url => api_v1_account_courses_path(@domain_root_account.manually_created_courses_account.id), :html => {:class => 'hide create_course_form'} do |f| %>
|
||||
<div>
|
||||
<%= f.blabel :name, :en => "Enter a name for your course" %>
|
||||
<%= f.text_field :name %>
|
||||
|
@ -53,4 +53,5 @@
|
|||
<div style="padding-left: 15px; margin-top: -5px; font-size: 0.8em;"><%= t :student_data_privacy, "(student data will remain private)" %></div>
|
||||
</div>
|
||||
</div>
|
||||
<%= hidden_field_tag "course[self_enrollment]", @domain_root_account.manually_created_courses_account.self_enrollment_allowed?(c) %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue