petkopara / PetkoparaCrudGeneratorBundle

Symfony3 CRUD generator bundle with pagination, filter, bulk actions and Twitter bootstrap 3.3.6 features.
MIT License
70 stars 17 forks source link

Add the possibility of defining aliases for columns #36

Open mchojrin opened 7 years ago

mchojrin commented 7 years ago

I'm seeing a column name in my index.html that I'd like to change for something more readable (view wise).

I believe it could be achieved by changing the parameters in vendor/petkopara/crud-generator-bundle/Resources/views/macros/th_sortable.html.twig:

If colName whas actually (perhaps optionally) an array it should be easy to do.

RodolVelasco commented 7 years ago

@mchojrin did you find a way to change the name of a column?

mchojrin commented 7 years ago

@RodolVelasco not really. I have to say though I haven't tried that hard either... I've been busy with other things. I guess the way to go would be to try that on a sandbox project and, if it works, create a pull request to submit the improvement...