Sonata\InvoiceBundle\Admin\InvoiceAdmin::configureFormFields PHP Метод

configureFormFields() публичный Метод

public configureFormFields ( Sonata\AdminBundle\Form\FormMapper $formMapper )
$formMapper Sonata\AdminBundle\Form\FormMapper
    public function configureFormFields(FormMapper $formMapper)
    {
        if (!$this->isChild()) {
            $formMapper->with($this->trans('invoice.form.group_main_label', array(), $this->translationDomain))->add('customer', 'sonata_type_model_list')->end();
        }
        $formMapper->with($this->trans('invoice.form.group_main_label', array(), $this->translationDomain))->add('reference')->add('currency', 'sonata_currency')->add('status', 'sonata_invoice_status', array('translation_domain' => $this->translationDomain))->add('totalExcl')->add('totalInc')->end()->with($this->trans('invoice.form.group_billing_label', array(), $this->translationDomain), array('collapsed' => true))->add('name')->add('phone')->add('address1')->add('address2')->add('address3')->add('city')->add('postcode')->add('country', 'country')->add('fax')->add('email')->add('mobile')->end();
    }