15 Commits

Author SHA1 Message Date
a38208f5cf fix sf4 deprecated: remove choices_as_values form option 2020-07-22 17:05:24 +02:00
nobohan
b07d876157 fix deprecations: use fqcn 2018-04-04 18:17:51 +02:00
nobohan
23dd4ec48b fix deprecations: use choices_as_values=true and flip content of the choice options 2018-04-04 17:50:23 +02:00
nobohan
b84ee91652 fix deprecations: use fqcn instead of 'choices' 2018-04-04 15:55:45 +02:00
60dc11caed translation in choices name 2015-12-17 22:12:50 +01: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
bf99b68a2a Improve rendering of options and fields 2015-11-27 13:37:07 +01:00
Marc Ducobu
47a9a29236 allowing csv rendering for custom fields 2015-02-17 15:01:12 +01:00
Marc Ducobu
a8831056d2 class cf-title for form construction ref #363 2014-11-25 15:52:02 +01:00
Marc Ducobu
43d863ef88 Using TranslatableStringHelper inside CustomFieldChoice, CustomFieldText & CustomFieldTitle 2014-11-17 12:10:14 +01:00
Marc Ducobu
8fa75e2dd6 Render for title 2014-11-12 12:28:57 +01:00
Marc Ducobu
cac299368a Formating CF Form 2014-11-11 12:53:14 +01:00
Marc Ducobu
ab51e3c7f4 Title for custom Field : class title or subtile 2014-11-10 16:05:26 +01:00
Marc Ducobu
c77bfe989c Debug : getLabel -> getName 2014-11-10 11:09:19 +01:00
Marc Ducobu
1747ba5f0d Adding Title for Custom Field 2014-11-08 15:19:30 +01:00