From: TheSaminator Date: Sat, 12 Feb 2022 16:55:35 +0000 (-0500) Subject: Improve ship sell and rename pages X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=6f6eec4a60c71cf93f12f5f8cac8453bfc67aef1;p=starship-fights Improve ship sell and rename pages --- diff --git a/src/jvmMain/kotlin/starshipfights/info/views_user.kt b/src/jvmMain/kotlin/starshipfights/info/views_user.kt index 73c395d..ce6fe43 100644 --- a/src/jvmMain/kotlin/starshipfights/info/views_user.kt +++ b/src/jvmMain/kotlin/starshipfights/info/views_user.kt @@ -661,7 +661,7 @@ suspend fun ApplicationCall.renameShipPage(): HTML.() -> Unit { section { h1 { +"Renaming Ship" } p { - +"${admiral.fullName} is about to rename the ${ship.shipData.fullName}. Choose a name here:" + +"${admiral.fullName} is about to rename the ${ship.shipType.fullDisplayName} ${ship.shipData.fullName}. Choose a name here:" } form(method = FormMethod.post, action = "/admiral/${admiral.id}/rename/${ship.id}") { textInput(name = "name") { @@ -712,7 +712,7 @@ suspend fun ApplicationCall.sellShipConfirmPage(): HTML.() -> Unit { section { h1 { +"Are You Sure?" } p { - +"${admiral.fullName} is about to sell the ${ship.shipData.fullName} for ${ship.shipType.weightClass.sellPrice} Electro-Ducats." + +"${admiral.fullName} is about to sell the ${ship.shipType.fullDisplayName} ${ship.shipData.fullName} for ${ship.shipType.weightClass.sellPrice} Electro-Ducats." } form(method = FormMethod.get, action = "/admiral/${admiral.id}/manage") { submitInput {