-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add sortable admin list feature #12
base: master
Are you sure you want to change the base?
Conversation
2c47634
to
35fb8ba
Compare
8ff3bdd
to
593b646
Compare
{ | ||
switch ($name) { | ||
case 'list': | ||
return 'CanalPlusAwakenAdminBundle:CRUD:list_sortable.html.twig'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be AppBundle
and updated by user when he install it. It must be indicated in documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove reference to customer please
{ | ||
switch ($name) { | ||
case 'list': | ||
return 'CanalPlusAwakenAdminBundle:CRUD:list_sortable.html.twig'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove reference to customer please
* | ||
*/ | ||
|
||
const useLogger = window.location.pathname.match(/app_dev.php/g); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why aren't we using a logger library?
// Set position | ||
$connection = $this->doctrine->getConnection(); | ||
$stmt = $connection->executeQuery( | ||
sprintf('SELECT MAX(position) as position FROM %s;', $tableName), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to use a statement with parameters rather than a sprintf?
593b646
to
a3c733f
Compare
I am targeting this branch, because it is a new feature.
Changelog
To do
Subject
You can update an admin to get a sortable list if your entities must be ordered