Improve ship renaming
authorTheSaminator <TheSaminator@users.noreply.github.com>
Sat, 12 Feb 2022 16:31:10 +0000 (11:31 -0500)
committerTheSaminator <TheSaminator@users.noreply.github.com>
Sat, 12 Feb 2022 16:31:10 +0000 (11:31 -0500)
src/jvmMain/kotlin/starshipfights/info/views_user.kt

index 3b3cdb0f3559e68da1a125e342308c772cce0329..73c395d4573830631805cae2689dde719ae3b90d 100644 (file)
@@ -666,6 +666,7 @@ suspend fun ApplicationCall.renameShipPage(): HTML.() -> Unit {
                        form(method = FormMethod.post, action = "/admiral/${admiral.id}/rename/${ship.id}") {
                                textInput(name = "name") {
                                        id = "name"
+                                       value = ship.name
                                        
                                        autoComplete = false
                                        required = true