comparison MoinMoin/templates/ticket/modify.html @ 2709:b41fae684e47

Moved comments to right and meta-data to left in modify/submit view of tickets and also removed the usage of name in ticket templates, used summary instead of name as heading in ticket modify template
author Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
date Thu, 07 Aug 2014 21:01:45 +0530
parents 44a288038e11
children 61c91995f121
comparison
equal deleted inserted replaced
2699:3bc9fd6d054e 2709:b41fae684e47
1 {% extends "ticket/base.html" %} 1 {% extends "ticket/base.html" %}
2 2
3 {% block title_text %} 3 {% block title_text %}
4 {{ _("Ticket: '%(item_name)s'", item_name=item_name) }} 4 {{ _("Ticket: %(summary)s", summary=item.meta['summary']) }}
5 {% endblock %} 5 {% endblock %}
6 6
7 {% block form_controls %} 7 {% block form_controls %}
8 <h2>{{ _("Add comment") }}</h2> 8 <h2>{{ _("Add comment") }}</h2>
9 <dl> 9 <div class="form-group">
10 {{ forms.render(form['message']) }} 10 {{ gen.label(form['message']) }}
11 </dl> 11 {{ gen.textarea(form['message'], class='form-control') }}
12 </div>
12 13
13 <h2>{{ _("Edit metadata") }}</h2> 14 {% endblock %}
14 <dl>
15 {{ forms.render_errors(form) }}
16 {{ render_meta() }}
17 </dl>
18 {{ _("Suggested Tags: ") }}
19 {% for suggested_tag in suggested_tags %}
20 {{ suggested_tag }}
21 {% endfor %}
22 <dl>
23 {{ render_selectlists() }}
24 </dl>
25 15
26 {{ forms.render(form['submit']) }} 16 {% block ticket_metadata %}
17 <div class="moin-ticket-metadata">
18 <h2>{{ _("Edit metadata") }}</h2>
19 <dl>
20 {{ forms.render_errors(form) }}
21 {{ render_meta() }}
22 </dl>
23 {{ _("Suggested Tags: ") }}
24 {% for suggested_tag in suggested_tags %}
25 {{ suggested_tag }}
26 {% endfor %}
27 <dl>
28 {{ render_selectlists() }}
29 </dl>
27 30
28 <h2>{{ _("Back references") }}</h2> 31 {{ forms.render(form['submit']) }}
29 <dl> 32 <h2>{{ _("Back references") }}</h2>
30 {{ render_backref() }} 33 <dl>
31 </dl> 34 {{ render_backref() }}
35 </dl>
36 </div>
32 {% endblock %} 37 {% endblock %}