making phone input as a fragment that accepts value and error initial value from overall state, initial error empty string some contitional classes and hidden error message wowy, endpoint that takes POST request, extracts value and resends the rendered fragment. cool
18 lines
478 B
Scala
18 lines
478 B
Scala
ThisBuild / scalaVersion := "3.2.2"
|
|
|
|
fork := true
|
|
|
|
ThisBuild / version := "0.0.1"
|
|
ThisBuild / organization := "industries.sunshine"
|
|
|
|
lazy val multiStepForm = (project in file("."))
|
|
.settings(
|
|
name := "multi-step-form",
|
|
libraryDependencies ++= Seq(
|
|
"com.lihaoyi" %% "cask" % "0.9.1",
|
|
"com.lihaoyi" %% "mainargs" % "0.5.0",
|
|
"org.thymeleaf" % "thymeleaf" % "3.1.1.RELEASE",
|
|
"com.googlecode.libphonenumber" % "libphonenumber" % "8.13.16"
|
|
)
|
|
)
|