<?php
/**
 * YAWIK
 *
 * @filesource
 * @copyright https://yawik.org/COPYRIGHT.php
 * @license   MIT
 */

/** Organizations forms */
namespace Organizations\Form;

use Core\Form\Container;

/**
 * Organization form container.
 *
 * @author Mathias Weitz <weitz@cross-solution.de>
 * @author Mathias Gelhausen <gelhausen@cross-solution.de>
 * @author Anthonius Munthi <me@itstoni.com>
 */
class Organizations extends Container
{
    public function init()
    {
        $this->setName('organization-form');

        $this->setForms(
            array(
                'nameForm' => array(
                    'type' => 'Organizations/OrganizationsNameForm',
                    'property' => true,
                    'options' => array(
                        'enable_descriptions' => true,
                        'description' => /*@translate*/ 'Please enter the name of the hiring organization.',
                    ),
                ),

                'locationForm' => array(
                    'type' => 'Organizations/OrganizationsContactForm',
                    'property' => 'contact',
                    'options' => array(
                        'enable_descriptions' => true,
                        'description' => /*@translate*/ 'Please enter a contact for the hiring organization.',
                    ),
                ),

                'organizationLogo' => array(
                    'type' => 'Organizations/Image',
                    'property' => 'images',
                    'use_files_array' => true,

                    'options' => [

                    ]
                ),

                'descriptionForm' => array(
                    'type' => 'Organizations/OrganizationsDescriptionForm',
                    'property' => true,
                    'options' => array(
                        'enable_descriptions' => true,
                        'description' => /*@translate*/ 'Please enter a description for the hiring organization.',
                    ),
                ),

                'employeesManagement' => array(
                    'type' => 'Organizations/Employees',
                    'property' => true,
                    'options' => array(
                        'label' => /*@translate*/ 'Employees',
                        'enable_descriptions' => true,
                        'description' => /*@translate*/ 'Manage your employees and their permissions.',
                    ),
                ),

                'workflowSettings' => array(
                    'type' => 'Organizations/WorkflowSettings',
                    'property' => 'workflowSettings',
                    'options' => array(
                        'label' => /*@translate*/ 'Workflow',
                        'enable_descriptions' => true,
                        'description' => /*@translate*/ 'Define, how notifications about new applications reach your employees',
                    ),
                ),

                'profileSettings' => [
                    'type' => OrganizationsProfileForm::class,
                    'property' => true,
                    'options' => [
                        'label' => /*@translate*/ 'Profile Setting',
                        'enable_descriptions' => true,
                        'description' => /*@translate*/ 'Define how profile page should behave'
                    ]
                ]

            )
        );
    }
}
