canvas-lms/app/views/self_enrollments/_successfully_enrolled.html...

45 lines
2.1 KiB
Plaintext
Raw Normal View History

<%
# Copyright (C) 2012 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
%>
Self-enrollments is barely styled in new UI Fixes: CNVS-27633, CNVS-27635, CNVS-27280 Why are we doing this? The fix in CNVS-23227 accidentally created the bug in CNVS-27631. We could keep applying CSS band-aids, or address the root cause: Self- enrollments was never given any love during the new UI work, and needs a little updating to look decent. Test plan: AUTHENTICATE OR REGISTER VIEW - In Course > Settings > more options, enable self-enrollment and the option to add a Join button to the course homepage - To see the view on a web page, log out, then enter the URL you are provided when you enable self-enrollment on your course. New UI: http://cl.ly/1R1y0r0g240j Legacy UI: http://cl.ly/03461e1E472R - If you are in the New UI, try to enter the form without any information, to trigger the error alerts. This will confirm that CNVS-27280 is fixed: http://cl.ly/2O180n2b2o2s - To see the view inside a modal-iframe, go to the course index page, copy the URL from the browser toolbar, then log out, and paste the URL into the browser toolbar. When you hit the course’s index page as a logged-out user, hit the Join this Course button in the sidebar. New UI: http://cl.ly/3E2I3e0K3R2K Legacy UI: Should look the same as New UI AUTHENTICATE-ONLY VIEW - As your admin, disable self-registration: http://screencast.com/t/xeXrRwvta2vc - To see the view on a web page, log out of Canvas, and enter the enroll URL of your course with self-enrollment enabled (see above ^^) New UI: http://cl.ly/1e0k1d2K3G3j Legacy UI: http://cl.ly/1i1c2j0M0Z06 - If you are in the New UI, try to enter the form without any information, to trigger the error alert. This will confirm that CNVS-27280 is fixed: http://cl.ly/1s0o0d283t3V - To see this view inside a modal-iframe, follow the same instructions as for the Authenticate or Register view above ^^ New UI: http://cl.ly/1G141u1s0q0u Legacy UI: Should look the same as New UI JOIN THIS COURSE VIEWS - As an admin re-enable Self-Registration, if you disabled it in the previous steps. - Log in as a student. Go to the course you made with self-enrollment enabled. Click the Join this Course button. This should trigger a series of modals that end with you self-enrolling your student in the class. New UI: http://cl.ly/1v1a421e1020 http://cl.ly/3P2e2P1L0g1L Legacy UI: Should look the same as new UI Change-Id: I7da5a18add63b7b5bc209eeb2ff1dd8eff8f5ae6 Reviewed-on: https://gerrit.instructure.com/73438 Reviewed-by: Colleen Palmer <colleen@instructure.com> Product-Review: Colleen Palmer <colleen@instructure.com> Tested-by: Jenkins QA-Review: Pedro Fajardo <pfajardo@instructure.com>
2016-03-02 05:55:41 +08:00
<div id="enroll_form">
self enrollment refactor to facilitate CN integration fixes #CNVS-1119, potentially supersedes https://gerrit.instructure.com/14501 with a little work. simpler flow that is more consistent with FFT signup. whether you click the "join course" button (popup) or go to the join url, the workflow is the same: 1. if you are authenticated, you just click the enroll button. 2. if you are not authenticated, you can either: 1. enter your (canvas/ldap) credentials and submit to join the course. 2. register and join the course (single form). you will then be dropped on the course dashboard in the pre_registered state just like a /register signup (you have to follow the link in your email to set a password). note that if open registration is turned off, option 2.2 is not available. other items of interest: * fix CSRF vulnerabilities where you can enroll authenticated users in open courses, or un-enroll them if you know their enrollment's UUID * move to shorter course-id-less route (w/ join code) * reuse UserController#create * handy openAsDialog behavior and embedded view mode * better json support in PseudonymSessionsController#create * extract markdown helper from mt * show "you need to confirm your email" popup when you land on the course page the first time (already showed on dashboard) test plan: 1. test the authenticated/unauthenticated scenarios above, for both the popup and join pages 2. regression test of /registration forms Change-Id: I0d8351695356d437bdbba72cb66c23ed268b0d1a Reviewed-on: https://gerrit.instructure.com/15902 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Joe Tanner <joe@instructure.com> QA-Review: Jon Jensen <jon@instructure.com>
2012-12-07 14:28:37 +08:00
<p><%= mt :already_enrolled, "You have successfully enrolled in **%{course}**.", :course => @course.name %></p>
Self-enrollments is barely styled in new UI Fixes: CNVS-27633, CNVS-27635, CNVS-27280 Why are we doing this? The fix in CNVS-23227 accidentally created the bug in CNVS-27631. We could keep applying CSS band-aids, or address the root cause: Self- enrollments was never given any love during the new UI work, and needs a little updating to look decent. Test plan: AUTHENTICATE OR REGISTER VIEW - In Course > Settings > more options, enable self-enrollment and the option to add a Join button to the course homepage - To see the view on a web page, log out, then enter the URL you are provided when you enable self-enrollment on your course. New UI: http://cl.ly/1R1y0r0g240j Legacy UI: http://cl.ly/03461e1E472R - If you are in the New UI, try to enter the form without any information, to trigger the error alerts. This will confirm that CNVS-27280 is fixed: http://cl.ly/2O180n2b2o2s - To see the view inside a modal-iframe, go to the course index page, copy the URL from the browser toolbar, then log out, and paste the URL into the browser toolbar. When you hit the course’s index page as a logged-out user, hit the Join this Course button in the sidebar. New UI: http://cl.ly/3E2I3e0K3R2K Legacy UI: Should look the same as New UI AUTHENTICATE-ONLY VIEW - As your admin, disable self-registration: http://screencast.com/t/xeXrRwvta2vc - To see the view on a web page, log out of Canvas, and enter the enroll URL of your course with self-enrollment enabled (see above ^^) New UI: http://cl.ly/1e0k1d2K3G3j Legacy UI: http://cl.ly/1i1c2j0M0Z06 - If you are in the New UI, try to enter the form without any information, to trigger the error alert. This will confirm that CNVS-27280 is fixed: http://cl.ly/1s0o0d283t3V - To see this view inside a modal-iframe, follow the same instructions as for the Authenticate or Register view above ^^ New UI: http://cl.ly/1G141u1s0q0u Legacy UI: Should look the same as New UI JOIN THIS COURSE VIEWS - As an admin re-enable Self-Registration, if you disabled it in the previous steps. - Log in as a student. Go to the course you made with self-enrollment enabled. Click the Join this Course button. This should trigger a series of modals that end with you self-enrolling your student in the class. New UI: http://cl.ly/1v1a421e1020 http://cl.ly/3P2e2P1L0g1L Legacy UI: Should look the same as new UI Change-Id: I7da5a18add63b7b5bc209eeb2ff1dd8eff8f5ae6 Reviewed-on: https://gerrit.instructure.com/73438 Reviewed-by: Colleen Palmer <colleen@instructure.com> Product-Review: Colleen Palmer <colleen@instructure.com> Tested-by: Jenkins QA-Review: Pedro Fajardo <pfajardo@instructure.com>
2016-03-02 05:55:41 +08:00
<% if @course.user_is_student?(@current_user)
# i.e. *current* student, the course has started %>
self enrollment refactor to facilitate CN integration fixes #CNVS-1119, potentially supersedes https://gerrit.instructure.com/14501 with a little work. simpler flow that is more consistent with FFT signup. whether you click the "join course" button (popup) or go to the join url, the workflow is the same: 1. if you are authenticated, you just click the enroll button. 2. if you are not authenticated, you can either: 1. enter your (canvas/ldap) credentials and submit to join the course. 2. register and join the course (single form). you will then be dropped on the course dashboard in the pre_registered state just like a /register signup (you have to follow the link in your email to set a password). note that if open registration is turned off, option 2.2 is not available. other items of interest: * fix CSRF vulnerabilities where you can enroll authenticated users in open courses, or un-enroll them if you know their enrollment's UUID * move to shorter course-id-less route (w/ join code) * reuse UserController#create * handy openAsDialog behavior and embedded view mode * better json support in PseudonymSessionsController#create * extract markdown helper from mt * show "you need to confirm your email" popup when you land on the course page the first time (already showed on dashboard) test plan: 1. test the authenticated/unauthenticated scenarios above, for both the popup and join pages 2. regression test of /registration forms Change-Id: I0d8351695356d437bdbba72cb66c23ed268b0d1a Reviewed-on: https://gerrit.instructure.com/15902 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Joe Tanner <joe@instructure.com> QA-Review: Jon Jensen <jon@instructure.com>
2012-12-07 14:28:37 +08:00
<%= registration_summary %>
Self-enrollments is barely styled in new UI Fixes: CNVS-27633, CNVS-27635, CNVS-27280 Why are we doing this? The fix in CNVS-23227 accidentally created the bug in CNVS-27631. We could keep applying CSS band-aids, or address the root cause: Self- enrollments was never given any love during the new UI work, and needs a little updating to look decent. Test plan: AUTHENTICATE OR REGISTER VIEW - In Course > Settings > more options, enable self-enrollment and the option to add a Join button to the course homepage - To see the view on a web page, log out, then enter the URL you are provided when you enable self-enrollment on your course. New UI: http://cl.ly/1R1y0r0g240j Legacy UI: http://cl.ly/03461e1E472R - If you are in the New UI, try to enter the form without any information, to trigger the error alerts. This will confirm that CNVS-27280 is fixed: http://cl.ly/2O180n2b2o2s - To see the view inside a modal-iframe, go to the course index page, copy the URL from the browser toolbar, then log out, and paste the URL into the browser toolbar. When you hit the course’s index page as a logged-out user, hit the Join this Course button in the sidebar. New UI: http://cl.ly/3E2I3e0K3R2K Legacy UI: Should look the same as New UI AUTHENTICATE-ONLY VIEW - As your admin, disable self-registration: http://screencast.com/t/xeXrRwvta2vc - To see the view on a web page, log out of Canvas, and enter the enroll URL of your course with self-enrollment enabled (see above ^^) New UI: http://cl.ly/1e0k1d2K3G3j Legacy UI: http://cl.ly/1i1c2j0M0Z06 - If you are in the New UI, try to enter the form without any information, to trigger the error alert. This will confirm that CNVS-27280 is fixed: http://cl.ly/1s0o0d283t3V - To see this view inside a modal-iframe, follow the same instructions as for the Authenticate or Register view above ^^ New UI: http://cl.ly/1G141u1s0q0u Legacy UI: Should look the same as New UI JOIN THIS COURSE VIEWS - As an admin re-enable Self-Registration, if you disabled it in the previous steps. - Log in as a student. Go to the course you made with self-enrollment enabled. Click the Join this Course button. This should trigger a series of modals that end with you self-enrolling your student in the class. New UI: http://cl.ly/1v1a421e1020 http://cl.ly/3P2e2P1L0g1L Legacy UI: Should look the same as new UI Change-Id: I7da5a18add63b7b5bc209eeb2ff1dd8eff8f5ae6 Reviewed-on: https://gerrit.instructure.com/73438 Reviewed-by: Colleen Palmer <colleen@instructure.com> Product-Review: Colleen Palmer <colleen@instructure.com> Tested-by: Jenkins QA-Review: Pedro Fajardo <pfajardo@instructure.com>
2016-03-02 05:55:41 +08:00
<div class="ic-Self-enrollment-footer-modal-layout">
<div class="ic-Self-enrollment-footer">
<div class="ic-Self-enrollment-footer__Primary">
<%= @extra_actions %>
<a class="btn" href="<%= dashboard_url(:registration_success => params[:just_created]) %>" target="_top"><%= t "buttons.go_to_dashboard", "Go to your Dashboard" %></a>
<a class="btn btn-primary" href="<%= course_url(@course, :registration_success => params[:just_created]) %>" target="_top"><%= t "buttons.go_to_course", "Go to the Course" %></a>
</div>
self enrollment refactor to facilitate CN integration fixes #CNVS-1119, potentially supersedes https://gerrit.instructure.com/14501 with a little work. simpler flow that is more consistent with FFT signup. whether you click the "join course" button (popup) or go to the join url, the workflow is the same: 1. if you are authenticated, you just click the enroll button. 2. if you are not authenticated, you can either: 1. enter your (canvas/ldap) credentials and submit to join the course. 2. register and join the course (single form). you will then be dropped on the course dashboard in the pre_registered state just like a /register signup (you have to follow the link in your email to set a password). note that if open registration is turned off, option 2.2 is not available. other items of interest: * fix CSRF vulnerabilities where you can enroll authenticated users in open courses, or un-enroll them if you know their enrollment's UUID * move to shorter course-id-less route (w/ join code) * reuse UserController#create * handy openAsDialog behavior and embedded view mode * better json support in PseudonymSessionsController#create * extract markdown helper from mt * show "you need to confirm your email" popup when you land on the course page the first time (already showed on dashboard) test plan: 1. test the authenticated/unauthenticated scenarios above, for both the popup and join pages 2. regression test of /registration forms Change-Id: I0d8351695356d437bdbba72cb66c23ed268b0d1a Reviewed-on: https://gerrit.instructure.com/15902 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Joe Tanner <joe@instructure.com> QA-Review: Jon Jensen <jon@instructure.com>
2012-12-07 14:28:37 +08:00
</div>
</div>
<% else %>
<%= registration_summary || content_tag(:p, t(:not_available_yet, "We'll send you an email shortly before the course begins.")) %>
Self-enrollments is barely styled in new UI Fixes: CNVS-27633, CNVS-27635, CNVS-27280 Why are we doing this? The fix in CNVS-23227 accidentally created the bug in CNVS-27631. We could keep applying CSS band-aids, or address the root cause: Self- enrollments was never given any love during the new UI work, and needs a little updating to look decent. Test plan: AUTHENTICATE OR REGISTER VIEW - In Course > Settings > more options, enable self-enrollment and the option to add a Join button to the course homepage - To see the view on a web page, log out, then enter the URL you are provided when you enable self-enrollment on your course. New UI: http://cl.ly/1R1y0r0g240j Legacy UI: http://cl.ly/03461e1E472R - If you are in the New UI, try to enter the form without any information, to trigger the error alerts. This will confirm that CNVS-27280 is fixed: http://cl.ly/2O180n2b2o2s - To see the view inside a modal-iframe, go to the course index page, copy the URL from the browser toolbar, then log out, and paste the URL into the browser toolbar. When you hit the course’s index page as a logged-out user, hit the Join this Course button in the sidebar. New UI: http://cl.ly/3E2I3e0K3R2K Legacy UI: Should look the same as New UI AUTHENTICATE-ONLY VIEW - As your admin, disable self-registration: http://screencast.com/t/xeXrRwvta2vc - To see the view on a web page, log out of Canvas, and enter the enroll URL of your course with self-enrollment enabled (see above ^^) New UI: http://cl.ly/1e0k1d2K3G3j Legacy UI: http://cl.ly/1i1c2j0M0Z06 - If you are in the New UI, try to enter the form without any information, to trigger the error alert. This will confirm that CNVS-27280 is fixed: http://cl.ly/1s0o0d283t3V - To see this view inside a modal-iframe, follow the same instructions as for the Authenticate or Register view above ^^ New UI: http://cl.ly/1G141u1s0q0u Legacy UI: Should look the same as New UI JOIN THIS COURSE VIEWS - As an admin re-enable Self-Registration, if you disabled it in the previous steps. - Log in as a student. Go to the course you made with self-enrollment enabled. Click the Join this Course button. This should trigger a series of modals that end with you self-enrolling your student in the class. New UI: http://cl.ly/1v1a421e1020 http://cl.ly/3P2e2P1L0g1L Legacy UI: Should look the same as new UI Change-Id: I7da5a18add63b7b5bc209eeb2ff1dd8eff8f5ae6 Reviewed-on: https://gerrit.instructure.com/73438 Reviewed-by: Colleen Palmer <colleen@instructure.com> Product-Review: Colleen Palmer <colleen@instructure.com> Tested-by: Jenkins QA-Review: Pedro Fajardo <pfajardo@instructure.com>
2016-03-02 05:55:41 +08:00
<div class="ic-Self-enrollment-footer-modal-layout">
<div class="ic-Self-enrollment-footer">
<div class="ic-Self-enrollment-footer__Primary">
<%= @extra_actions %>
<a class="btn btn-primary" href="<%= dashboard_url(:registration_success => params[:just_created]) %>" target="_top"><%= t "buttons.go_to_dashboard", "Go to your Dashboard" %></a>
</div>
self enrollment refactor to facilitate CN integration fixes #CNVS-1119, potentially supersedes https://gerrit.instructure.com/14501 with a little work. simpler flow that is more consistent with FFT signup. whether you click the "join course" button (popup) or go to the join url, the workflow is the same: 1. if you are authenticated, you just click the enroll button. 2. if you are not authenticated, you can either: 1. enter your (canvas/ldap) credentials and submit to join the course. 2. register and join the course (single form). you will then be dropped on the course dashboard in the pre_registered state just like a /register signup (you have to follow the link in your email to set a password). note that if open registration is turned off, option 2.2 is not available. other items of interest: * fix CSRF vulnerabilities where you can enroll authenticated users in open courses, or un-enroll them if you know their enrollment's UUID * move to shorter course-id-less route (w/ join code) * reuse UserController#create * handy openAsDialog behavior and embedded view mode * better json support in PseudonymSessionsController#create * extract markdown helper from mt * show "you need to confirm your email" popup when you land on the course page the first time (already showed on dashboard) test plan: 1. test the authenticated/unauthenticated scenarios above, for both the popup and join pages 2. regression test of /registration forms Change-Id: I0d8351695356d437bdbba72cb66c23ed268b0d1a Reviewed-on: https://gerrit.instructure.com/15902 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Joe Tanner <joe@instructure.com> QA-Review: Jon Jensen <jon@instructure.com>
2012-12-07 14:28:37 +08:00
</div>
</div>
<% end %>
Self-enrollments is barely styled in new UI Fixes: CNVS-27633, CNVS-27635, CNVS-27280 Why are we doing this? The fix in CNVS-23227 accidentally created the bug in CNVS-27631. We could keep applying CSS band-aids, or address the root cause: Self- enrollments was never given any love during the new UI work, and needs a little updating to look decent. Test plan: AUTHENTICATE OR REGISTER VIEW - In Course > Settings > more options, enable self-enrollment and the option to add a Join button to the course homepage - To see the view on a web page, log out, then enter the URL you are provided when you enable self-enrollment on your course. New UI: http://cl.ly/1R1y0r0g240j Legacy UI: http://cl.ly/03461e1E472R - If you are in the New UI, try to enter the form without any information, to trigger the error alerts. This will confirm that CNVS-27280 is fixed: http://cl.ly/2O180n2b2o2s - To see the view inside a modal-iframe, go to the course index page, copy the URL from the browser toolbar, then log out, and paste the URL into the browser toolbar. When you hit the course’s index page as a logged-out user, hit the Join this Course button in the sidebar. New UI: http://cl.ly/3E2I3e0K3R2K Legacy UI: Should look the same as New UI AUTHENTICATE-ONLY VIEW - As your admin, disable self-registration: http://screencast.com/t/xeXrRwvta2vc - To see the view on a web page, log out of Canvas, and enter the enroll URL of your course with self-enrollment enabled (see above ^^) New UI: http://cl.ly/1e0k1d2K3G3j Legacy UI: http://cl.ly/1i1c2j0M0Z06 - If you are in the New UI, try to enter the form without any information, to trigger the error alert. This will confirm that CNVS-27280 is fixed: http://cl.ly/1s0o0d283t3V - To see this view inside a modal-iframe, follow the same instructions as for the Authenticate or Register view above ^^ New UI: http://cl.ly/1G141u1s0q0u Legacy UI: Should look the same as New UI JOIN THIS COURSE VIEWS - As an admin re-enable Self-Registration, if you disabled it in the previous steps. - Log in as a student. Go to the course you made with self-enrollment enabled. Click the Join this Course button. This should trigger a series of modals that end with you self-enrolling your student in the class. New UI: http://cl.ly/1v1a421e1020 http://cl.ly/3P2e2P1L0g1L Legacy UI: Should look the same as new UI Change-Id: I7da5a18add63b7b5bc209eeb2ff1dd8eff8f5ae6 Reviewed-on: https://gerrit.instructure.com/73438 Reviewed-by: Colleen Palmer <colleen@instructure.com> Product-Review: Colleen Palmer <colleen@instructure.com> Tested-by: Jenkins QA-Review: Pedro Fajardo <pfajardo@instructure.com>
2016-03-02 05:55:41 +08:00
</div>