Mercurial > libervia-templates
annotate default/ticket/create.html @ 62:e7b62f6980a1
ticket: added menus
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 11 Nov 2017 00:17:01 +0100 |
parents | f3c0447b8b4c |
children | 9834106678da |
rev | line source |
---|---|
62 | 1 {# creata a new ticket #} |
2 | |
3 {% set menus = [(url_tickets_list, _('Tickets list'), 'tickets_list')] %} | |
56 | 4 {% extends 'base/base.html' %} |
5 {% import 'input/form.html' as form with context %} | |
6 {% import 'input/field.html' as field with context %} | |
7 {% import 'input/xmlui.html' as xmlui with context %} | |
8 | |
9 {% block body %} | |
10 <div class='instructions'> | |
11 <p><span class="box">{% trans app_name=C.APP_NAME%}This page allows you to report an issue or ask/suggest a new feature for {{app_name}}{% endtrans %}</span></p> | |
12 </div> | |
13 <div class="create single ticket box"> | |
14 {% call form.form() %} | |
59
232eb1b4cd89
ticket/create: use new attributes arguments to set placeholders and required field on title
Goffi <goffi@goffi.org>
parents:
56
diff
changeset
|
15 {{ xmlui.generate(new_ticket_xmlui, |
232eb1b4cd89
ticket/create: use new attributes arguments to set placeholders and required field on title
Goffi <goffi@goffi.org>
parents:
56
diff
changeset
|
16 attributes = {'title': {'required': 'required', |
232eb1b4cd89
ticket/create: use new attributes arguments to set placeholders and required field on title
Goffi <goffi@goffi.org>
parents:
56
diff
changeset
|
17 'placeholder': _("Short description of your issue/request")}, |
60 | 18 'body': {'required': 'required', |
19 'placeholder': _("Please describe your issue/request with as much details as possible")}, | |
59
232eb1b4cd89
ticket/create: use new attributes arguments to set placeholders and required field on title
Goffi <goffi@goffi.org>
parents:
56
diff
changeset
|
20 'labels': {'placeholder': _("You can enter one or several labels separated by commas")}, |
232eb1b4cd89
ticket/create: use new attributes arguments to set placeholders and required field on title
Goffi <goffi@goffi.org>
parents:
56
diff
changeset
|
21 })}} |
56 | 22 {{ field.submit(_("Create ticket")) }} |
23 {% endcall %} | |
24 </div> | |
25 {% endblock body %} |