[%# This is the first and main page in the account creation flow It lets you register your account name, provide email address, etc 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" } "js/components/jquery.validation.js" "js/components/jquery.check-username.js" "stc/css/components/check-username.css" "js/pages/jquery.create.js" "stc/css/pages/create.css" ) -%] [%- INCLUDE create/progress.tt step = step -%]
[%- dw.form_auth -%] [%- IF from; form.hidden( name = "from", value = from ); END -%] [%- IF code; form.hidden( name = "code", value = code ); END -%]
[%- '.section.account' | ml -%]
[%- form.textbox( name = "user" id = "js-user" # maxlength is one over the actual max, so if people # don't notice that they hit the limit, # we give them a warning. (some people don't notice/proofread) maxlength = username_maxlength + 1 "aria-required" = "true" class = "journaltype-textbox user-textbox" # FIXME: value = post->user / get->user ) -%]
.[% site.domain %]
[%- INCLUDE tooltip text='.tip.username' id='user'-%]
[%- form.textbox( label = dw.ml( '.field.email' ) name = 'email' maxlength = 50 "aria-required" = "true" hint = email_checkbox ) -%]
[%- INCLUDE tooltip text='.tip.email' id='email' -%]
[%- form.password( label = dw.ml( '.field.password' ) name = 'password1' maxlength = password_maxlength + 1 "aria-required" = "true" ) -%]
[%- INCLUDE tooltip text='.tip.password' id='password' -%]
[%- form.password( label = dw.ml( '.field.confirmpassword' ) name = 'password2' maxlength = password_maxlength + 1 "aria-required" = "true" ) -%]
[%- dw.scoped_include( "components/birthdate.tt", months = months, days = days ) -%]
[%- INCLUDE tooltip text='.tip.birthdate' id='birthdate' -%]
[%- form.select( label = dw.ml( '.field.tn_state' ) name = 'tn_state' items = [ { value => 0, text => 'No' }, { value => 1, text => 'Yes' } ] selected = formdata.tn_state || 0 ) -%]
[%- INCLUDE tooltip text='.tip.tn_state' id='tn_state' -%]
[%- form.checkbox_nested( label = dw.ml( '.field.news', sitename = site.nameshort ) name = 'news' value = 1 ) -%]
[%- INCLUDE components/error.tt error_name='tos' -%]
[%- IF captcha -%]
[%- '.section.captcha' | ml -%]
[%- INCLUDE components/error.tt error_name='captcha' -%] [%- captcha -%]
[%- END -%]
[%- form.submit( value = dw.ml( '.btn' ) ) -%]
[%- IF code_paid_time -%] [%- IF code_paid_time.permanent -%] [%- '.field.paidaccount.permanent' | ml( type = "$code_paid_time.type" ) -%] [%- ELSE -%] [%- '.field.paidaccount' | ml( type = "$code_paid_time.type", nummonths = code_paid_time.months ) -%] [%- END -%] [%- END -%]
[%- BLOCK tooltip text="" id="" -%]
[%- text | ml( password_minlength = password_minlength, password_maxlength = password_maxlength ) -%]
[%- END -%]