This is an automated email from the ASF dual-hosted git repository.
zhaoqingran pushed a commit to branch bulletin
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
The following commit(s) were added to refs/heads/bulletin by this push:
new 45d7c064c [feat(bulletin)] add dropdown selection to bulletin component
45d7c064c is described below
commit 45d7c064c2ca3e60ef0217d1d12e80970b89214b
Author: zqr10159 <[email protected]>
AuthorDate: Tue Jul 9 17:33:27 2024 +0800
[feat(bulletin)] add dropdown selection to bulletin component
Introduce a dropdown menu in the bulletin component for improved user
interaction. The dropdown offers multiple options for users to select
and submit as part of the bulletin form.
---
web-app/src/app/routes/bulletin/bulletin.component.html | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/web-app/src/app/routes/bulletin/bulletin.component.html
b/web-app/src/app/routes/bulletin/bulletin.component.html
index 458a4cefe..7b7d19fe1 100644
--- a/web-app/src/app/routes/bulletin/bulletin.component.html
+++ b/web-app/src/app/routes/bulletin/bulletin.component.html
@@ -136,6 +136,21 @@
>
<div *nzModalContent class="-inner-content">
<form nz-form #defineForm="ngForm">
+ <nz-form-item>
+ <nz-form-label [nzSpan]="7" nzFor="dropdown" nzRequired="true">{{
'dropdown.label' | i18n }}</nz-form-label>
+ <nz-form-control [nzSpan]="12" [nzErrorTip]="'validation.required' |
i18n">
+ <nz-select
+ required
+ name="dropdown"
+ id="dropdown"
+ [nzPlaceHolder]="'dropdown.place-holder' | i18n"
+ >
+ <nz-option nzValue="option1" nzLabel="选项一"></nz-option>
+ <nz-option nzValue="option2" nzLabel="选项二"></nz-option>
+ <nz-option nzValue="option3" nzLabel="选项三"></nz-option>
+ </nz-select>
+ </nz-form-control>
+ </nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="7" nzFor="target" nzRequired="true">{{
'alert.setting.target' | i18n }}</nz-form-label>
<nz-form-control [nzSpan]="12" [nzErrorTip]="'validation.required' |
i18n">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]