@@ -8,6 +8,9 @@ import Loading from "../../../components/loading/Loading";
8
8
import { HApiTask , loadTasks } from "../../../apis/hering-api" ;
9
9
import i18n from "i18next" ;
10
10
import './calendar-form.less'
11
+ import { Tooltip } from 'react-tooltip'
12
+ import { faCircleInfo } from "@fortawesome/free-solid-svg-icons" ;
13
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" ;
11
14
12
15
const dateFormat = 'yyyy-MM-dd'
13
16
const initialStartDate = format ( Date . now ( ) , dateFormat )
@@ -186,17 +189,41 @@ function CalendarForm() {
186
189
</ div >
187
190
188
191
< div className = 'form-entry' >
189
- < label htmlFor = { "puffer" } >
190
- { t ( 'calendarPage.puffer' ) }
191
- </ label >
192
+ < div className = "label-with-icon" >
193
+ < label htmlFor = { "puffer" } >
194
+ { t ( 'calendarPage.puffer' ) }
195
+ </ label >
196
+ < div >
197
+ < FontAwesomeIcon icon = { faCircleInfo } data-tooltip-id = "buffer-tooltip" />
198
+ < Tooltip id = "buffer-tooltip" >
199
+ < div style = { { maxWidth : '200px' } } >
200
+ { t ( 'calendarPage.pufferDescription' ) }
201
+ </ div >
202
+ </ Tooltip >
203
+ </ div >
204
+ </ div >
205
+
192
206
< input type = "number" id = "puffer" name = "puffer" value = { puffer . toString ( ) }
193
207
onChange = { onBufferChanged } />
194
208
</ div >
195
209
196
210
< div className = 'form-entry' >
197
- < label htmlFor = "calendar-designation" >
198
- { t ( 'calendarPage.designation' ) }
199
- </ label >
211
+ < div className = "label-with-icon" >
212
+ < label htmlFor = "calendar-designation" >
213
+ { t ( 'calendarPage.designation' ) }
214
+ </ label >
215
+ < div >
216
+ < FontAwesomeIcon icon = { faCircleInfo } data-tooltip-id = "designation-tooltip" />
217
+ < Tooltip id = "designation-tooltip" >
218
+ < div style = { {
219
+ maxWidth : '200px'
220
+ } } >
221
+ { t ( 'calendarPage.designationDescription' ) }
222
+ </ div >
223
+ </ Tooltip >
224
+ </ div >
225
+ </ div >
226
+
200
227
< div className = "input" >
201
228
< input type = 'text' name = 'calendar-designation' id = "calendar-designation"
202
229
value = { designation }
0 commit comments