Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bdejacobet
Copy link
Collaborator

@bdejacobet bdejacobet commented Mar 16, 2018

I am targeting this branch, because it is a new feature.

Changelog

  • Add new feature : sortable admin list

To do

  • Add dependency injection
  • Update the documentation
  • Add sortable admin list feature (js, css, traits, abstract class and service)

Subject

You can update an admin to get a sortable list if your entities must be ordered

dragdroplist

docs/20-Sortable-admin-list.md Outdated Show resolved Hide resolved
docs/20-Sortable-admin-list.md Outdated Show resolved Hide resolved
docs/20-Sortable-admin-list.md Outdated Show resolved Hide resolved
docs/20-Sortable-admin-list.md Outdated Show resolved Hide resolved
src/SortAction/SortAction.php Outdated Show resolved Hide resolved
src/SortAction/SortAction.php Outdated Show resolved Hide resolved
src/SortAction/SortAction.php Outdated Show resolved Hide resolved
docs/20-Sortable-admin-list.md Outdated Show resolved Hide resolved
docs/20-Sortable-admin-list.md Outdated Show resolved Hide resolved
docs/20-Sortable-admin-list.md Outdated Show resolved Hide resolved
docs/20-Sortable-admin-list.md Outdated Show resolved Hide resolved
docs/20-Sortable-admin-list.md Outdated Show resolved Hide resolved
docs/20-Sortable-admin-list.md Outdated Show resolved Hide resolved
docs/20-Sortable-admin-list.md Outdated Show resolved Hide resolved
docs/20-Sortable-admin-list.md Outdated Show resolved Hide resolved
docs/20-Sortable-admin-list.md Outdated Show resolved Hide resolved
docs/20-Sortable-admin-list.md Outdated Show resolved Hide resolved
@bdejacobet bdejacobet force-pushed the sortable-admin-list branch 6 times, most recently from 8ff3bdd to 593b646 Compare March 19, 2018 13:08
{
switch ($name) {
case 'list':
return 'CanalPlusAwakenAdminBundle:CRUD:list_sortable.html.twig';
Copy link
Collaborator Author

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.

Copy link

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';
Copy link

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

docs/20-Sortable-admin-list.md Outdated Show resolved Hide resolved
*
*/

const useLogger = window.location.pathname.match(/app_dev.php/g);
Copy link

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),
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants