sonata-project/SonataAdminBundle — pull request #728 by Romain-Geissler (2012-05-02 15:22:59+00:00)
Title: Add batch blocks.

The batch action selection template currently cannot be easily overridden (you have to override the whole ``list_table`` block). This PR adds two blocks: ``batch_javascript`` and ``batch_actions``.

@rande: will you allow even finer granularity like ``batch_all_element``, ``batch_action_selection``, ``batch_submit`` ? I am in the following case: I want to generate bills for the selected customers through a batch action. Bills cover one month length, so when selecting the 'Generate Bill' action, a month selection is displayed to choose the needed month interval. Thus I'd need to override only a potential ``batch_action_selection`` from where I can call parent rendering and easily append content without needing to copy any html line from the original block template. This would ease maintenance of my private templates, no matter the official templates evolves.