292 Commits

Author SHA1 Message Date
010c7652a6 Fixing minor issue with widget api and removing homepage menu 2016-09-23 12:34:48 +02:00
a3e7c60e01 replacing delegated_block api by widget api 2016-09-18 23:55:15 +02:00
812aeac3d7 adding style to pagination
ref #24
2016-09-06 13:15:35 +02:00
d20404bc3c implementing pagination api on search, and creating a "preview" of results
The search controller return a subset of the 5 first results. If the user want to
see more, the services implementing SearchInterface should add a link "see more",
and make use of the Pagination API to paginate.
2016-08-19 21:33:37 +02:00
2732bb1553 adding a pagination api
ref #24
2016-08-19 21:27:50 +02:00
09b258876d adding repository for user entity + simplify service config
The configuration of repositories is now in a new file for a better readability.
2016-06-21 22:02:43 +02:00
8aa37c7b73 creating entity repository for users
I also re-arranged the configuration of repositories to a dedicated file, which should improve readability.
2016-06-21 15:46:27 +02:00
384cb6c793 adding confirmation template
For action which require a confirmation message.

This is a way to have a template for every confirmation message in the
app.

Example of usage :

```
    {{ include('ChillMainBundle:Util:confirmation_template.html.twig',
        {
            # a title, not mandatory
            'title'             : 'Remove membership'|trans,
            # a confirmation question, not mandatory
            'confirm_question'  : 'Are you sure you want to remove
membership of "%name%" from the group "%group%"?'|trans({ '%name%' :
person.firstname ~ ' ' ~ person.lastname, '%group%' :
membership.cgroup.name }),
            # a route for "cancel" button (mandatory)
            'cancel_route'      : 'chill_group_membership_by_person',
            # the parameters for 'cancel' route (default to {} )
            'cancel_parameters' : { 'person_id' : membership.person.id
},
            # the form which will send the deletion. This form
            # **must** contains a SubmitType
            'form'              : form
        } ) }}

```
2016-06-01 16:17:53 +02:00
7c1698ed98 adding a logger for chill
The logger log messages to channel "chill".

The name of the service is `chill.main.logger`
2016-06-01 16:16:20 +02:00
b0f4297948 improve js to link select with parent/child when parent is multiple
Now, the function take into account that parent might be multiple.

This is still incomplete : I do not know if this work if the parent is
multiple **and** a select2
2016-05-27 15:45:04 +02:00
a4b4365f7b fix #15: comment function checkNullValuesInChoices 2016-05-26 21:00:06 +02:00
2b4aec4b1a add missing messages 2016-05-25 11:00:29 +02:00
5bad2b7ef4 register horizontal list in services 2016-05-25 10:57:09 +02:00
f56de656d3 [minor] add missing message 2016-05-17 09:21:15 +02:00
590e4c07f9 fix error on Bad Credentials message 2016-05-10 13:28:35 +02:00
Marc Ducobu
a766651443 Passage de opensansXX à Open Sans + font-weight 2016-05-06 19:03:48 +02:00
Marc Ducobu
510d3ff480 Merge 2016-05-06 16:30:15 +02:00
Marc Ducobu
b67b6f4917 Improving the timeline UI 2016-05-06 16:27:35 +02:00
Marc Ducobu
84d263cfa5 Refactoring 2016-05-06 12:22:18 +02:00
4c073fcb70 adding a link to user manual 2016-04-29 17:43:31 +02:00
0c5a7f04dd use the font 'open Sans' with all variants
close #21
2016-04-29 17:26:37 +02:00
250b1826f6 adding messages for valid / not valid 2016-04-26 16:54:27 +02:00
afcf9e270e add translations for all steps and clean layout 2016-04-21 22:50:17 +02:00
4bfe4b361f replacing the response of Export::getLabel by a Closure 2016-04-21 22:20:37 +02:00
Marc Ducobu
7ea7137194 New formatter : CSVListFormatter 2016-04-19 17:54:19 +02:00
dbe7d4855b improve form layout 2016-04-19 00:24:55 +02:00
f888b39cdb improve test, modify exportInterface, use constants for ExportType keys
- add a test for 'generate' ;
- the ExportType declare keys, and those keys are used in ExportManager;
- the export interface does not require the "has form" function, and
  export form is taken into account
2016-04-15 23:13:41 +02:00
de27c50a5a begin to take ACL into account [WIP] [ci skip] 2016-04-15 23:13:41 +02:00
c51a46cee5 improve layout 2016-04-15 23:13:41 +02:00
8eba8dca24 add a step to pick center before export 2016-04-15 23:13:41 +02:00
fe1a9a0838 add form to formatter
The formatter can add a form. This form is handle by controller and exportManager.

[WIP] The csv formatter ask the user to ordering the aggregators.
2016-04-15 23:13:41 +02:00
ce2119ee6f handle requests and form to build an export 2016-04-15 23:13:40 +02:00
e1a9ad1612 [wip] add different steps to handle request 2016-04-15 23:13:40 +02:00
b40b85527a create a first set of export framework
- create interfaces
- create an export manager
- add a compiler pass to gather services tagged for export
2016-04-15 23:13:40 +02:00
876a656bd2 update translation to take into account '0' seconds & minutes 2016-03-24 14:59:47 +01:00
dc5fd27a40 Merge remote-tracking branch 'framagit/master' 2016-03-24 14:21:28 +01:00
d6a1b878d3 add the twig date extension
The twig date extension allow to print message like "update 1 hour ago".

Documentation here : http://twig.sensiolabs.org/doc/extensions/date.html
2016-03-24 14:20:17 +01:00
Marc Ducobu
6d0ffcf1bc Adding the js function categoryLinkParentChildSelect to chill-main (from chill-group) 2016-03-24 10:42:46 +01:00
Marc Ducobu
e6a47ddcbc Refactoring : tabulation with 4 spaces 2016-03-24 09:47:14 +01:00
0fa3a9b0ed Merge remote-tracking branch 'framagit/master' 2016-03-23 15:16:58 +01:00
Marc Ducobu
e285603e18 Merge branch 'master' of https://git.framasoft.org/Chill-project/Chill-Main 2016-03-22 14:29:41 +01:00
Marc Ducobu
f205a1ccca Refactoring : adding the JS in the pabe bottom part 2016-03-22 14:29:00 +01:00
Marc Ducobu
8f91076c6b Code refactoring 2016-03-22 14:27:53 +01:00
386d4dd623 fix bug when postal code is null + add validation for address &postcode
fix #20
fix #18
2016-03-18 11:49:56 +01:00
4a77d7617a add script to add postal code 2016-03-15 16:01:27 +01:00
5c67a9098e allow delegation of block rendering
ref #12

In a template, you can now allow rendering of a block from other bundle.

The layout template must explicitly call the rendering of other block,
with the twig function

```
chill_delegated_block('block_name', { 'array' : 'with context' } )
```

This will launch an event
`Chill\MainBundle\Templating\Events\DelegatedBlockRenderingEvent` with
the event's name 'chill_block.block_name'.

You may add content to the page using the function
`DelegatedBlockRenderingEvent::addContent`.
2016-03-14 22:45:04 +01:00
42455b7d66 improve address rendering macro 2016-03-14 14:58:35 +01:00
d8efc93be0 add form to update/create address and pick postal code 2016-03-10 21:44:13 +01:00
7679786288 add address and postal code 2016-03-10 17:57:30 +01:00
6ae1b8334e Remove the admin menu from the section user's menu. 2016-02-25 13:08:10 +01:00