Add exact time constraint
This commit is contained in:
parent
d8c770054d
commit
ea3324abed
4 changed files with 87 additions and 0 deletions
|
@ -112,6 +112,27 @@ fun initWorkGroupConstraints() {
|
|||
}.html)
|
||||
}
|
||||
}
|
||||
addList.textView("Wenn an Tag x, dann Zeitpunkt t") {
|
||||
onClick {
|
||||
constraints.appendChild(View.wrap(createHtmlView<HTMLDivElement>()) {
|
||||
classList += "input-group"
|
||||
html.appendChild(TextView("Zeitpunkt").apply {
|
||||
classList += "form-btn"
|
||||
onClick { this@wrap.html.remove() }
|
||||
}.html)
|
||||
html.appendChild(InputView(InputType.TEXT).apply {
|
||||
classList += "form-control"
|
||||
html.name = "constraint-exact-time-day-${index}"
|
||||
placeholder = "Tag (optional)"
|
||||
}.html)
|
||||
html.appendChild(InputView(InputType.TEXT).apply {
|
||||
classList += "form-control"
|
||||
html.name = "constraint-exact-time-${index++}"
|
||||
placeholder = "HH:MM | Min"
|
||||
}.html)
|
||||
}.html)
|
||||
}
|
||||
}
|
||||
addList.textView("Nicht zur selben Zeit wie AK x") {
|
||||
onClick {
|
||||
constraints.appendChild(View.wrap(createHtmlView<HTMLDivElement>()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue