3 $( '[name=school]' ).change(function() {
4 if ( $(this).val() === 'Other' ) {
5 $(this).parent().append('<div class="field" id="otherSchool"><input type="text" name="otherSchool"></div>');
7 if ( $( '#otherSchool' ) ) $( '#otherSchool' ).remove();
14 form#credentials( action = '/register', method = 'POST' )
18 label( for = 'email' ) Email
20 input( type = 'text', name = 'email' )
24 label( for = 'password' ) Password
26 input( type = 'password', name = 'password' )
28 - if ( schools.length > 0 )
31 label( for = 'school' ) School
33 select( name = 'school' )
34 - each school in schools
35 option( value = '#{school.name}' ) #{ school.name }
36 option( value = 'Other' ) Other
40 label( for = 'name' ) Name
42 input( type = 'text', name = 'name' )
46 label( for = 'affil' ) Affiliation
48 select( name = 'affil' )
49 option( value = 'Student' ) Student
50 option( value = 'Teachers Assistant' ) Teachers Assistant