Skip to content

Commit

Permalink
CoreAssigne, CoreServer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Apr 27, 2024
1 parent 6514233 commit 63d3719
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 27 deletions.
34 changes: 23 additions & 11 deletions app/plugins/CoreAssigner/templates/FormatAssigners/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,30 @@
<?php
// This view does currently not support read-only, and add is not used
if($vv_action == 'edit') {
print $this->Field->control('format');

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

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

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

print $this->Field->control('maximum');
foreach([
'permitted_characters',
'minimum',
'maximum',
] as $field) {
print $this->element('form/listItem', [
'arguments' => [
'fieldName' => $field,
]
]);
}
}
16 changes: 11 additions & 5 deletions app/plugins/CoreAssigner/templates/SqlAssigners/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@

// This view does currently not support read-only, and add is not used
if($vv_action == 'edit') {
print $this->Field->control('server_id');

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

print $this->Field->control('type_id');
foreach([
'server_id',
'source_table',
'type_id',
] as $field) {
print $this->element('form/listItem', [
'arguments' => [
'fieldName' => $field,
]
]);
}
}
25 changes: 14 additions & 11 deletions app/plugins/CoreServer/templates/SqlServers/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,18 @@

// This view does currently not support read-only, and add is not used
if($vv_action == 'edit') {
print $this->Field->control('type');

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

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

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

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

print $this->Field->control('password');
foreach([
'type',
'hostname',
'port',
'databas',
'username',
'password',
] as $field) {
print $this->element('form/listItem', [
'arguments' => [
'fieldName' => $field,
]
]);
}
}

0 comments on commit 63d3719

Please sign in to comment.