Commit badb0d73 by Matthew Mongeau

Add month names

parent 6757ba3f
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<%! from django_countries.countries import COUNTRIES %> <%! from django_countries.countries import COUNTRIES %>
<%! from student.models import UserProfile %> <%! from student.models import UserProfile %>
<%! from datetime import date %> <%! from datetime import date %>
<%! import calendar %>
<section id="signup-modal" class="modal signup-modal"> <section id="signup-modal" class="modal signup-modal">
<div class="inner-wrapper"> <div class="inner-wrapper">
...@@ -59,7 +60,7 @@ ...@@ -59,7 +60,7 @@
<select name='date_of_birth__month'> <select name='date_of_birth__month'>
<option value="">month</option> <option value="">month</option>
%for month in range(1,13): %for month in range(1,13):
<option value="${month}">${month}</option> <option value="${month}">${month} - ${calendar.month_name[month]}</option>
%endfor %endfor
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment