--- a/trunk/trac/usr-share-pyshared-trac-ticket-templates-ticket.html
+++ b/trunk/trac/usr-share-pyshared-trac-ticket-templates-ticket.html
@@ -266,5 +266,7 @@
</tr>
</py:if>
- <tr py:for="row in group(fields, 2, lambda f: f.type != 'textarea')"
+
+ <!--! Do not show Remaining or Owner field when creating a ticket. -->
+ <tr py:for="row in group(filter(lambda f: ticket.exists or f.name != 'owner' and f.name != 'estimatedhours',fields), 2, lambda f: f.type != 'textarea')"
py:if="can_modify or can_create"
py:with="fullrow = len(row) == 1">
以及将“描述”字段放在第一位(但这是一个较长的故事)。
You can change the ticket template (/usr/share/pyshared/trac/ticket/templates/ticket.html on Debian-based systems) directly. I have made the following changes in our Trac installation.
--- a/trunk/trac/usr-share-pyshared-trac-ticket-templates-ticket.html
+++ b/trunk/trac/usr-share-pyshared-trac-ticket-templates-ticket.html
@@ -266,5 +266,7 @@
</tr>
</py:if>
- <tr py:for="row in group(fields, 2, lambda f: f.type != 'textarea')"
+
+ <!--! Do not show Remaining or Owner field when creating a ticket. -->
+ <tr py:for="row in group(filter(lambda f: ticket.exists or f.name != 'owner' and f.name != 'estimatedhours',fields), 2, lambda f: f.type != 'textarea')"
py:if="can_modify or can_create"
py:with="fullrow = len(row) == 1">
as well as putting the Description field first (but that is a longer story).
发布评论
评论(2)
您可以直接更改票证模板(在基于 Debian 的系统上为 /usr/share/pyshared/trac/ticket/templates/ticket.html)。我对 Trac 安装进行了以下更改。
以及将“描述”字段放在第一位(但这是一个较长的故事)。
You can change the ticket template (/usr/share/pyshared/trac/ticket/templates/ticket.html on Debian-based systems) directly. I have made the following changes in our Trac installation.
as well as putting the Description field first (but that is a longer story).
您需要简单票证插件。我不确定它是否适用于 0.12,因为它的标签只经过 0.11,但值得尝试。
You want the Simple Ticket Plugin. I'm not sure if it works with 0.12 or not since the tags for it only go through 0.11, but it's worth trying.