Skip to content

Commit

Permalink
Update fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouzierinverse committed Nov 13, 2024
1 parent 2f7b68c commit 5aa836d
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 0 deletions.
40 changes: 40 additions & 0 deletions html/pfappserver/lib/pfappserver/Form/Config/Pfcron/pfflow.pm
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,46 @@ has_field 'submit_batch' => (
help => \&batch_help_text },
);

has_field 'uuid' => (
type => 'Text',
default_method => \&default_field_method,
tags => { help => 'UUID ' },
);

has_field 'kakfa_user' => (
type => 'Text',
default_method => \&default_field_method,
tags => { help => 'Kafka Username' },
);

has_field 'kakfa_pass' => (
type => 'Text',
default_method => \&default_field_method,
tags => { help => 'Kafka Password' },
);

has_field 'filter_events' => (
type => 'Toggle',
checked_value => '1',
unchecked_value => '0',
default_method => \&default_field_method,
tags => {
after_element => \&help,
help => "Filter incoming events",
},
);

has_field 'heuristics' => (
type => 'Toggle',
checked_value => '1',
unchecked_value => '0',
default_method => \&default_field_method,
tags => {
after_element => \&help,
help => "Heuristics",
},
);

=head1 AUTHOR
Inverse inc. <[email protected]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,65 @@
enabled-value="enabled"
disabled-value="disabled"
/>

<form-group-kafka-brokers v-show="wants('kafka_brokers')"
namespace="kafka_brokers"
:column-label="$i18n.t('Kafka Brokers')"
:text="$i18n.t('Kafka Brokers.')"
/>

<form-group-kafka-pass v-show="wants('kafka_pass')"
namespace="kafka_pass"
:column-label="$i18n.t('Kafka Password')"
:text="$i18n.t('Kafka Password.')"
/>

<form-group-kafka-user v-show="wants('kafka_user')"
namespace="kafka_user"
:column-label="$i18n.t('Kafka User')"
:text="$i18n.t('Kafka User.')"
/>

<form-group-read-topic v-show="wants('read_topic')"
namespace="read_topic"
:column-label="$i18n.t('Read Topic')"
:text="$i18n.t('Read Topic.')"
/>

<form-group-send-topic v-show="wants('send_topic')"
namespace="send_topic"
:column-label="$i18n.t('Send Topic')"
:text="$i18n.t('Send Topic.')"
/>

<form-group-uuid v-show="wants('uuid')"
namespace="uuid"
:column-label="$i18n.t('UUID')"
:text="$i18n.t('UUID.')"
/>

<form-group-group-id v-show="wants('group_id')"
namespace="group_id"
:column-label="$i18n.t('Kafka Group ID')"
:text="$i18n.t('Kafka Group ID.')"
/>

<form-group-filter-events v-show="wants('filter_events')"
namespace="filter_events"
:column-label="$i18n.t('Filter Events')"
:text="$i18n.t('Filter Events.')"
enabled-value="1"
disabled-value="0"
/>

<form-group-heuristics v-show="wants('heuristics')"
namespace="heuristics"
:column-label="$i18n.t('Heuristics')"
:text="$i18n.t('Heuristics.')"
enabled-value="1"
disabled-value="0"
/>

</base-form>
</template>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,31 @@ export {
BaseFormGroupIntervalUnit as FormGroupDelay,
BaseFormGroupIntervalUnit as FormGroupDeleteWindow,
BaseFormGroupInput as FormGroupDescription,
BaseFormGroupSwitch as FormGroupFilterEvents,
BaseFormGroupInput as FormGroupGroupId,
BaseFormGroupSwitch as FormGroupHeuristics,
BaseFormGroupInputNumber as FormGroupHistoryBatch,
BaseFormGroupIntervalUnit as FormGroupHistoryTimeout,
BaseFormGroupIntervalUnit as FormGroupHistoryWindow,
BaseFormGroupInput as FormGroupIdentifier,
BaseFormGroupInput as FormGroupKafkaBrokers,
BaseFormGroupInput as FormGroupKafkaPass,
BaseFormGroupInput as FormGroupKafkaUser,
BaseFormGroupChosenOne as FormGroupSchedule,
BaseFormGroupSwitch as FormGroupProcessSwitchranges,
BaseFormGroupInput as FormGroupReadTopic,
BaseFormGroupSwitch as FormGroupRotate,
BaseFormGroupInputNumber as FormGroupRotateBatch,
BaseFormGroupIntervalUnit as FormGroupRotateTimeout,
BaseFormGroupIntervalUnit as FormGroupRotateWindow,
BaseFormGroupInput as FormGroupSendTopic,
BaseFormGroupInputNumber as FormGroupSessionBatch,
BaseFormGroupIntervalUnit as FormGroupSessionTimeout,
BaseFormGroupIntervalUnit as FormGroupSessionWindow,
BaseFormGroupSwitch as FormGroupStatus,
BaseFormGroupIntervalUnit as FormGroupTimeout,
BaseFormGroupIntervalUnit as FormGroupUnregWindow,
BaseFormGroupInput as FormGroupUuid,
BaseFormGroupSwitch as FormGroupVoip,
BaseFormGroupIntervalUnit as FormGroupWindow,

Expand Down

0 comments on commit 5aa836d

Please sign in to comment.