Merge remote-tracking branch 'MarcMichalsky/improve_profile_list'

[#76] Improve profile list view
This commit is contained in:
Jens Schuppe 2024-04-05 13:47:00 +02:00
commit 692c66a9a5
3 changed files with 16 additions and 3 deletions

View file

@ -26,6 +26,7 @@ class CRM_Twingle_Page_Profiles extends CRM_Core_Page {
$profiles[$profile_id]['id'] = $profile_id;
$profiles[$profile_id]['name'] = $profile->getName();
$profiles[$profile_id]['is_default'] = $profile->is_default();
$profiles[$profile_id]['selectors'] = $profile->getProjectIds();
foreach (CRM_Twingle_Profile::allowedAttributes() as $attribute) {
$profiles[$profile_id][$attribute] = $profile->getAttribute($attribute);
}
@ -33,6 +34,9 @@ class CRM_Twingle_Page_Profiles extends CRM_Core_Page {
$this->assign('profiles', $profiles);
$this->assign('profile_stats', CRM_Twingle_Profile::getProfileStats());
// Add custom css
Civi::resources()->addStyleFile(E::LONG_NAME, 'css/twingle.css');
parent::run();
}