display selectors as list in profiles view
This commit is contained in:
parent
518f8809c7
commit
63d713f9f0
2 changed files with 14 additions and 5 deletions
|
@ -20,8 +20,11 @@ class CRM_Twingle_Page_Profiles extends CRM_Core_Page {
|
|||
public function run() {
|
||||
CRM_Utils_System::setTitle(E::ts("Twingle API Profiles"));
|
||||
$profiles = [];
|
||||
foreach (CRM_Twingle_Profile::getProfiles() as $profile_name => $profile) {
|
||||
$profiles[$profile_name]['name'] = $profile_name;
|
||||
foreach (CRM_Twingle_Profile::getProfiles() as $profile_id => $profile) {
|
||||
$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_name][$attribute] = $profile->getAttribute($attribute);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue