changeset 59:232eb1b4cd89

ticket/create: use new attributes arguments to set placeholders and required field on title
author Goffi <goffi@goffi.org>
date Thu, 09 Nov 2017 08:06:03 +0100
parents 4347910cc594
children f3c0447b8b4c
files default/ticket/create.html
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/default/ticket/create.html	Thu Nov 09 08:05:23 2017 +0100
+++ b/default/ticket/create.html	Thu Nov 09 08:06:03 2017 +0100
@@ -9,7 +9,12 @@
 </div>
 <div class="create single ticket box">
 {% call form.form() %}
-    {{ xmlui.generate(new_ticket_xmlui) }}
+    {{ xmlui.generate(new_ticket_xmlui,
+                      attributes = {'title': {'required': 'required',
+                                              'placeholder': _("Short description of your issue/request")},
+                                    'body': {'placeholder': _("Please describe your issue/request with as much details as possible")},
+                                    'labels': {'placeholder': _("You can enter one or several labels separated by commas")},
+                                    })}}
     {{ field.submit(_("Create ticket")) }}
 {% endcall %}
 </div>