115 Commits

Author SHA1 Message Date
94d446f5d4 use '@foo/bar.html.twig' syntax in twig templates 2020-09-06 20:32:46 +02:00
f61d54d4cf move files from Resources/translations/ to translations/ 2020-08-04 16:28:07 +02:00
3c37924dc1 sf4, setting new path for all config yaml files, and replace 'controller' path syntax in routes definitions 2020-08-03 13:18:58 +02:00
d4130b701e install twig intl-extra, replace localizeddate filter by format_date 2020-08-03 11:10:38 +02:00
5875c9f0f7 adapt migrations files to flex 2020-07-31 15:59:03 +02:00
d8aa11a5af rename syntax for ChillMain twig template calls 2020-07-30 14:25:28 +02:00
3a03d44e9a sf4 deprecated: migrate Doctrine ORM mapping to annotation 2020-07-24 17:45:32 +02:00
59bf662886 fix sf4 deprecated getting private container 2020-07-16 15:51:05 +02:00
3c5082dafb fix sf4 deprecated service argument syntax 2020-07-16 15:20:56 +02:00
f833a08515 fix sf4 deprecated service configuration key 2020-07-16 14:48:36 +02:00
5558db5102 fix error with post_text extension 2018-07-18 16:46:29 +02:00
23e68416a2 Improve isChecked 2018-06-13 16:45:21 +02:00
51460be132 Merge branch 'master' into upgrade-sf3 2018-05-16 22:09:22 +02:00
84de2e148d use translatable strign helper to translate string 2018-05-16 22:08:53 +02:00
cacf6d0f3a fix error when adding customfield choice 2018-05-16 21:52:36 +02:00
a43dc3733f re-enable fixtures with sf3 2018-05-04 22:50:17 +02:00
nobohan
ed526fa8ea fix deprecations: no more need to define these services (that cause a deprecation...) 2018-04-11 16:41:35 +02:00
nobohan
5515d94aae fix deprecations: requirements: _method -> methods 2018-04-03 15:19:35 +02:00
d1fd359366 add a date field 2018-03-27 16:35:56 +02:00
fdb5ec6733 new architecture for tests 2017-07-04 16:15:20 +02:00
f8dd08d194 adding div around title
Those div are required to solve ref Chill-project/Chill-Person#12
2016-11-13 21:04:20 +01:00
9100bb14b3 fixing the call on js function 2016-09-02 08:26:18 +02:00
2e59c0666b adding rendering of choice_long and number on CSV 2016-07-08 13:56:17 +02:00
b97a550e2b remove unused locale and request stack
The locale resolving is delegated to TranslatableStringHelper
2016-03-21 00:00:58 +01:00
f145ae7f88 re-introduce post_text extension in fields.html.twig + tests 2015-12-30 16:57:16 +01:00
287c70c6f3 add validation rule on slug for custom fields 2015-12-28 21:16:01 +01:00
54391b02f3 consistency in twig methods
The method chill_custom_fields_is_empty take now the fields as first argument, and the customField as second argument, to be consistent with other twig methods.
2015-12-28 00:54:38 +01:00
3e5a90c36c escaping argument 2015-12-23 23:46:15 +01:00
9867cca632 improve rendering of cfgroup index 2015-12-17 22:16:06 +01:00
60dc11caed translation in choices name 2015-12-17 22:12:50 +01:00
cbc66dc0f0 allow choosing empty value in CFLongChoice 2015-12-17 22:07:28 +01:00
9c622bc852 improve cfgroup rendering to show title only if necessary
If the value `chill_custom_fields.show_empty_values_in_views` is false,
the title is shown only if a field has been filled "below" the title.
2015-12-17 07:46:06 +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
9ca2be78eb use localize translatable string function to render label widget 2015-12-15 10:06:05 +01:00
4f13ec6959 add a custom field long choice basic
The `custom field long choice` aim to provide a way to deal with choices
with a big possibilities.

The `custom field long choice` allow :
- to persist different options in the database ;
- each option has a key, a text (translatable string), and eventually a
  parent, and an internal_key
- every key can be activate or not. If the parent is inactivated, all
  childs are inactivated
- the internal key have two purposes :
    - link to an external csv file, with their own key ;
    - add a special class to results, to allow custom layout.

Currently, the field exists, but some elements are missing :

- a script for CSV import
- possibility to select multiple items
- edition of options
- handle of option without parents
- tests are missing
2015-12-11 11:43:39 +01:00
3230659a4b add a required field to custom fields type
ref Chill-project/Chill-CustomFields#17
2015-12-10 17:16:59 +01:00
b88bb50b56 Merge branch 'marcu/Chill-CustomFields-master'
Merge request Chill-project/Chill-CustomFields!5

Conflicts:
	Resources/views/Form/fields.html.twig
2015-12-10 15:44:20 +01:00
4f2b605efc add a number field
The field has three option :

- lesser or equal than. If null, this option is ignored ;
- greather or equal than. If null, this options is ignored ;
- precision : the number of decimal after the number ;
- text after the field : a text to show after the field.

The field is rendered as an HTML integer input if precision = 0, or a
symfony number field if precision > 0.

ref chill-project/Chill-CustomFields#11
2015-12-08 19:45:04 +01:00
Marc Ducobu
57fbd54a9c Removing the choice_with_other_widget that is alreay defined in the main bundle 2015-12-08 11:41:34 +01:00
c9ca7c1e1b fix creation of custom field without cfgroup id 2015-11-30 21:31:58 +01:00
2401270754 add flash message for custom fields group 2015-11-27 14:29:38 +01:00
46173231d2 adding flash messages for customfield 2015-11-27 14:18:19 +01:00
cbf9cee65c clean code of usnused methods 2015-11-27 13:51:36 +01:00
fa3245b99b add a btn on edit link 2015-11-27 13:42:06 +01:00
bf99b68a2a Improve rendering of options and fields 2015-11-27 13:37:07 +01:00
f24a088a0d [wip] re-introduce 'add element' functionality 2015-11-25 21:26:30 +01:00
b96076022f [wip] layout of custom field edition
[ci skip]
2015-11-25 08:45:17 +01:00
cbcc722c0d remove the field "customFieldsGroup" on custom field creation
The customFieldsGroup field is hidden when creating a new customFields.

The customFieldsGroup is retrieved from the url (`customFieldsGroup` value in the URL).

This should ease the task for administrator and be consistent with the UI which group customFields into customFieldsGroup.
2015-11-08 21:18:03 +01:00
421f54e194 remove code for custom fields default group CRUD
The CRUD of default groups is handled now by the custom fields index page. The CRUD is not necessary.
2015-11-08 18:52:28 +01:00
3e23c1f156 show options in show view 2015-11-08 18:47:16 +01:00