[%# This is the second page in the account creation flow. It allows you to set some profile information and add the person you invited you (plus some of their communities). Authors: Janine Smith Afuna Copyright (c) 2015 by Dreamwidth Studios, LLC. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. For a copy of the license, please reference 'perldoc perlartistic' or 'perldoc perlgpl'. %] [%- sections.title = ".title" | ml( sitename => site.nameshort ) -%] [%- CALL dw.active_resource_group( "foundation" ) -%] [%- dw.need_res( { group => "foundation" } "stc/css/pages/create.css" ) -%] [%- INCLUDE create/progress.tt step = step -%]
[%- dw.form_auth -%]
[%- 'widget.createaccountprofile.title2' | ml -%]

[%- 'widget.createaccountprofile.info' | ml -%]

[%- IF is_utf8.name -%] [%- form.textbox( label = dw.ml( 'widget.createaccountprofile.field.name' ) name = 'name' ) -%] [%- ELSE -%] [%- form.hidden( name = "name_absent", value = "yes" ) -%]

[%- '/manage/profile/index.bml.error.invalidname2' | ml( aopts => "href='$site.root/utf8convert'" ) -%]

[%- END -%]
[%- form.select( label = dw.ml( 'widget.createaccountprofile.field.genderlabel' ) name = 'gender' hint = dw.ml( 'widget.createaccountprofile.field.genderexp' ) items = gender_list ) -%]
[%- dw.scoped_include( 'components/location.tt', countries_with_regions = countries_with_regions ) -%]
[%- 'widget.createaccountprofile.field.interests' | ml -%]

[%- 'widget.createaccountprofile.field.interests.note' | ml -%]

[%- INCLUDE components/error.tt error_name='interests' -%] [%- INCLUDE interests type='music' examples='beyonce, kpop, queen' -%] [%- INCLUDE interests type='moviestv' examples='game of thrones, marvel, star wars' -%] [%- INCLUDE interests type='books' examples='discworld, lord of the rings, jane austen' -%] [%- INCLUDE interests type='hobbies' examples='knitting, gaming, gardening' -%] [%- INCLUDE interests type='other' examples='folklore, linguistics, tarot' -%]
[%- 'widget.createaccountprofile.field.bio2' | ml -%]
[%- IF is_utf8.bio -%] [%- form.textarea( label = dw.ml( 'widget.createaccountprofile.field.bio.note' ) labelclass = "hidden" name = 'bio' wrap = 'soft' rows = 7 ) -%] [%- ELSE -%] [%- form.hidden( name = "bio_absent", value = "yes" ) -%]

[%- '/manage/profile/index.bml.error.invalidbio' | ml( aopts => "href='$site.root/utf8convert'" ) -%]

[%- END -%]
[%- INCLUDE create/inviter.tt inviter = inviter -%]
[%- form.submit( value = dw.ml( '.btn.next' ) ) -%]
[%- BLOCK interests type='' examples='' -%]
[%- form.textbox( label = dw.ml( "widget.createaccountprofile.field.interests.$type" ) name = "interests_$type" size = 35 placeholder = examples ) -%]
[%- END -%]