Skip to content

Commit

Permalink
fix EnrollmetFlow and EnrollmentFlowSteps fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis authored and arlen committed Sep 24, 2024
1 parent 0101b94 commit c8fc075
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 24 deletions.
19 changes: 11 additions & 8 deletions app/templates/EnrollmentFlowSteps/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@

// This view does not support read-only
if($vv_action == 'add' || $vv_action == 'edit') {
print $this->Field->control('description');

print $this->Field->control('status');

print $this->Field->control('plugin');

print $this->Field->control('ordr');

print $this->Field->control('actor_type');
foreach (['description',
'status',
'plugin',
'ordr',
'actor_type',
] as $field) {
print $this->element('form/listItem', [
'arguments' => [
'fieldName' => $field
]]);
}
}
43 changes: 27 additions & 16 deletions app/templates/EnrollmentFlows/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,35 @@
<?php
// This view does not support read-only
if($vv_action == 'add' || $vv_action == 'edit') {
print $this->Field->control('name');

print $this->Field->control('status');

// print $this->Field->control('sor_label');
foreach ( ['name',
'status',
// 'sor_label',
] as $field) {
print $this->element('form/listItem', [
'arguments' => [
'fieldName' => $field
]]);
}

print $this->Field->control(
fieldName: 'authz_type',
options: [
'onChange' => 'updateGadgets()'
print $this->element('form/listItem', [
'arguments' => [
'fieldName' => 'authz_type',
'fieldOptions' => [
'onChange' => 'updateGadgets()'
]
]
);

print $this->Field->control('authz_cou_id');
]);

print $this->Field->control('authz_group_id');

print $this->Field->control('collect_enrollee_email');

print $this->Field->control('redirect_on_finalize');
foreach (['authz_cou_id',
'authz_group_id',
'collect_enrollee_email',
'collect_enrollee_email',
'redirect_on_finalize',
] as $field) {
print $this->element('form/listItem', [
'arguments' => [
'fieldName' => $field
]]);
}
}

0 comments on commit c8fc075

Please sign in to comment.