Skip to content

Commit

Permalink
remove temp helper files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Apr 28, 2024
1 parent 1d671ab commit bccf1f3
Show file tree
Hide file tree
Showing 16 changed files with 272 additions and 1,461 deletions.
15 changes: 1 addition & 14 deletions app/src/Controller/ApiUsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,6 @@ public function generate(string $id) {
$this->set('vv_title', $title);

// Let the view render
if(in_array($this->name, [
'Cous', 'ApiUsers', 'CoSettings', 'Cos', 'Addresses', 'EmailAddresses',
'Groups', 'Servers', 'Types', 'Urls', 'Identifiers', 'HistoryRecords',
'TelephoneNumbers', 'Names', 'AdHocAttributes', 'PersonRoles', 'ExternalIdentities',
'ExternalIdentityRoles', 'ExternalIdentitySources', 'ExternalIdentitySourceRecords',
'IdentifierAssignments', 'Jobs', 'JobHistoryRecords', 'People', 'GroupNestings',
'GroupMembers'
])
) {
$this->render('/Standard/add-edit-view-new');
} else {
// Let the view render
$this->render('/Standard/add-edit-view');
}
$this->render('/Standard/add-edit-view');
}
}
48 changes: 5 additions & 43 deletions app/src/Controller/StandardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,7 @@ public function add() {
$this->set('vv_subtitle', $subtitle);

// Let the view render
if(in_array($this->name, [
'Cous', 'ApiUsers', 'CoSettings', 'Cos', 'Addresses', 'EmailAddresses',
'Groups', 'Servers', 'Types', 'Urls', 'Identifiers', 'HistoryRecords',
'TelephoneNumbers', 'Names', 'AdHocAttributes', 'PersonRoles', 'ExternalIdentities',
'ExternalIdentityRoles', 'ExternalIdentitySources', 'ExternalIdentitySourceRecords',
'IdentifierAssignments', 'Jobs', 'JobHistoryRecords', 'People', 'GroupNestings',
'GroupMembers'
])
) {
$this->render('/Standard/add-edit-view-new');
} else {
// Let the view render
$this->render('/Standard/add-edit-view');
}
$this->render('/Standard/add-edit-view');
}

/**
Expand Down Expand Up @@ -433,20 +420,8 @@ public function edit(string $id) {
$this->set('vv_supertitle', $supertitle);
$this->set('vv_subtitle', $subtitle);

if(in_array($this->name, [
'Cous', 'CoSettings', 'ApiUsers', 'Cos', 'Addresses', 'EmailAddresses',
'Groups', 'Servers', 'Types', 'Urls', 'Identifiers', 'HistoryRecords',
'TelephoneNumbers', 'Names', 'AdHocAttributes', 'PersonRoles', 'ExternalIdentities',
'ExternalIdentityRoles', 'ExternalIdentitySources', 'ExternalIdentitySourceRecords',
'IdentifierAssignments', 'Jobs', 'JobHistoryRecords', 'People', 'GroupNestings',
'GroupMembers'
])
) {
$this->render('/Standard/add-edit-view-new');
} else {
// Let the view render
$this->render('/Standard/add-edit-view');
}
// Let the view render
$this->render('/Standard/add-edit-view');
}

/**
Expand Down Expand Up @@ -891,21 +866,8 @@ public function view($id = null) {
$this->set('vv_title', $title);
$this->set('vv_supertitle', $supertitle);
$this->set('vv_subtitle', $subtitle);

// Let the view render
if(in_array($this->name, [
'Cous', 'ApiUsers', 'CoSettings', 'Cos', 'Addresses', 'EmailAddresses',
'Groups', 'Servers', 'Types', 'Urls', 'Identifiers', 'HistoryRecords',
'TelephoneNumbers', 'Names', 'AdHocAttributes', 'PersonRoles', 'ExternalIdentities',
'ExternalIdentityRoles', 'ExternalIdentitySources', 'ExternalIdentitySourceRecords',
'IdentifierAssignments', 'Jobs', 'JobHistoryRecords', 'People', 'GroupNestings',
'GroupMembers'
])
) {
$this->render('/Standard/add-edit-view-new');
} else {
// Let the view render
$this->render('/Standard/add-edit-view');
}
$this->render('/Standard/add-edit-view');
}
}
Loading

0 comments on commit bccf1f3

Please sign in to comment.