Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
c5d3efdf
Commit
c5d3efdf
authored
Jul 17, 2012
by
Matthew Mongeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show sign up form if not signed in.
parent
ba8eb93b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletions
+10
-1
lms/static/js/toggle_login_modal.js
+4
-0
lms/templates/portal/course_about.html
+5
-1
lms/templates/signup_modal.html
+1
-0
No files found.
lms/static/js/toggle_login_modal.js
View file @
c5d3efdf
...
@@ -48,6 +48,10 @@
...
@@ -48,6 +48,10 @@
})
})
$
(
modal_id
).
fadeTo
(
200
,
1
);
$
(
modal_id
).
fadeTo
(
200
,
1
);
var
notice
=
$
(
this
).
data
(
'notice'
)
if
(
notice
!==
undefined
)
{
$
(
modal_id
).
find
(
".notice"
).
show
().
html
(
notice
);
}
e
.
preventDefault
();
e
.
preventDefault
();
});
});
...
...
lms/templates/portal/course_about.html
View file @
c5d3efdf
...
@@ -15,7 +15,11 @@
...
@@ -15,7 +15,11 @@
</hgroup>
</hgroup>
<div
class=
"main-cta"
>
<div
class=
"main-cta"
>
<a
href=
"${reverse('enroll', args=[course.id])}"
class=
"register"
>
Register
</a>
%if user.is_authenticated():
<a
href=
"${reverse('enroll', args=[course.id])}"
class=
"register"
>
Register
</a>
%else:
<a
href=
"#signup-modal"
class=
"register"
rel=
"leanModal"
data-notice=
"You must register in order to enroll"
>
Register
</a>
%endif
</div>
</div>
</section>
</section>
...
...
lms/templates/signup_modal.html
View file @
c5d3efdf
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
<hr>
<hr>
</header>
</header>
<div
class=
"notice"
></div>
<form
id=
"enroll_form"
method=
"post"
data-remote=
"true"
action=
"/create_account"
>
<form
id=
"enroll_form"
method=
"post"
data-remote=
"true"
action=
"/create_account"
>
<div
id=
"enroll_error"
class=
"modal-form-error"
name=
"enroll_error"
></div>
<div
id=
"enroll_error"
class=
"modal-form-error"
name=
"enroll_error"
></div>
<label>
E-mail
</label>
<label>
E-mail
</label>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment