mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
Merge pull request #813 from openclassify/dia
#2722 franchsepeti geliştirmeler
This commit is contained in:
commit
4033d2c6fa
@ -29,10 +29,6 @@
|
|||||||
{% include 'visiosoft.theme.base::addons/anomaly/users-module/partials/register-form' %}
|
{% include 'visiosoft.theme.base::addons/anomaly/users-module/partials/register-form' %}
|
||||||
|
|
||||||
{% if setting_value('visiosoft.module.profile::show_checkbox_terms_on_register') %}
|
{% if setting_value('visiosoft.module.profile::show_checkbox_terms_on_register') %}
|
||||||
<div class="col-12">
|
|
||||||
{{ form.fields.accept_terms|raw }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
{{ form.fields.accept_protection_law|raw }}
|
{{ form.fields.accept_protection_law|raw }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -11,6 +11,8 @@ return [
|
|||||||
'upload_avatar',
|
'upload_avatar',
|
||||||
'show_tax_office',
|
'show_tax_office',
|
||||||
'show_checkbox_terms_on_register',
|
'show_checkbox_terms_on_register',
|
||||||
|
'register_protection_url',
|
||||||
|
'register_privacy_url',
|
||||||
'show_education_profession',
|
'show_education_profession',
|
||||||
'education',
|
'education',
|
||||||
'state_of_education',
|
'state_of_education',
|
||||||
|
|||||||
@ -41,6 +41,18 @@ return [
|
|||||||
'mode' => 'checkbox'
|
'mode' => 'checkbox'
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
'register_protection_url' => [
|
||||||
|
'type' => 'anomaly.field_type.url',
|
||||||
|
'config' => [
|
||||||
|
'default_value' => '#',
|
||||||
|
]
|
||||||
|
],
|
||||||
|
'register_privacy_url' => [
|
||||||
|
'type' => 'anomaly.field_type.url',
|
||||||
|
'config' => [
|
||||||
|
'default_value' => '#',
|
||||||
|
]
|
||||||
|
],
|
||||||
'show_education_profession' => [
|
'show_education_profession' => [
|
||||||
'type' => 'anomaly.field_type.boolean',
|
'type' => 'anomaly.field_type.boolean',
|
||||||
'config' => [
|
'config' => [
|
||||||
|
|||||||
@ -459,8 +459,8 @@ return [
|
|||||||
|
|
||||||
// Register page
|
// Register page
|
||||||
'accept_terms_label' => 'I accept the terms.',
|
'accept_terms_label' => 'I accept the terms.',
|
||||||
'accept_protection_law_label' => 'I accept the terms of the Law on Protection of Personal Data.',
|
'accept_protection_law_label' => 'I accept the terms of the Law on <a href="' . setting_value('visiosoft.module.profile::register_protection_url') . '" target="_blank">Protection of Personal Data.</a>',
|
||||||
'accept_privacy_terms_label' => 'I accept privacy terms.',
|
'accept_privacy_terms_label' => 'I accept <a href="' . setting_value('visiosoft.module.profile::register_privacy_url') . '" target="_blank">privacy terms</a>.',
|
||||||
'receive_sms_emails_label' => 'I want to receive e-mail & sms.',
|
'receive_sms_emails_label' => 'I want to receive e-mail & sms.',
|
||||||
|
|
||||||
// Register Type
|
// Register Type
|
||||||
|
|||||||
@ -14,6 +14,12 @@ return [
|
|||||||
'name' => 'Show Checkbox Terms on Register',
|
'name' => 'Show Checkbox Terms on Register',
|
||||||
'instructions' => 'Show the "Accept term", "protection law", "privacy term", "sms & emails" on the register form'
|
'instructions' => 'Show the "Accept term", "protection law", "privacy term", "sms & emails" on the register form'
|
||||||
],
|
],
|
||||||
|
'register_protection_url' => [
|
||||||
|
'name' => 'Register Protection URL',
|
||||||
|
],
|
||||||
|
'register_privacy_url' => [
|
||||||
|
'name' => 'Register Privacy URL',
|
||||||
|
],
|
||||||
'show_education_profession' => [
|
'show_education_profession' => [
|
||||||
'name' => 'Show Education and Profession Fields',
|
'name' => 'Show Education and Profession Fields',
|
||||||
'instructions' => 'Show the "Education", "State of Education" and "Profession" on the profile edit page'
|
'instructions' => 'Show the "Education", "State of Education" and "Profession" on the profile edit page'
|
||||||
|
|||||||
@ -34,15 +34,8 @@ class Register2FormFields
|
|||||||
|
|
||||||
if (setting_value('visiosoft.module.profile::show_checkbox_terms_on_register')) {
|
if (setting_value('visiosoft.module.profile::show_checkbox_terms_on_register')) {
|
||||||
$register = array_merge($register, [
|
$register = array_merge($register, [
|
||||||
"accept_terms" => [
|
|
||||||
"type" => "anomaly.field_type.boolean",
|
|
||||||
"config" => [
|
|
||||||
"default_value" => false,
|
|
||||||
"mode" => "checkbox",
|
|
||||||
"label" => 'visiosoft.module.profile::field.accept_terms_label',
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"accept_protection_law" => [
|
"accept_protection_law" => [
|
||||||
|
'required' => true,
|
||||||
"type" => "anomaly.field_type.boolean",
|
"type" => "anomaly.field_type.boolean",
|
||||||
"config" => [
|
"config" => [
|
||||||
"default_value" => false,
|
"default_value" => false,
|
||||||
@ -51,6 +44,7 @@ class Register2FormFields
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
"accept_privacy_terms" => [
|
"accept_privacy_terms" => [
|
||||||
|
'required' => true,
|
||||||
"type" => "anomaly.field_type.boolean",
|
"type" => "anomaly.field_type.boolean",
|
||||||
"config" => [
|
"config" => [
|
||||||
"default_value" => false,
|
"default_value" => false,
|
||||||
|
|||||||
@ -12,26 +12,10 @@ use Visiosoft\ProfileModule\Profile\Register2\Command\HandleAutomaticRegistratio
|
|||||||
use Visiosoft\ProfileModule\Profile\Register2\Command\HandleEmailRegistration;
|
use Visiosoft\ProfileModule\Profile\Register2\Command\HandleEmailRegistration;
|
||||||
use Visiosoft\ProfileModule\Profile\Register2\Command\HandleManualRegistration;
|
use Visiosoft\ProfileModule\Profile\Register2\Command\HandleManualRegistration;
|
||||||
|
|
||||||
/**
|
|
||||||
* Class RegisterFormHandler
|
|
||||||
*
|
|
||||||
* @link http://openclassify.com/
|
|
||||||
* @author OpenClassify, Inc. <support@openclassify.com>
|
|
||||||
* @author Visiosoft Inc <support@openclassify.com>
|
|
||||||
*/
|
|
||||||
class Register2FormHandler
|
class Register2FormHandler
|
||||||
{
|
{
|
||||||
|
|
||||||
use DispatchesJobs;
|
use DispatchesJobs;
|
||||||
|
|
||||||
/**
|
|
||||||
* Handle the form.
|
|
||||||
*
|
|
||||||
* @param Dispatcher $events
|
|
||||||
* @param UserRepositoryInterface $users
|
|
||||||
* @param Register2FormBuilder $builder
|
|
||||||
* @param UserActivator $activator
|
|
||||||
*/
|
|
||||||
public function handle(
|
public function handle(
|
||||||
Dispatcher $events,
|
Dispatcher $events,
|
||||||
UserRepositoryInterface $users,
|
UserRepositoryInterface $users,
|
||||||
@ -59,7 +43,6 @@ class Register2FormHandler
|
|||||||
$fields['gsm_phone'] = $builder->getPostValue('phone');
|
$fields['gsm_phone'] = $builder->getPostValue('phone');
|
||||||
unset(
|
unset(
|
||||||
$fields['phone'],
|
$fields['phone'],
|
||||||
$fields['accept_terms'],
|
|
||||||
$fields['accept_protection_law'],
|
$fields['accept_protection_law'],
|
||||||
$fields['accept_privacy_terms'],
|
$fields['accept_privacy_terms'],
|
||||||
$fields['receive_sms_emails'],
|
$fields['receive_sms_emails'],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user