~jan0sch/smederee

Showing details for patch 89f674adfd5560574f60f4a02db2a7ebf5f46233.
2023-05-17 (Wed), 1:09 PM - Jens Grassel - 89f674adfd5560574f60f4a02db2a7ebf5f46233

Tickets: Fix textarea form value in create ticket form.

- set content directly and not via `value` attribute
- increase number of rows
Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • modules/hub/src/main/twirl/de/smederee/tickets/views/createTicket.scala.html with 1 added and 1 removed lines
diff -rN -u old-smederee/modules/hub/src/main/twirl/de/smederee/tickets/views/createTicket.scala.html new-smederee/modules/hub/src/main/twirl/de/smederee/tickets/views/createTicket.scala.html
--- old-smederee/modules/hub/src/main/twirl/de/smederee/tickets/views/createTicket.scala.html	2025-01-16 13:05:08.158023239 +0000
+++ new-smederee/modules/hub/src/main/twirl/de/smederee/tickets/views/createTicket.scala.html	2025-01-16 13:05:08.158023239 +0000
@@ -77,7 +77,7 @@
                   </div>
                   <div class="pure-control-group pure-u-23-24">
                     <label for="@{fieldContent}">@Messages("form.ticket.content")</label>
-                    <textarea class="pure-input-1" id="@{fieldContent}" name="@{fieldContent}" placeholder="@Messages("form.ticket.content.placeholder")" rows="8" value="@{formData(fieldContent).headOption}"></textarea>
+                    <textarea class="pure-input-1" id="@{fieldContent}" name="@{fieldContent}" placeholder="@Messages("form.ticket.content.placeholder")" rows="18">@{formData(fieldContent).headOption}</textarea>
                     <span class="pure-form-message" id="@{fieldContent}.help">@Messages("form.ticket.content.help")</span>
                     @renderFormErrors(fieldContent, formErrors)
                   </div>