some work on mod/register
This commit is contained in:
parent
f9b092c619
commit
dd6e3d873d
@ -177,7 +177,7 @@ function register_content(&$a) {
|
|||||||
|
|
||||||
if(get_config('system','register_policy') == REGISTER_CLOSED) {
|
if(get_config('system','register_policy') == REGISTER_CLOSED) {
|
||||||
if(get_config('system','directory_mode') == DIRECTORY_MODE_STANDALONE) {
|
if(get_config('system','directory_mode') == DIRECTORY_MODE_STANDALONE) {
|
||||||
notice( t('Registration on this site is disabled.') . EOL);
|
notice( t('Registration on this hub is disabled.') . EOL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -186,8 +186,8 @@ function register_content(&$a) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(get_config('system','register_policy') == REGISTER_APPROVE) {
|
if(get_config('system','register_policy') == REGISTER_APPROVE) {
|
||||||
$registration_is = t('Registration on this site/hub is by approval only.');
|
$registration_is = t('Registration on this hub is by approval only.');
|
||||||
$other_sites = t('<a href="pubsites">Register at another affiliated site/hub</a>');
|
$other_sites = t('<a href="pubsites">Register at another affiliated hub.</a>');
|
||||||
}
|
}
|
||||||
|
|
||||||
$max_dailies = intval(get_config('system','max_daily_registrations'));
|
$max_dailies = intval(get_config('system','max_daily_registrations'));
|
||||||
@ -208,7 +208,7 @@ function register_content(&$a) {
|
|||||||
if(! $tosurl)
|
if(! $tosurl)
|
||||||
$tosurl = $a->get_baseurl() . '/help/TermsOfService';
|
$tosurl = $a->get_baseurl() . '/help/TermsOfService';
|
||||||
|
|
||||||
$toslink = '<a href="' . $tosurl . '" >' . t('Terms of Service') . '</a>';
|
$toslink = '<a href="' . $tosurl . '" target="_blank">' . t('Terms of Service') . '</a>';
|
||||||
|
|
||||||
// Configurable whether to restrict age or not - default is based on international legal requirements
|
// Configurable whether to restrict age or not - default is based on international legal requirements
|
||||||
// This can be relaxed if you are on a restricted server that does not share with public servers
|
// This can be relaxed if you are on a restricted server that does not share with public servers
|
||||||
@ -220,13 +220,16 @@ function register_content(&$a) {
|
|||||||
|
|
||||||
$enable_tos = 1 - intval(get_config('system','no_termsofservice'));
|
$enable_tos = 1 - intval(get_config('system','no_termsofservice'));
|
||||||
|
|
||||||
$email = ((x($_REQUEST,'email')) ? strip_tags(trim($_REQUEST['email'])) : "" );
|
$email = array('email', t('Your email address'), ((x($_REQUEST,'email')) ? strip_tags(trim($_REQUEST['email'])) : ""));
|
||||||
$password = ((x($_REQUEST,'password')) ? trim($_REQUEST['password']) : "" );
|
$password = array('password', t('Choose a password'), ((x($_REQUEST,'password')) ? trim($_REQUEST['password']) : ""));
|
||||||
$password2 = ((x($_REQUEST,'password2')) ? trim($_REQUEST['password2']) : "" );
|
$password2 = array('password2', t('Please re-enter your password'), ((x($_REQUEST,'password2')) ? trim($_REQUEST['password2']) : ""));
|
||||||
$invite_code = ((x($_REQUEST,'invite_code')) ? strip_tags(trim($_REQUEST['invite_code'])) : "" );
|
$invite_code = array('invite_code', t('Please enter your invitation code'), ((x($_REQUEST,'invite_code')) ? strip_tags(trim($_REQUEST['invite_code'])) : ""));
|
||||||
$name = ((x($_REQUEST,'name')) ? escape_tags(trim($_REQUEST['name'])) : "" );
|
$name = array('name', t('Name or caption'), ((x($_REQUEST,'name')) ? $_REQUEST['name'] : ''), t('Examples: "Bob Jameson", "Lisa and her Horses", "Soccer", "Aviation Group"'));
|
||||||
$nickname = ((x($_REQUEST,'nickname')) ? strip_tags(trim($_REQUEST['nickname'])) : "" );
|
$nickhub = '@' . str_replace(array('http://','https://','/'), '', get_config('system','baseurl'));
|
||||||
$privacy_role = ((x($_REQUEST,'permissions_role')) ? $_REQUEST['permissions_role'] : "" );
|
$nickname = array('nickname', t('Choose a short nickname'), ((x($_REQUEST,'nickname')) ? $_REQUEST['nickname'] : ''), sprintf( t('Your nickname will be used to create an easy to remember channel address e.g. nickname%s'), $nickhub));
|
||||||
|
$privacy_role = ((x($_REQUEST,'permissions_role')) ? $_REQUEST['permissions_role'] : "");
|
||||||
|
$role = array('permissions_role' , t('Channel role and privacy'), ($privacy_role) ? $privacy_role : 'social', t('Select a channel role with your privacy requirements.') . ' <a href="help/roles" target="_blank">' . t('Read more about roles') . '</a>',get_roles());
|
||||||
|
$tos = array('tos', $label_tos, '', '', array(t('no'),t('yes')));
|
||||||
|
|
||||||
$auto_create = ((UNO) || (get_config('system','auto_channel_create')) ? true : false);
|
$auto_create = ((UNO) || (get_config('system','auto_channel_create')) ? true : false);
|
||||||
$default_role = ((UNO) ? 'social' : get_config('system','default_permissions_role'));
|
$default_role = ((UNO) ? 'social' : get_config('system','default_permissions_role'));
|
||||||
@ -241,29 +244,17 @@ function register_content(&$a) {
|
|||||||
'$other_sites' => $other_sites,
|
'$other_sites' => $other_sites,
|
||||||
'$invitations' => get_config('system','invitation_only'),
|
'$invitations' => get_config('system','invitation_only'),
|
||||||
'$invite_desc' => t('Membership on this site is by invitation only.'),
|
'$invite_desc' => t('Membership on this site is by invitation only.'),
|
||||||
'$label_invite' => t('Please enter your invitation code'),
|
|
||||||
'$invite_code' => $invite_code,
|
'$invite_code' => $invite_code,
|
||||||
'$auto_create' => $auto_create,
|
'$auto_create' => $auto_create,
|
||||||
'$label_name' => t('Name'),
|
|
||||||
'$help_name' => t('Enter your name'),
|
|
||||||
'$label_nick' => t('Choose a short nickname'),
|
|
||||||
'$nick_hub' => '@' . str_replace(array('http://','https://','/'), '', get_config('system','baseurl')),
|
|
||||||
'$nick_desc' => t('Your nickname will be used to create an easily remembered channel address (like an email address) which you can share with others.'),
|
|
||||||
'$name' => $name,
|
'$name' => $name,
|
||||||
'$help_role' => t('Please choose a channel type (such as social networking or community forum) and privacy requirements so we can select the best permissions for you'),
|
'$role' => $role,
|
||||||
'$role' => array('permissions_role' , t('Channel Type'), ($privacy_role) ? $privacy_role : 'social', '<a href="help/roles" target="_blank">'.t('Read more about roles').'</a>',get_roles()),
|
|
||||||
'$default_role' => $default_role,
|
'$default_role' => $default_role,
|
||||||
'$nickname' => $nickname,
|
'$nickname' => $nickname,
|
||||||
'$submit' => t('Create'),
|
'$tos' => $tos,
|
||||||
'$label_email' => t('Your email address'),
|
|
||||||
'$label_pass1' => t('Choose a password'),
|
|
||||||
'$label_pass2' => t('Please re-enter your password'),
|
|
||||||
'$label_tos' => $label_tos,
|
|
||||||
'$enable_tos' => $enable_tos,
|
|
||||||
'$email' => $email,
|
'$email' => $email,
|
||||||
'$pass1' => $password,
|
'$pass1' => $password,
|
||||||
'$pass2' => $password2,
|
'$pass2' => $password2,
|
||||||
'$submit' => t('Register')
|
'$submit' => ((UNO || $auto_create) ? t('Register') : t('Register and proceed to create your first channel'))
|
||||||
));
|
));
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
@ -1,86 +0,0 @@
|
|||||||
|
|
||||||
h2 {
|
|
||||||
margin: 20px 0 20px 5%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.generic-content-wrapper-styled {
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
max-width: 820px;
|
|
||||||
font-size: 1.1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#register-desc, #register-invite-desc, #register-text, #register-sites {
|
|
||||||
font-weight: bold;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
padding: 8px;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 560px) {
|
|
||||||
.register-label, .register-input {
|
|
||||||
float: left;
|
|
||||||
width: 50%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 559px) {
|
|
||||||
.register-label, .register-input {
|
|
||||||
float: left;
|
|
||||||
max-width: 400px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.register-feedback {
|
|
||||||
float: left;
|
|
||||||
margin-left: 45px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.register-field-end {
|
|
||||||
clear: both;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#newchannel-form {
|
|
||||||
font-size: 1.4em;
|
|
||||||
margin-left: 15%;
|
|
||||||
margin-top: 20px;
|
|
||||||
width: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#newchannel-form .descriptive-paragraph {
|
|
||||||
color: #888;
|
|
||||||
margin-left: 20px;
|
|
||||||
margin-bottom: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.newchannel-label {
|
|
||||||
float: left;
|
|
||||||
width: 275px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.newchannel-role-morehelp {
|
|
||||||
float: left;
|
|
||||||
width: 32px;
|
|
||||||
}
|
|
||||||
.newchannel-input {
|
|
||||||
float: left;
|
|
||||||
width: 275px;
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.newchannel-feedback {
|
|
||||||
float: left;
|
|
||||||
margin-left: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.newchannel-field-end {
|
|
||||||
clear: both;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.descriptive-paragraph {
|
|
||||||
margin-left: 20px;
|
|
||||||
margin-bottom: 25px;
|
|
||||||
}
|
|
@ -5,7 +5,10 @@
|
|||||||
var zreg_name = $("#id_name").val();
|
var zreg_name = $("#id_name").val();
|
||||||
$.get("new_channel/autofill.json?f=&name=" + encodeURIComponent(zreg_name),function(data) {
|
$.get("new_channel/autofill.json?f=&name=" + encodeURIComponent(zreg_name),function(data) {
|
||||||
$("#id_nickname").val(data);
|
$("#id_nickname").val(data);
|
||||||
zFormError("#newchannel-name-feedback",data.error);
|
if(data.error) {
|
||||||
|
$("#help_name").html("");
|
||||||
|
zFormError("#help_name",data.error);
|
||||||
|
}
|
||||||
$("#name-spinner").spin(false);
|
$("#name-spinner").spin(false);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -15,7 +18,10 @@
|
|||||||
var zreg_nick = $("#id_nickname").val();
|
var zreg_nick = $("#id_nickname").val();
|
||||||
$.get("new_channel/checkaddr.json?f=&nick=" + encodeURIComponent(zreg_nick),function(data) {
|
$.get("new_channel/checkaddr.json?f=&nick=" + encodeURIComponent(zreg_nick),function(data) {
|
||||||
$("#id_nickname").val(data);
|
$("#id_nickname").val(data);
|
||||||
zFormError("#newchannel-nickname-feedback",data.error);
|
if(data.error) {
|
||||||
|
$("#help_nickname").html("");
|
||||||
|
zFormError("#help_nickname",data.error);
|
||||||
|
}
|
||||||
$("#nick-spinner").spin(false);
|
$("#nick-spinner").spin(false);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1,50 +1,56 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$("#register-email").blur(function() {
|
$("#id_email").blur(function() {
|
||||||
var zreg_email = $("#register-email").val();
|
var zreg_email = $("#id_email").val();
|
||||||
$.get("register/email_check.json?f=&email=" + encodeURIComponent(zreg_email), function(data) {
|
$.get("register/email_check.json?f=&email=" + encodeURIComponent(zreg_email), function(data) {
|
||||||
$("#register-email-feedback").html(data.message);
|
$("#help_email").html(data.message);
|
||||||
zFormError("#register-email-feedback",data.error);
|
zFormError("#help_email",data.error);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$("#register-password").blur(function() {
|
$("#id_password").blur(function() {
|
||||||
if(($("#register-password").val()).length < 6 ) {
|
if(($("#id_password").val()).length < 6 ) {
|
||||||
$("#register-password-feedback").html(aStr.pwshort);
|
$("#help_password").html(aStr.pwshort);
|
||||||
zFormError("#register-password-feedback", true);
|
zFormError("#help_password", true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$("#register-password-feedback").html("");
|
$("#help_password").html("");
|
||||||
zFormError("#register-password-feedback", false);
|
zFormError("#help_password", false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$("#register-password2").blur(function() {
|
$("#id_password2").blur(function() {
|
||||||
if($("#register-password").val() != $("#register-password2").val()) {
|
if($("#id_password").val() != $("#id_password2").val()) {
|
||||||
$("#register-password2-feedback").html(aStr.pwnomatch);
|
$("#help_password2").html(aStr.pwnomatch);
|
||||||
zFormError("#register-password2-feedback", true);
|
zFormError("#help_password2", true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$("#register-password2-feedback").html("");
|
$("#help_password2").html("");
|
||||||
zFormError("#register-password2-feedback", false);
|
zFormError("#help_password2", false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#id_name").blur(function() {
|
||||||
$("#newchannel-name").blur(function() {
|
|
||||||
$("#name-spinner").spin('small');
|
$("#name-spinner").spin('small');
|
||||||
var zreg_name = $("#newchannel-name").val();
|
var zreg_name = $("#id_name").val();
|
||||||
$.get("new_channel/autofill.json?f=&name=" + encodeURIComponent(zreg_name),function(data) {
|
$.get("new_channel/autofill.json?f=&name=" + encodeURIComponent(zreg_name),function(data) {
|
||||||
$("#newchannel-nickname").val(data);
|
$("#id_nickname").val(data);
|
||||||
zFormError("#newchannel-name-feedback",data.error);
|
if(data.error) {
|
||||||
|
$("#help_name").html("");
|
||||||
|
zFormError("#help_name",data.error);
|
||||||
|
}
|
||||||
$("#name-spinner").spin(false);
|
$("#name-spinner").spin(false);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$("#newchannel-nickname").blur(function() {
|
|
||||||
|
$("#id_nickname").blur(function() {
|
||||||
$("#nick-spinner").spin('small');
|
$("#nick-spinner").spin('small');
|
||||||
var zreg_nick = $("#newchannel-nickname").val();
|
var zreg_nick = $("#id_nickname").val();
|
||||||
$.get("new_channel/checkaddr.json?f=&nick=" + encodeURIComponent(zreg_nick),function(data) {
|
$.get("new_channel/checkaddr.json?f=&nick=" + encodeURIComponent(zreg_nick),function(data) {
|
||||||
$("#newchannel-nickname").val(data);
|
$("#id_nickname").val(data);
|
||||||
zFormError("#newchannel-nickname-feedback",data.error);
|
if(data.error) {
|
||||||
|
$("#help_nickname").html("");
|
||||||
|
zFormError("#help_nickname",data.error);
|
||||||
|
}
|
||||||
$("#nick-spinner").spin(false);
|
$("#nick-spinner").spin(false);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -1 +0,0 @@
|
|||||||
[template]full[/template]
|
|
@ -1,5 +1,5 @@
|
|||||||
<div class='form-group field password'>
|
<div class='form-group field password'>
|
||||||
<label for='id_{{$field.0}}'>{{$field.1}}</label>
|
<label for='id_{{$field.0}}'>{{$field.1}}</label>
|
||||||
<input class="form-control" type='password' name='{{$field.0}}' id='id_{{$field.0}}' value="{{$field.2}}"{{if $field.5}} {{$field.5}}{{/if}}>{{if $field.4}} <span class="required">{{$field.4}}</span> {{/if}}
|
<input class="form-control" type='password' name='{{$field.0}}' id='id_{{$field.0}}' value="{{$field.2}}"{{if $field.5}} {{$field.5}}{{/if}}>{{if $field.4}} <span class="required">{{$field.4}}</span> {{/if}}
|
||||||
<span class='help-block'>{{$field.3}}</span>
|
<span id="help_{{$field.0}}" class="help-block">{{$field.3}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,11 +19,9 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{include file="field_input.tpl" field=$name}}
|
{{include file="field_input.tpl" field=$name}}
|
||||||
<div id="newchannel-name-feedback" class="newchannel-feedback"></div>
|
|
||||||
<div id="name-spinner"></div>
|
<div id="name-spinner"></div>
|
||||||
|
|
||||||
{{include file="field_input.tpl" field=$nickname}}
|
{{include file="field_input.tpl" field=$nickname}}
|
||||||
<div id="newchannel-nickname-feedback" class="newchannel-feedback"></div>
|
|
||||||
<div id="nick-spinner"></div>
|
<div id="nick-spinner"></div>
|
||||||
|
|
||||||
<button class="btn btn-primary" type="submit" name="submit" id="newchannel-submit-button" value="{{$submit}}">{{$submit}}</button>
|
<button class="btn btn-primary" type="submit" name="submit" id="newchannel-submit-button" value="{{$submit}}">{{$submit}}</button>
|
||||||
|
@ -1,83 +1,58 @@
|
|||||||
<div class="generic-content-wrapper-styled">
|
<div class="generic-content-wrapper">
|
||||||
<h2>{{$title}}</h2>
|
<div class="section-title-wrapper">
|
||||||
|
<h2>{{$title}}</h2>
|
||||||
|
</div>
|
||||||
|
<div class="section-content-wrapper">
|
||||||
|
<form action="register" method="post" id="register-form">
|
||||||
|
{{if $reg_is}}
|
||||||
|
<div class="section-content-warning-wrapper">
|
||||||
|
<div id="register-desc" class="descriptive-paragraph">{{$reg_is}}</div>
|
||||||
|
<div id="register-sites" class="descriptive-paragraph">{{$other_sites}}</div>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
<form action="register" method="post" id="register-form">
|
{{if $registertext}}
|
||||||
|
<div id="register-text" class="descriptive-paragraph">{{$registertext}}</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{if $invitations}}
|
||||||
|
<div class="section-content-info-wrapper">
|
||||||
|
<div id="register-invite-desc" class="descriptive-paragraph">{{$invite_desc}}</div>
|
||||||
|
</div>
|
||||||
|
{{include file="field_input.tpl" field=$invite_code}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{include file="field_input.tpl" field=$email}}
|
||||||
|
|
||||||
{{if $reg_is}}
|
{{include file="field_password.tpl" field=$pass1}}
|
||||||
<div id="register-desc" class="descriptive-paragraph">{{$reg_is}}</div>
|
|
||||||
{{/if}}
|
|
||||||
{{if $registertext}}<div id="register-text" class="descriptive-paragraph">{{$registertext}}</div>
|
|
||||||
{{/if}}
|
|
||||||
{{if $other_sites}}<div id="register-sites" class="descriptive-paragraph">{{$other_sites}}</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{if $invitations}}
|
{{include file="field_password.tpl" field=$pass2}}
|
||||||
<p id="register-invite-desc">{{$invite_desc}}</p>
|
|
||||||
|
|
||||||
<label for="register-invite" id="label-register-invite" class="register-label">{{$label_invite}}</label>
|
{{if $auto_create}}
|
||||||
<input type="text" maxlength="72" size="32" name="invite_code" id="register-invite" class="register-input" value="{{$invite_code}}" />
|
{{if $default_role}}
|
||||||
<div id="register-invite-feedback" class="register-feedback"></div>
|
<input type="hidden" name="permissions_role" value="{{$default_role}}" />
|
||||||
<div id="register-invite-end" class="register-field-end"></div>
|
{{else}}
|
||||||
{{/if}}
|
<div class="section-content-info-wrapper">
|
||||||
|
{{$help_role}}
|
||||||
|
</div>
|
||||||
|
{{include file="field_select_grouped.tpl" field=$role}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{if $auto_create}}
|
{{include file="field_input.tpl" field=$name}}
|
||||||
|
<div id="name-spinner"></div>
|
||||||
|
|
||||||
{{if $default_role}}
|
{{include file="field_input.tpl" field=$nickname}}
|
||||||
<input type="hidden" name="permissions_role" value="{{$default_role}}" />
|
<div id="nick-spinner"></div>
|
||||||
{{else}}
|
{{/if}}
|
||||||
<div id="newchannel-role-help" class="descriptive-paragraph">{{$help_role}}</div>
|
|
||||||
{{include file="field_select_grouped.tpl" field=$role}}
|
|
||||||
<div id="newchannel-role-end" class="newchannel-field-end"></div>
|
|
||||||
{{/if}}
|
|
||||||
<label for="newchannel-name" id="label-newchannel-name" class="register-label" >{{$label_name}}</label>
|
|
||||||
<input type="text" maxlength="72" size="32" name="name" id="newchannel-name" class="register-input" value="{{$name}}" />
|
|
||||||
<div id="name-spinner"></div>
|
|
||||||
<div id="newchannel-name-feedback" class="register-feedback"></div>
|
|
||||||
<div id="newchannel-name-end" class="register-field-end"></div>
|
|
||||||
<div id="newchannel-name-help" class="descriptive-paragraph">{{$help_name}}</div>
|
|
||||||
|
|
||||||
|
{{if $enable_tos}}
|
||||||
|
{{include file="field_checkbox.tpl" field=$tos}}
|
||||||
|
{{else}}
|
||||||
|
<input type="hidden" name="tos" value="1" />
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{/if}}
|
<button class="btn btn-primary" type="submit" name="submit" id="newchannel-submit-button" value="{{$submit}}">{{$submit}}</button>
|
||||||
|
<div id="register-submit-end" class="register-field-end"></div>
|
||||||
<label for="register-email" id="label-register-email" class="register-label" >{{$label_email}}</label>
|
</form>
|
||||||
<input type="text" maxlength="72" size="32" name="email" id="register-email" class="register-input" value="{{$email}}" />
|
</div>
|
||||||
<div id="register-email-feedback" class="register-feedback"></div>
|
|
||||||
<div id="register-email-end" class="register-field-end"></div>
|
|
||||||
|
|
||||||
<label for="register-password" id="label-register-password" class="register-label" >{{$label_pass1}}</label>
|
|
||||||
<input type="password" maxlength="72" size="32" name="password" id="register-password" class="register-input" value="{{$pass1}}" />
|
|
||||||
<div id="register-password-feedback" class="register-feedback"></div>
|
|
||||||
<div id="register-password-end" class="register-field-end"></div>
|
|
||||||
|
|
||||||
<label for="register-password2" id="label-register-password2" class="register-label" >{{$label_pass2}}</label>
|
|
||||||
<input type="password" maxlength="72" size="32" name="password2" id="register-password2" class="register-input" value="{{$pass2}}" />
|
|
||||||
<div id="register-password2-feedback" class="register-feedback"></div>
|
|
||||||
<div id="register-password2-end" class="register-field-end"></div>
|
|
||||||
|
|
||||||
{{if $auto_create}}
|
|
||||||
<label for="newchannel-nickname" id="label-newchannel-nickname" class="register-label" >{{$label_nick}}</label>
|
|
||||||
<input type="text" maxlength="72" size="32" name="nickname" id="newchannel-nickname" class="register-input" value="{{$nickname}}" />
|
|
||||||
<div id="nick-spinner"></div>
|
|
||||||
<div id="newchannel-nick-desc" style="text-align: right;">{{$nick_hub}}</div>
|
|
||||||
<div id="newchannel-nickname-feedback" class="register-feedback"></div>
|
|
||||||
<div id="newchannel-nickname-end" class="register-field-end"></div>
|
|
||||||
<div id="newchannel-nick-desc" class="descriptive-paragraph">{{$nick_desc}}</div>
|
|
||||||
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{if $enable_tos}}
|
|
||||||
<input type="checkbox" name="tos" id="register-tos" value="1" />
|
|
||||||
<label for="register-tos" id="label-register-tos">{{$label_tos}}</label>
|
|
||||||
<div id="register-tos-feedback" class="register-feedback"></div>
|
|
||||||
<div id="register-tos-end" class="register-field-end"></div>
|
|
||||||
{{else}}
|
|
||||||
<input type="hidden" name="tos" value="1" />
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<input type="submit" name="submit" class="btn btn-default" id="register-submit-button" value="{{$submit}}" />
|
|
||||||
<div id="register-submit-end" class="register-field-end"></div>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user