<?php

namespace Dashboard\Form;

use Zend\Form\Form;
use Zend\Form\Element;
use Zend\Form\Element\Select;
use Zend\Form\Element\File;
use Zend\Form\Element\Text;
use Zend\Form\Element\Radio;
use Zend\Form\Element\Submit;
use Zend\Form\Element\Checkbox;
use Zend\Form\Element\Email;
class FaremanagementAddPriceShareForm extends Form {

    public function __construct($name = null) {

        parent::__construct('profile-personal');

        $this->setAttribute('method', 'post');
        
        
        /**
         * 
         * Company Share
         */
        $this->add([
            'name' => 'company_share',
            'type' => Text::class,
            'attributes' => [
                'id' => 'company-share-id',  
                'placeholder' => '20',
                'class' => 'form-control margin-top0',
                
            ],
            'options' => [
                'label' => 'Company Share',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]);
        
        /**
         * 
         * Partner Share
         */
        $this->add([
            'name' => 'partner_share',
            'type' => Text::class,
            'attributes' => [
                'id' => 'partner-share-id',  
                'placeholder' => '0',
                'class' => 'form-control margin-top0',
                
            ],
            'options' => [
                'label' => 'Partner Share',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]);


        /**
         * 
         * Driver Share
         */
          $this->add([
            'name' => 'driver_share',
            'type' => Text::class,
            'attributes' => [
                'id' => 'driver-share-id',  
                'placeholder' => '80',
                'class' => 'form-control margin-top0',
                
            ],
            'options' => [
                'label' => 'Driver Share',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]);
           
          
          /**
         * 
         * save
         */
          $this->add([
            'name' => 'save',
            'type' => Submit::class,
            'attributes' => [
                'id' => 'save-id',    
                'placeholder' => 'Save',
                'class' => 'btn btn-info form-control ',
            ],
            
        ]);
          
             
    }

}
