These are chat archives for symfony2admingenerator/GeneratorBundle

2nd
Mar 2016
Serg N. Kalachev
@ksn135
Mar 02 2016 18:55

@calvera @bobvandevijver Hi there ! I have a similar case. May be we should extend admin generator for such cases?
Current implementation (left untouched):

builders:
    excel:
        params: 
            credentials: 'hasRole("ROLE_SUPER_ADMIN")'        
            display:
                - id
                - guid
                - dirty
                - textState
                - kind
                - fullName

New featured "multi-report mode":

builders:
    excel:
        params: 
            credentials: 'hasRole("ROLE_SUPER_ADMIN")'        
            display:
               "Full report":
                  - id
                  - guid
                  - dirty
                  - textState
                  - kind
                  - fullName
               "Short report":
                  - id
                  - fullName
                  - textState
               "Special report":
                  - id
                  - guid
                  - dirty

What do you think about it ?

I probably could make a PR for this
Bob van de Vijver
@bobvandevijver
Mar 02 2016 19:04
If we want to support it, we should also think about different credentials
So that powerusers can get a full report, and other users a special report
Or something like that
Serg N. Kalachev
@ksn135
Mar 02 2016 19:05
Yep! of course!
Many things to discuss
May be we should draw a dropdown menu with all available reports for current user
Add don't forget different fa- icons
Bob van de Vijver
@bobvandevijver
Mar 02 2016 19:07
And a single button if there is only one option
Serg N. Kalachev
@ksn135
Mar 02 2016 19:08
you read my mind )
Bob van de Vijver
@bobvandevijver
Mar 02 2016 19:08
Haha :)
And here I was, wondering how many people would even use the Excel export :smile:
Serg N. Kalachev
@ksn135
Mar 02 2016 19:09
at least five! that's enough for me )
Bob van de Vijver
@bobvandevijver
Mar 02 2016 19:15
Do we also want different label for the fields in the different exports?
I do not have time to create anything like this in the near future, so if you think that you can create the functionality, you're welcome @ksn135 :)
Maybe first open an issue, so that we can discuss
Serg N. Kalachev
@ksn135
Mar 02 2016 19:42
Done. #262
Bob van de Vijver
@bobvandevijver
Mar 02 2016 20:30
Thanks