Commit cbae4b93 authored by Michael Fürmann's avatar Michael Fürmann
Browse files

Removed public registration from domain form, can't be supported atm.

parent 536f803e
......@@ -125,13 +125,13 @@ $form["tabs"]['domain'] = array (
'registration_message' => array(
'datatype' => 'TEXT',
'formtype' => 'TEXT',
'default' => "Please visit our website for information on registration.",
'default' => "",
'value' => ''
),
'domain_admins' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => 'admin@service.com, superuser@service.com',
'default' => '',
'value' => '',
'width' => '15',
'maxlength' => '3'
......
<?php
$wb["server_id_txt"] = 'Server';
$wb["client_group_id_txt"] = 'Client';
$wb["domain_txt"] = 'Domain';
$wb["type_txt"] = 'Type';
$wb["active_txt"] = 'Active';
......@@ -26,5 +27,7 @@ $wb["http_archive_show_join_txt"] = 'Show join messages in archive';
$wb["http_archive_show_status_txt"] = 'Show status changes in archive';
$wb["use_status_host_txt"] = 'Enable XML Status host';
$wb["cant_change_domainname_txt"] = 'The Domain name of existing XMPP domain cannot be changed.';
$wb["about_registration_url_txt"] = 'Link to your registration form.';
$wb["about_registration_message_txt"] = 'Description about your account registration process.';
$wb["no_corresponding_maildomain_txt"] = 'Corresponding mail domain for user management not found. Please create the mail domain first.';
?>
......@@ -82,29 +82,32 @@
</div>
<div id="toggle-management-normal" class="collapse">
<div class="form-group">
<!--
Currently not supported
div class="form-group">
<label class="col-sm-3 control-label">{tmpl_var name='public_registration_txt'}</label>
<div class="col-sm-9">
{tmpl_var name='public_registration'}
</div>
</div>
</div-->
</div>
<input type="hidden" name="public_registration" id="public_registration" value="n" />
<div id="toggle-registration-closed" class="collapse">
<div class="form-group">
<label for="registration_url" class="col-sm-3 control-label">{tmpl_var name='registration_url_txt'}</label>
<div class="col-sm-9">
<input type="text" name="registration_url" id="registration_url" value="{tmpl_var name='registration_url'}" class="form-control" />
<input type="text" name="registration_url" id="registration_url" value="{tmpl_var name='registration_url'}" class="form-control" placeholder="<tmpl_var name='about_registration_url_txt'>" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">{tmpl_var name='registration_message_txt'}</label>
<div class="col-sm-9"><textarea class="form-control" name="registration_message" id="registration_message" rows='3' cols='30'>{tmpl_var name='registration_message'}</textarea></div>
<div class="col-sm-9"><textarea class="form-control" name="registration_message" id="registration_message" rows='3' cols='30' placeholder="<tmpl_var name='about_registration_message_txt'>">{tmpl_var name='registration_message'}</textarea></div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">{tmpl_var name='domain_admins_txt'}</label>
<div class="col-sm-9"><textarea class="form-control" name="domain_admins" id="domain_admins" rows='3' cols='30'>{tmpl_var name='domain_admins'}</textarea></div>
<div class="col-sm-9"><textarea class="form-control" name="domain_admins" id="domain_admins" rows='3' cols='30' placeholder="admin@service.com, superuser@service.com">{tmpl_var name='domain_admins'}</textarea></div>
</div>
......
......@@ -295,6 +295,9 @@ class page_action extends tform_actions {
}
}
// Reset public registration to 'n', is not yet supported
$this->dataRecord["public_registration"] = 'n';
parent::onSubmit();
}
......
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