configure display of customer, project and activity in dropdown lists (#3151)

This commit is contained in:
Kevin Papst
2022-02-14 17:43:05 +01:00
committed by GitHub
parent 83a894823f
commit 7da7468965
17 changed files with 508 additions and 40 deletions

View File

@@ -34,6 +34,10 @@ class ActivitiesSubscriber extends AbstractActionsSubscriber
$event->addCreate($this->path('admin_activity_create'));
}
if ($this->isGranted('system_configuration')) {
$event->addAction('settings', ['url' => $this->path('system_configuration_section', ['section' => 'activity']), 'class' => 'modal-ajax-form']);
}
$event->addHelp($this->documentationLink('activity.html'));
}
}

View File

@@ -34,6 +34,10 @@ class CustomersSubscriber extends AbstractActionsSubscriber
$event->addCreate($this->path('admin_customer_create'));
}
if ($this->isGranted('system_configuration')) {
$event->addAction('settings', ['url' => $this->path('system_configuration_section', ['section' => 'customer']), 'class' => 'modal-ajax-form']);
}
$event->addHelp($this->documentationLink('customer.html'));
}
}

View File

@@ -35,6 +35,10 @@ class ProjectsSubscriber extends AbstractActionsSubscriber
$event->addCreate($this->path('admin_project_create'));
}
if ($this->isGranted('system_configuration')) {
$event->addAction('settings', ['url' => $this->path('system_configuration_section', ['section' => 'project']), 'class' => 'modal-ajax-form']);
}
$event->addHelp($this->documentationLink('project.html'));
}
}