Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1978)

Unified Diff: MoinMoin/templates/ticket.html

Issue 6443117: Ticket (Closed)
Patch Set: Created 12 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « MoinMoin/storage/middleware/indexing.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: MoinMoin/templates/ticket.html
===================================================================
new file mode 100644
--- /dev/null
+++ b/MoinMoin/templates/ticket.html
@@ -0,0 +1,61 @@
+{% import "forms.html" as forms %}
+{% extends theme("layout.html") %}
+
+{% if is_new %}
+ {% set title = _("Creating new ticket: %(item_name)s", item_name=item_name) %}
+{% else %}
+ {% set title = _("Ticket: %(item_name)s", item_name=item_name) %}
+{% endif %}
+
+{% block content %}
+<h1>{{ title }}</h1>
+<div class="moin-form">
+ {{ gen.form.open(form, method='post', enctype='multipart/form-data') }}
+
+ {% if data_rendered %}
+ <div id="moin-content-data">
+ {{ data_rendered }}
+ </div>
+ {% endif %}
+
+ {% if is_new %}
+ <h2>Describe the ticket</h2>
+ {% else %}
+ <h2>Add comment</h2>
+ {% endif %}
+ <dl>
+ {{ forms.render(form['message']) }}
+ </dl>
+
+ <h2>Edit metadata</h2>
+ <dl>
+ {{ forms.render_errors(form) }}
+ {% for e in [
+ 'summary',
+ 'effort',
+ 'difficulty',
+ 'severity',
+ 'priority',
+ 'tags',
+ 'assigned_to',
+ 'superseded_by',
+ 'depends_on',
+ ] %}
+ {{ forms.render(form['meta'][e]) }}
+ {% endfor %}
+ </dl>
+ {{ forms.render(form['submit']) }}
+
+ <h2>Back references</h2>
+ <dl>
+ {% for e in [
+ 'supersedes',
+ 'required_by',
+ 'subscribers',
+ ] %}
+ {{ forms.render(form['backrefs'][e]) }}
+ {% endfor %}
+
+ {{ gen.form.close() }}
+</div>
+{% endblock %}
« no previous file with comments | « MoinMoin/storage/middleware/indexing.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b