bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r1455324 - /incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_ticket.html
Date Mon, 11 Mar 2013 20:45:27 GMT
Author: matevz
Date: Mon Mar 11 20:45:26 2013
New Revision: 1455324

URL: http://svn.apache.org/r1455324
Log:
#429 - Multiproduct UI: Ticket page (create ticket fix - product-scoped tickets)

Modified:
    incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_ticket.html

Modified: incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_ticket.html
URL: http://svn.apache.org/viewvc/incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_ticket.html?rev=1455324&r1=1455323&r2=1455324&view=diff
==============================================================================
--- incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_ticket.html
(original)
+++ incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_ticket.html
Mon Mar 11 20:45:26 2013
@@ -434,7 +434,7 @@
               <div id="modify" class="well">
                 <!--! Properties -->
                 <fieldset id="properties" py:if="can_modify or can_edit or can_create"
-                          py:with="fields = [f for f in fields if not f.skip]">
+                          py:with="fields = [f for f in fields if not f.skip and f.name !=
'product']">
                   <legend py:choose="">
                     <py:when test="ticket.exists">Change Properties</py:when>
                     <py:otherwise>Properties</py:otherwise>
@@ -443,6 +443,16 @@
                   <table id="modifyproperties">
                     <tr py:if="can_modify or can_create">
                       <td colspan="2">
+                        <label for="field-product-name">Product:</label>
+                        <input type="text" disabled="disabled" class="${'span2' if ticket.exists
else 'span7'}"
+                          id="field-product-name" name="field_product_name"
+                          value="$req.perm.env.product.name ($req.perm.env.product.prefix)"
/>
+                        <input type="hidden" id="field-product" name="field_product" value="$req.perm.env.product.prefix"
/>
+                      </td>
+                    </tr>
+
+                    <tr py:if="can_modify or can_create">
+                      <td colspan="2">
                         <label for="field-summary">Summary:</label>
                         <input class="${'span4' if ticket.exists else 'span7'}" type="text"
id="field-summary" name="field_summary" value="$ticket.summary" />
                       </td>



Mime
View raw message