7 Commits

Author SHA1 Message Date
533d27785e sf4, adding require symfony/templating + fix treebuilder depreciation 2020-07-31 18:21:00 +02:00
fe73a64e9d Add possibility to hide empty value in customfield group view rendering
A new parameter is defined :

```
chill_custom_fields:
    show_empty_values_in_views = true|false
```

A new method is added to CustomFieldInterface: `isEmptyValue`. To ease
the dev of new classes, an AbstractCustomField class is created, which
implements the most commons function (currently, only isEmptyValue).

A new Twig Filter is added: `chill_custom_field_is_empty`

The twig filter `chill_custom_fields_group_widget` has a new possibility
in array option : `show_empty`. Default to
chill_custom_fields.show_empty_values_in_view. May be forced by
true/false.
2015-12-15 11:11:36 +01:00
77bbf711a6 add info to configuration reference 2015-02-26 09:55:49 +01:00
0c2b5f3fb4 Add column option, definition in config & adapt form
Exemple for configuration :

```
chill_custom_fields:
    customizables_entities:
        -
            class: Chill\ReportBundle\Entity\Report
            name: ReportEntity
            options:
                summary_fields: {key: abc, form_type: text, form_options: { required: false }}
```
2015-02-24 21:15:02 +01:00
Marc Ducobu
19318d3fb4 Refactoring 2014-11-10 11:45:34 +01:00
Marc Ducobu
a6ae6ca5a9 Refactoring : indentation 2014-11-08 15:16:23 +01:00
8011746b26 move bundle to root dir for inclusion in packagist refs #259 2014-11-04 17:10:59 +01:00