Author: gjm
Date: Mon Apr 23 13:03:52 2012
New Revision: 1329223
URL: http://svn.apache.org/viewvc?rev=1329223&view=rev
Log:
theme (quickticket): conditionally show the product field in the quick ticket
form - torwards #23
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
URL:
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html?rev=1329223&r1=1329222&r2=1329223&view=diff
==============================================================================
---
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
(original)
+++
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
Mon Apr 23 13:03:52 2012
@@ -96,10 +96,16 @@
<label for="field-summary">Summary</label>
<input class="input-medium" type="text" id="field-summary"
name="field_summary" placeholder="Ticket summary" />
- <label for="field-project">Project</label>
- <input class="input-medium disabled" id="field-project"
type="text"
- placeholder="Target project" disabled="" />
<div class="form-horizontal">
+ <py:if test="qct.fields.product">
+ <label class="control-label" for="field-product">Product</label>
+ <div class="controls">
+ <!-- input name="qct_product" class="input-mini" type="text"
+ placeholder="Product" / -->
+ ${field_select(qct.fields.product, None)}
+ <p class="help-block">Target product</p>
+ </div>
+ </py:if>
<label class="control-label" for="field-version">Version</label>
<div class="controls">
<!-- input name="qct_version" class="input-mini" type="text"