<?php
namespace App\Form;
use App\Entity\Forms;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\FormType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\IntegerType;
use Symfony\Component\Form\Extension\Core\Type\NumberType;
use Symfony\Component\Form\Extension\Core\Type\FileType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\Extension\Core\Type\DateType;
use Symfony\Component\Form\Extension\Core\Type\CollectionType;
use App\Form\BedroomType;
use App\Form\Extension\ImageTypeExtension;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class FormsType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('date', DateType::class, [
'label' => 'Date',
'html5' => true,
'widget' => 'single_text',
'format' => 'yyyy-MM-dd',
'input_format' => 'yyyy-MM-dd',
// 'disabled' => true,
'required' => true,
])
->add('propname', TextType::class, [
'label' => 'Property name',
'required' => true,
])
// Hidden fields
->add('uuid', HiddenType::class, [
'label' => 'UUID',
'disabled' => true,
])
->add('brand', HiddenType::class, [
'label' => 'Brand',
'disabled' => true,
])
->add('version', HiddenType::class, [
'label' => 'Version',
'disabled' => true,
])
->add(
$builder->create('group_external', FormType::class, [
'label' => 'Exterior',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('extbuildappear', ChoiceType::class, [
'label' => 'Appearance of building',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('extparkfacility', ChoiceType::class, [
'label' => 'Parking, garden and additional facilities',
'choices' => [
'n/a' => 'n/a',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('extsiding', ChoiceType::class, [
'label' => 'Environment and setting',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('exteriorTotal', TextType::class, [
'label' => 'Exterior Total',
'required' => false,
'attr' => ['class' => 'col-2'],
'disabled' => true,
// 'scale' => 2,
])
->add(
$builder->create('group_external_items', FormType::class, [
'label' => 'Exterior items',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('extwall', ChoiceType::class, [
'label' => 'Property well signed',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('extbarbecus', ChoiceType::class, [
'label' => 'Barbecue',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('extgarfurniture', ChoiceType::class, [
'label' => 'Garden furniture',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('extgates', ChoiceType::class, [
'label' => 'Gates',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('extdogs', ChoiceType::class, [
'label' => 'Garden fully enclosed for dogs?',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
'Partial' => 'Partial'
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
// 'row_attr' => ['class' => 'flex-fill'],
'required' => false,
])
->add('extnotes', TextareaType::class, [
'label' => 'Exterior notes and suggestions',
'required' => false,
])
->add('extpic1', FileType::class, [
'label' => 'Exterior picture 1',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('extpic2', FileType::class, [
'label' => 'Exterior picture 2',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('extpic3', FileType::class, [
'label' => 'Exterior picture 3',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('extpic4', FileType::class, [
'label' => 'Exterior picture 4',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add(
$builder->create('group_management', FormType::class, [
'label' => 'Management',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('minfo', ChoiceType::class, [
'label' => 'Information for guests',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('mwelcome', ChoiceType::class, [
'label' => 'Welcome pack',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('marrival', ChoiceType::class, [
'label' => 'Arrival procedure and emergency key safe',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('mwifi', ChoiceType::class, [
'label' => 'WiFi',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('maccessories', ChoiceType::class, [
'label' => 'Accessories and personal touches',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('mspace', ChoiceType::class, [
'label' => 'Space, comfort and ease of use',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('managementEfficiencyScore', TextType::class, [
'label' => 'Management Efficiency Score',
'required' => false,
'attr' => ['class' => 'col-2'],
'disabled' => true,
// 'scale' => 2,
])
->add(
$builder->create('group_legislation', FormType::class, [
'label' => 'Legislation',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('mfirerisk', ChoiceType::class, [
'label' => 'Fire risk assessment',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('mfra', ChoiceType::class, [
'label' => 'Annual FRA review undertaken',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('mboiler', ChoiceType::class, [
'label' => 'Boiler safety certificate',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('mpat', ChoiceType::class, [
'label' => 'PAT',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('melectrictest', ChoiceType::class, [
'label' => '5 year electrical test',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('mlegionela', ChoiceType::class, [
'label' => 'Legionella',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('minsurrance', ChoiceType::class, [
'label' => 'Public liability insurance',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('meblindcord', ChoiceType::class, [
'label' => 'Blind cords secured',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add(
$builder->create('group_items', FormType::class, [
'label' => 'Items',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('mcot', ChoiceType::class, [
'label' => 'Cot',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
'Available on request' => 'Available on request',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('mcotprop', ChoiceType::class, [
'label' => 'Is the cot at the property?',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
'Available on request' => 'Available on request',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('mhighchair', ChoiceType::class, [
'label' => 'High chair',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
'Available on request' => 'Available on request',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('mhighchairprop', ChoiceType::class, [
'label' => 'Is the high chair at the property?',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
'Available on request' => 'Available on request',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('mstairgate', ChoiceType::class, [
'label' => 'Stair gate',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
'Available on request' => 'Available on request',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('mstairgateprop', ChoiceType::class, [
'label' => 'Is the stair gate at the property?',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
'Available on request' => 'Available on request',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add(
$builder->create('group_fa', FormType::class, [
'label' => 'Fire alarms',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('faplace', ChoiceType::class, [
'label' => 'Fire alarm in place',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
'Not tested' => 'Not tested'
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('fadesign', ChoiceType::class, [
'label' => 'Fire alarm working as designed',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
'Not tested' => 'Not tested'
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('favi', ChoiceType::class, [
'label' => 'Fire alarm visual inspection/under 10 years old',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
'Not tested' => 'Not tested'
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('facoment', TextType::class, [
'label' => 'Fire alarm comments',
'required' => false,
])
->add(
$builder->create('group_fc', FormType::class, [
'label' => 'Carbon monoxide detectors',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('fcloc', ChoiceType::class, [
'label' => 'Carbon monoxide in appropriate locations',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
'Partial' => 'Partial'
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
// 'row_attr' => ['class' => 'flex-fill'],
'required' => false,
])
->add('fcdesign', ChoiceType::class, [
'label' => 'Carbon monoxide workings as designed',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
'Partial' => 'Partial'
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
// 'row_attr' => ['class' => 'flex-fill'],
'required' => false,
])
->add('fcvi', ChoiceType::class, [
'label' => 'Carbon monoxide visual inspection',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
'Partial' => 'Partial'
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
// 'row_attr' => ['class' => 'flex-fill'],
'required' => false,
])
->add('fccoment', TextType::class, [
'label' => 'Carbon monoxide comments',
'required' => false,
])
->add(
$builder->create('group_fe', FormType::class, [
'label' => 'Fire Extinguisher',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('ffeachfloor', ChoiceType::class, [
'label' => 'Fire extinguisher on each floor',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('ffpressure', ChoiceType::class, [
'label' => 'Fire extinguisher showing correct pressure',
'choices' => [
'Yes' => 'Yes',
'No' => 'No',
'None provided' => '',
'Not tested' => 'Not tested'
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('ffvi', ChoiceType::class, [
'label' => 'Fire extinguisher visual inspection/tamper seals in place',
'choices' => [
'Yes' => 'Yes',
'No' => 'No',
'None provided' => '',
'Not tested' => 'Not tested'
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
// ->add('ffseal', ChoiceType::class, [
// 'label' => 'Fire extinguisher tamper seals in place',
// 'choices' => [
// 'Yes' => 'Yes',
// 'No' => 'No',
// 'None provided' => '',
// 'Not tested' => 'Not tested'
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
->add('ffdate', DateType::class, [
'label' => 'Fire extinguisher date on device',
'html5' => true,
'widget' => 'single_text',
'format' => 'yyyy-MM-dd',
'input_format' => 'yyyy-MM-dd',
'required' => false,
])
->add('ffcoment', TextType::class, [
'label' => 'Fire extinguisher comments',
'required' => false,
])
->add(
$builder->create('group_fb', FormType::class, [
'label' => 'Fire blanket',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('fbtab', ChoiceType::class, [
'label' => 'Fire blanket release tabs available',
'choices' => [
'Yes' => 'Yes',
'No' => 'No',
'None provided' => '',
'Not tested' => 'Not tested'
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('fbvi', ChoiceType::class, [
'label' => 'Fire blanket visual inspection',
'choices' => [
'Yes' => 'Yes',
'No' => 'No',
'None provided' => '',
'Not tested' => 'Not tested'
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('fbcoment', TextType::class, [
'label' => 'Fire blanket comments',
'required' => false,
])
->add(
$builder->create('group_fevi', FormType::class, [
'label' => 'Emergency Lighting',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('fevi', ChoiceType::class, [
'label' => 'Emergency lighting visual inspection',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('fecoment', TextType::class, [
'label' => 'Emergency lighting comments',
'required' => false,
])
->add(
$builder->create('group_fw', FormType::class, [
'label' => 'Boiler/water heater',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('fwtemp', ChoiceType::class, [
'label' => 'Boiler water heater thermostat set to 60 degrees',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
'Not tested' => 'Not tested'
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('fwcoment', TextType::class, [
'label' => 'Boiler/water heater comments',
'required' => false,
])
->add(
$builder->create('group_chimney', FormType::class, [
'label' => 'Chimney',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('chimney', ChoiceType::class, [
'label' => 'Chimney swept',
'choices' => [
'n/a' => '',
'Yes' => 'Yes',
'No' => 'No',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('chimneydate', DateType::class, [
'label' => 'Date last swept',
'html5' => true,
'widget' => 'single_text',
'format' => 'yyyy-MM-dd',
'input_format' => 'yyyy-MM-dd',
'required' => false,
])
->add(
$builder->create('group_menotes', FormType::class, [
'label' => 'Management and efficiency',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('mnotes', TextareaType::class, [
'label' => 'Management notes and suggestions',
'required' => false,
])
->add('mpic1', FileType::class, [
'label' => 'Management picture 1',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('mpic2', FileType::class, [
'label' => 'Management picture 2',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('mpic3', FileType::class, [
'label' => 'Management picture 3',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('mpic4', FileType::class, [
'label' => 'Management picture 4',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add(
$builder->create('group_cleanliness', FormType::class, [
'label' => 'Cleanliness',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('cliving', ChoiceType::class, [
'label' => 'Cleanliness living rooms',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('cbed', ChoiceType::class, [
'label' => 'Cleanliness bedrooms',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('cbath', ChoiceType::class, [
'label' => 'Cleanliness bathrooms',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('ckit', ChoiceType::class, [
'label' => 'Cleanliness kitchens',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('cleanlinessScore', TextType::class, [
'label' => 'Cleanliness Score',
'required' => false,
'attr' => ['class' => 'col-2'],
'disabled' => true,
// 'scale' => 2,
])
->add(
$builder->create('group_cleanliness_items', FormType::class, [
'label' => 'Cleanliness notes',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('cnotes', TextareaType::class, [
'label' => 'Cleanliness notes and suggestions',
'required' => false,
])
->add('cpic1', FileType::class, [
'label' => 'Cleanliness picture 1',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('cpic2', FileType::class, [
'label' => 'Cleanliness picture 2',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('cpic3', FileType::class, [
'label' => 'Cleanliness picture 3',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('cpic4', FileType::class, [
'label' => 'Cleanliness picture 4',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add(
$builder->create('group_publicarea', FormType::class, [
'label' => 'Public Area',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('pdecor', ChoiceType::class, [
'label' => 'Public area decoration',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('pfurniture', ChoiceType::class, [
'label' => 'Public area furniture, soft furnishings and fittings',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('pflooring', ChoiceType::class, [
'label' => 'Public area flooring',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('plighting', ChoiceType::class, [
'label' => 'Public area lighting, heating and ventilation',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('publicAreaScore', TextType::class, [
'label' => 'Public Area Score',
'required' => false,
'attr' => ['class' => 'col-2'],
'disabled' => true,
// 'scale' => 2,
])
->add(
$builder->create('group_publicarea_items', FormType::class, [
'label' => 'Public Area items',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('piflooring', ChoiceType::class, [
'label' => 'Public area flooring and rugs',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('pseating', ChoiceType::class, [
'label' => 'Public area seating',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('pcurtain', ChoiceType::class, [
'label' => 'Public area curtains and blinds',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('pcoffeetable', ChoiceType::class, [
'label' => 'Public area coffee table',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('plamp', ChoiceType::class, [
'label' => 'Public area lamps',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('pdintable', ChoiceType::class, [
'label' => 'Public area dining table',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('ptablemat', ChoiceType::class, [
'label' => 'Public area table mats',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('pbin', ChoiceType::class, [
'label' => 'Public area fireproof waste bin',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('pvaccum', ChoiceType::class, [
'label' => 'Public area vacuum',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('ptv', ChoiceType::class, [
'label' => 'TV (Recommend Smart TV)',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('pnotes', TextareaType::class, [
'label' => 'Public area notes and suggestions',
'required' => false,
])
->add('ppic1', FileType::class, [
'label' => 'Public area picture 1',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('ppic2', FileType::class, [
'label' => 'Public area picture 2',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('ppic3', FileType::class, [
'label' => 'Public area picture 3',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('ppic4', FileType::class, [
'label' => 'Public area picture 4',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add(
$builder->create('group_kitchen', FormType::class, [
'label' => 'Kitchen',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('kitdecor', ChoiceType::class, [
'label' => 'Kitchen decoration',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('kitfurniture', ChoiceType::class, [
'label' => 'Kitchen furniture, fittings and fitments',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('kitflooring', ChoiceType::class, [
'label' => 'Kitchen flooring',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('kitlighting', ChoiceType::class, [
'label' => 'Kitchen lighting, heating and ventilation',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('kitgas', ChoiceType::class, [
'label' => 'Kitchen electrical and gas equipment',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('kitequipment', ChoiceType::class, [
'label' => 'Kitchen crockery, cutlery and glassware',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('kitutensils', ChoiceType::class, [
'label' => 'Kitchen pots, pans and utensils',
'choices' => [
// 'n/a' => '',
'Unacceptable' => '0',
'Poor' => '1',
'Quite Good' => '2',
'Good' => '3',
'Good to Very Good' => '3.5',
'Very Good' => '4',
'Very Good to Excellent' => '4.5',
'Excellent' => '5',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => true,
])
->add('kitchenScore', TextType::class, [
'label' => 'Kitchen Score',
'required' => false,
'attr' => ['class' => 'col-2'],
'disabled' => true,
// 'scale' => 2,
])
->add(
$builder->create('group_kitchen_items', FormType::class, [
'label' => 'Kitchen items',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('kiticooker', ChoiceType::class, [
'label' => 'Kitchen cooker',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitifreezer', ChoiceType::class, [
'label' => 'Kitchen fridge with ice box/separate fridge freezer',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitwashmachine', ChoiceType::class, [
'label' => 'Kitchen washing machine',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitdryer', ChoiceType::class, [
'label' => 'Kitchen tumble dryer or drying facilities',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitiron', ChoiceType::class, [
'label' => 'Kitchen ironing board and iron',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitwasher', ChoiceType::class, [
'label' => 'Kitchen dishwasher',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitmicrowave', ChoiceType::class, [
'label' => 'Kitchen microwave',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitkettle', ChoiceType::class, [
'label' => 'Kitchen kettle',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kittoaster', ChoiceType::class, [
'label' => 'Kitchen toaster',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitsaucepan', ChoiceType::class, [
'label' => 'Kitchen saucepans',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitfrypan', ChoiceType::class, [
'label' => 'Kitchen frying pans',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitiutensils', ChoiceType::class, [
'label' => 'Kitchen utensils',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('ktcookware', ChoiceType::class, [
'label' => 'Kitchen cookware (bowls etc)',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitcutlery', ChoiceType::class, [
'label' => 'Kitchen cutlery',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitcrockery', ChoiceType::class, [
'label' => 'Kitchen crockery',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitglasses', ChoiceType::class, [
'label' => 'Kitchen glasses',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitsaltandpepper', ChoiceType::class, [
'label' => 'Kitchen salt and pepper grinders/condiments',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitwup', ChoiceType::class, [
'label' => 'Kitchen washing up bowl',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitclean', ChoiceType::class, [
'label' => 'Kitchen cleaning materials',
'choices' => [
'n/a' => '',
'Unacceptable' => 'Unacceptable',
'Poor' => 'Poor',
'Quite Good' => 'Quite Good',
'Good' => 'Good',
'Good to Very Good' => 'Good to Very Good',
'Very Good' => 'Very Good',
'Very Good to Excellent' => 'Very Good to Excellent',
'Excellent' => 'Excellent',
],
'expanded' => true,
'multiple' => false,
'attr' => ['class' => 'form-check-inline'],
'required' => false,
])
->add('kitnotes', TextareaType::class, [
'label' => 'Kitchen notes and suggestions',
'required' => false,
])
->add('kitpic1', FileType::class, [
'label' => 'Kitchen picture 1',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('kitpci2', FileType::class, [
'label' => 'Kitchen picture 2',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('kitpic3', FileType::class, [
'label' => 'Kitchen picture 3',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('kitpic4', FileType::class, [
'label' => 'Kitchen picture 4',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add(
$builder->create('group_bedroom', FormType::class, [
'label' => 'Bedroom',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('bedroom', CollectionType::class, [
'label' => false,
'entry_type' => BedroomType::class,
'allow_add' => true,
'prototype' => true,
'required' => true,
'row_attr' => ['class' => 'foldable'],
])
// ->add('beddecor', ChoiceType::class, [
// 'label' => 'Bedroom decoration',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => '0',
// 'Poor' => '1',
// 'Quite Good' => '2',
// 'Good' => '3',
// 'Good to Very Good' => '3.5',
// 'Very Good' => '4',
// 'Very Good to Excellent' => '4.5',
// 'Excellent' => '5',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedfurniture', ChoiceType::class, [
// 'label' => 'Bedroom furniture, fittings and soft furnishings',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => '0',
// 'Poor' => '1',
// 'Quite Good' => '2',
// 'Good' => '3',
// 'Good to Very Good' => '3.5',
// 'Very Good' => '4',
// 'Very Good to Excellent' => '4.5',
// 'Excellent' => '5',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedflooring', ChoiceType::class, [
// 'label' => 'Bedroom flooring',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => '0',
// 'Poor' => '1',
// 'Quite Good' => '2',
// 'Good' => '3',
// 'Good to Very Good' => '3.5',
// 'Very Good' => '4',
// 'Very Good to Excellent' => '4.5',
// 'Excellent' => '5',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedlight', ChoiceType::class, [
// 'label' => 'Bedroom lighting, heating and ventilation',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => '0',
// 'Poor' => '1',
// 'Quite Good' => '2',
// 'Good' => '3',
// 'Good to Very Good' => '3.5',
// 'Very Good' => '4',
// 'Very Good to Excellent' => '4.5',
// 'Excellent' => '5',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedbeds', ChoiceType::class, [
// 'label' => 'Bedroom beds and headboards',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => '0',
// 'Poor' => '1',
// 'Quite Good' => '2',
// 'Good' => '3',
// 'Good to Very Good' => '3.5',
// 'Very Good' => '4',
// 'Very Good to Excellent' => '4.5',
// 'Excellent' => '5',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedbedding', ChoiceType::class, [
// 'label' => 'Bedroom bedding, bed linen and towels',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => '0',
// 'Poor' => '1',
// 'Quite Good' => '2',
// 'Good' => '3',
// 'Good to Very Good' => '3.5',
// 'Very Good' => '4',
// 'Very Good to Excellent' => '4.5',
// 'Excellent' => '5',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bediflooring', ChoiceType::class, [
// 'label' => 'Bedroom flooring and rugs',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedcurtain', ChoiceType::class, [
// 'label' => 'Bedroom curtains and blinds',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedheadboard', ChoiceType::class, [
// 'label' => 'Bedroom headboards',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedmatress', ChoiceType::class, [
// 'label' => 'Bedroom mattreses',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedmatressp', ChoiceType::class, [
// 'label' => 'Bedroom mattress protectors',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedduvet', ChoiceType::class, [
// 'label' => 'Bedroom duvet/blankets',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedvalances', ChoiceType::class, [
// 'label' => 'Bedroom valances',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedpillow', ChoiceType::class, [
// 'label' => 'Bedroom pillows',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedpillowslips', ChoiceType::class, [
// 'label' => 'Bedroom pillowslips',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedbstable', ChoiceType::class, [
// 'label' => 'Bedroom bedside tables/lamps',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedwardrobe', ChoiceType::class, [
// 'label' => 'Bedroom wardrobes/hanging space',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedhanger', ChoiceType::class, [
// 'label' => 'Bedroom hangers',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedmirror', ChoiceType::class, [
// 'label' => 'Bedroom mirrors',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bedbin', ChoiceType::class, [
// 'label' => 'Bedroom waste bins',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bednotes', TextareaType::class, [
// 'label' => 'Bedroom note and suggestions',
// 'required' => false
// ])
->add(
$builder->create('group_bedroom_notes', FormType::class, [
'label' => 'Bedroom notes',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('bedroomScore', TextType::class, [
'label' => 'Bedroom Score',
'required' => false,
'attr' => ['class' => 'col-2'],
'disabled' => true,
// 'scale' => 2,
])
->add('bedpic1', FileType::class, [
'label' => 'Bedroom picture 1',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('bedpic2', FileType::class, [
'label' => 'Bedroom picture 2',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('bedpic3', FileType::class, [
'label' => 'Bedroom picture 3',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('bedpic4', FileType::class, [
'label' => 'Bedroom picture 4',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add(
$builder->create('group_bathroom', FormType::class, [
'label' => 'Bathroom',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('bathroom', CollectionType::class, [
'label' => false,
'entry_type' => BathroomType::class,
'allow_add' => true,
'prototype' => true,
'required' => true,
'row_attr' => ['class' => 'foldable'],
])
// ->add('bathdecor', ChoiceType::class, [
// 'label' => 'Bathroom decoration',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => '0',
// 'Poor' => '1',
// 'Quite Good' => '2',
// 'Good' => '3',
// 'Good to Very Good' => '3.5',
// 'Very Good' => '4',
// 'Very Good to Excellent' => '4.5',
// 'Excellent' => '5',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bathfurniture', ChoiceType::class, [
// 'label' => 'Bathroom furniture, fittings and sanitaryware',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => '0',
// 'Poor' => '1',
// 'Quite Good' => '2',
// 'Good' => '3',
// 'Good to Very Good' => '3.5',
// 'Very Good' => '4',
// 'Very Good to Excellent' => '4.5',
// 'Excellent' => '5',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bathflooring', ChoiceType::class, [
// 'label' => 'Bathroom flooring',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => '0',
// 'Poor' => '1',
// 'Quite Good' => '2',
// 'Good' => '3',
// 'Good to Very Good' => '3.5',
// 'Very Good' => '4',
// 'Very Good to Excellent' => '4.5',
// 'Excellent' => '5',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bathlighting', ChoiceType::class, [
// 'label' => 'Bathroom lighting, heating and ventilation',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => '0',
// 'Poor' => '1',
// 'Quite Good' => '2',
// 'Good' => '3',
// 'Good to Very Good' => '3.5',
// 'Very Good' => '4',
// 'Very Good to Excellent' => '4.5',
// 'Excellent' => '5',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bathbrush', ChoiceType::class, [
// 'label' => 'Bathroom toilet brush',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bathmirror', ChoiceType::class, [
// 'label' => 'Bathroom mirror',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bathshave', ChoiceType::class, [
// 'label' => 'Bathroom shaver point',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bathmat', ChoiceType::class, [
// 'label' => 'Bathroom bath/loo mats',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bathbin', ChoiceType::class, [
// 'label' => 'Bathroom waste bins',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bathtowelrack', ChoiceType::class, [
// 'label' => 'Bathroom towel rail',
// 'choices' => [
// 'n/a' => '',
// 'Unacceptable' => 'Unacceptable',
// 'Poor' => 'Poor',
// 'Quite Good' => 'Quite Good',
// 'Good' => 'Good',
// 'Good to Very Good' => 'Good to Very Good',
// 'Very Good' => 'Very Good',
// 'Very Good to Excellent' => 'Very Good to Excellent',
// 'Excellent' => 'Excellent',
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('bathnotes', TextareaType::class, [
// 'label' => 'Bathroom notes and suggestions',
// 'required' => false,
// ])
// ->add(
// $builder->create('group_fsvi', FormType::class, [
// 'label' => 'Shower head',
// 'inherit_data' => true,
// 'label_attr' => ['class' => 'font-weight-bold group-heading'],
// 'row_attr' => ['class' => 'mt-5'],
// 'required' => false,
// ])
// )
// ->add('fsvi', ChoiceType::class, [
// 'label' => 'Shower head visual inspection',
// 'choices' => [
// 'n/a' => '',
// 'Yes' => 'Yes',
// 'No' => 'No',
// 'Not tested' => 'Not tested'
// ],
// 'expanded' => true,
// 'multiple' => false,
// 'attr' => ['class' => 'form-check-inline'],
// 'required' => false,
// ])
// ->add('fscoment', TextType::class, [
// 'label' => 'Shower head comments',
// 'required' => false,
// ])
->add(
$builder->create('group_bathroom_notes', FormType::class, [
'label' => 'Bathroom notes',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('bathroomScore', TextType::class, [
'label' => 'Bathroom Score',
'required' => false,
'attr' => ['class' => 'col-2'],
'disabled' => true,
// 'scale' => 2,
])
->add('bathpic1', FileType::class, [
'label' => 'Bathroom picture 1',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('bathpic2', FileType::class, [
'label' => 'Bathroom picture 2',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('bathpic3', FileType::class, [
'label' => 'Bathroom picture 3',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('bathpic4', FileType::class, [
'label' => 'Bathroom picture 4',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add(
$builder->create('group_summary', FormType::class, [
'label' => 'Summary',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('summary', TextareaType::class, [
'label' => 'Summary',
'required' => false,
])
->add('miscpic1', FileType::class, [
'label' => 'Miscellaneous picture 1',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('miscpic2', FileType::class, [
'label' => 'Miscellaneous picture 2',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('miscpic3', FileType::class, [
'label' => 'Miscellaneous picture 3',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add('miscpic4', FileType::class, [
'label' => 'Miscellaneous picture 4',
'required' => false,
'mapped' => false,
'show_preview' => true,
])
->add(
$builder->create('group_scores', FormType::class, [
'label' => 'Scores',
'inherit_data' => true,
'label_attr' => ['class' => 'font-weight-bold group-heading'],
'row_attr' => ['class' => 'mt-5'],
'required' => false,
])
)
->add('totalScore', TextType::class, [
'label' => 'Total Score',
'required' => false,
'attr' => ['class' => 'col-2'],
'disabled' => true,
// 'scale' => 2,
])
->add('stars', TextType::class, [
'label' => 'Star rating',
'required' => false,
'attr' => ['class' => 'col-2'],
'disabled' => true,
])
;
}
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'data_class' => Forms::class,
// 'csrf_protection' => false,
]);
}
}