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
456054a2
Commit
456054a2
authored
Jul 12, 2012
by
Matthew Mongeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup.
parent
67221b07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
common/djangoapps/student/views.py
+5
-5
lms/templates/signup_modal.html
+3
-3
No files found.
common/djangoapps/student/views.py
View file @
456054a2
...
...
@@ -235,11 +235,11 @@ def create_account(request, post_override=None):
r
.
register
(
u
)
up
=
UserProfile
(
user
=
u
)
up
.
name
=
post_vars
[
'name'
]
up
.
language
=
post_vars
[
'language'
]
up
.
country
=
post_vars
[
'country'
]
up
.
gender
=
post_vars
[
'gender'
]
up
.
mailing_address
=
post_vars
[
'mailing_address'
]
up
.
name
=
post_vars
[
'name'
]
up
.
language
=
post_vars
[
'language'
]
up
.
country
=
post_vars
[
'country'
]
up
.
gender
=
post_vars
[
'gender'
]
up
.
mailing_address
=
post_vars
[
'mailing_address'
]
up
.
save
()
# TODO (vshnayder): the LMS should probably allow signups without a particular course too
...
...
lms/templates/signup_modal.html
View file @
456054a2
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%!
from
django_countries
import
countries
%
>
<
%!
from
django_countries
.
countries
import
COUNTRIES
%
>
<
%!
from
student
.
models
import
UserProfile
%
>
<section
id=
"signup-modal"
class=
"modal signup-modal"
>
...
...
@@ -29,8 +29,8 @@
</p>
<label>
Country of citizenship
</label>
<select
name=
"country"
>
%for co
de, country in countries.
COUNTRIES:
<option
value=
"${co
de}"
>
${country
}
</option>
%for co
untry_code, country_name in
COUNTRIES:
<option
value=
"${co
untry_code}"
>
${country_name
}
</option>
%endfor
</select>
<label>
Preferred Language
</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