Initial commit

This commit is contained in:
2020-01-27 08:56:08 +01:00
commit b7525048d6
27129 changed files with 3409855 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
<?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio */
/* email : dev@thelia.net */
/* web : http://www.thelia.net */
/* */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
namespace ForcePhone\Form;
use ForcePhone\ForcePhone;
use Symfony\Component\Validator\Constraints\NotBlank;
use Thelia\Form\BaseForm;
class ConfigForm extends BaseForm
{
protected function buildForm()
{
$this->formBuilder
->add(
'force_phone',
'checkbox',
[
'required' => false,
'label' => $this->translator->trans('Home phone number', [], ForcePhone::DOMAIN_NAME),
'label_attr' => [
'for' => 'force_phone',
]
]
)
->add(
'force_cellphone',
'checkbox',
[
'required' => false,
'label' => $this->translator->trans('Mobile phone number', [], ForcePhone::DOMAIN_NAME),
'label_attr' => [
'for' => 'force_cellphone',
]
]
)
->add(
'force_one',
'checkbox',
[
'required' => false,
'label' => $this->translator->trans('At least one phone number', [], ForcePhone::DOMAIN_NAME),
'label_attr' => [
'for' => 'force_one',
]
]
)
;
}
/**
* @return string the name of you form. This name must be unique
*/
public function getName()
{
return 'forcephone_config';
}
}

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<dwsync>
<file name="ConfigForm.php" server="51.254.220.106//web/" local="131360718000000000" remote="131360718000000000" />
</dwsync>