2017-04-28 13:27:59 +08:00
<%
# 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">
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)
2013-01-15 08:29:56 +08:00
# i.e. *current* student, the course has started %>
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>
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>
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>