Add exact time constraint

This commit is contained in:
Lars Westermann 2019-06-12 12:34:37 +02:00
parent d8c770054d
commit ea3324abed
Signed by: lars.westermann
GPG key ID: 9D417FA5BB9D5E1D
4 changed files with 87 additions and 0 deletions

View file

@ -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>()) {