Burgov / KeyValueFormBundle

A form type for managing key-value pairs
MIT License
44 stars 32 forks source link

Added key_options option #11

Closed alanpoulain closed 9 years ago

alanpoulain commented 9 years ago

This can be useful to change the labels, such as:

            ->add('details', 'burgov_key_value', array(
                'label' => $this->trans('user.form.details', array(), 'user'),
                'value_type' => 'text',
                'key_options' => array('label' => $this->trans('user.form.details.key', array(), 'user')),
                'value_options' => array('label' => $this->trans('user.form.details.value', array(), 'user')),
                'use_container_object' => true))
Burgov commented 9 years ago

Hi @alanpoulain, thanks for your PR. Could you add a test please?

alanpoulain commented 9 years ago

Hi @Burgov, it's done.