150 lines
4.8 KiB
Cheetah
150 lines
4.8 KiB
Cheetah
[%# The contents of this file are subject to the Mozilla Public
|
|
# License Version 1.1 (the "License"); you may not use this file
|
|
# except in compliance with the License. You may obtain a copy of
|
|
# the License at http://www.mozilla.org/MPL/
|
|
#
|
|
# Software distributed under the License is distributed on an "AS
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
# implied. See the License for the specific language governing
|
|
# rights and limitations under the License.
|
|
#
|
|
# The Original Code is the Bugzilla Bug Tracking System.
|
|
#
|
|
# Contributor(s): Jack Nerad <jnerad@bellsouth.net>
|
|
# Tiago R. Mello <tiago@async.com.br>
|
|
# Gabriel S. Oliveira <gabriel@async.com.br>
|
|
#%]
|
|
|
|
[%# INTERFACE:
|
|
# product: Bugzilla::Product object; The product
|
|
#
|
|
# classification: Bugzilla::Classifiation object; classification product is in.
|
|
#%]
|
|
|
|
[% IF Param('useclassification') %]
|
|
<tr>
|
|
<th align="right"><b>Classification:</b></th>
|
|
<td><b>[% classification.name FILTER html %]</b></td>
|
|
</tr>
|
|
[% END %]
|
|
|
|
<tr>
|
|
<th align="right">Product:</th>
|
|
<td><input size="64" maxlength="64" name="product"
|
|
value="[% product.name FILTER html %]">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right">Description:</th>
|
|
<td><textarea rows="4" cols="64" wrap="virtual" name="description">
|
|
[% product.description FILTER html %]</textarea>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th align="right">Open for [% terms.bug %] entry:</th>
|
|
<td><input type="checkbox" name="is_active" value="1"
|
|
[% ' checked="checked"' IF product.is_active %]>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right">
|
|
<label for="allows_unconfirmed">Enable unconfirmed
|
|
bug state(s) in this product:</label>
|
|
</th>
|
|
<td><input type="checkbox" id="allows_unconfirmed" name="allows_unconfirmed"
|
|
[% ' checked="checked"' IF product.allows_unconfirmed %]
|
|
[% IF Param('usevotes') %]
|
|
onchange="toggleClass('votes_to_confirm_container', 'bz_default_hidden')"
|
|
[% END %]>
|
|
[% IF Param('usevotes') %]
|
|
<span id="votes_to_confirm_container"
|
|
[% ' class="bz_default_hidden"' IF !product.allows_unconfirmed %]>
|
|
...and automatically confirm [% terms.bugs %] if they get
|
|
<input size="3" maxlength="5" name="votestoconfirm" id="votestoconfirm"
|
|
value="[% product.votes_to_confirm FILTER html %]">
|
|
votes. (Setting this to 0 disables auto-confirming [% terms.bugs %]
|
|
by vote.)
|
|
</span>
|
|
[% END %]
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th align="right">
|
|
<label for="wiki_url">Wiki URL:</label>
|
|
</th>
|
|
<td>
|
|
<input size="64" maxlength="64" name="wiki_url" value="[% product.wiki_url FILTER html %]" />
|
|
<br><em>Or use default setting when empty.</em>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th align="right">Prefer not to time-track this product:</th>
|
|
<td><input type="checkbox" name="notimetracking" value="1"
|
|
[% IF product.notimetracking %] checked="checked"[% END %] />
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th align="right">External product for this:</th>
|
|
<td>
|
|
<select name="extproduct">
|
|
<option value="">---</option>
|
|
[% FOREACH prod = Bugzilla.user.get_editable_products %]
|
|
<option value="[% prod.id %]" [% ' selected="selected"' IF prod.id == product.extproduct %]>[% prod.name | html %]</option>
|
|
[% END %]
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th align="right">Restrict CC in this product bugs to group:</th>
|
|
<td>
|
|
<select name="cc_group">
|
|
<option value="">---</option>
|
|
[% FOR group = groups %]
|
|
<option value="[% group FILTER html %]"[% ' selected="selected"' IF group==product.cc_group %]>[% group FILTER html %]</option>
|
|
[% END %]
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
[% IF Param('usevotes') %]
|
|
<tr>
|
|
<th align="right">Maximum votes per person:</th>
|
|
<td><input size="5" maxlength="5" name="votesperuser" id="votesperuser"
|
|
value="[% product.votesperuser FILTER html %]">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right">
|
|
Maximum votes a person can put on a single [% terms.bug %]:
|
|
</th>
|
|
<td><input size="5" maxlength="5" name="maxvotesperbug" id="maxvotesperbug"
|
|
value="[% product.maxvotesperbug FILTER html %]">
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
|
|
[% IF Param('usetargetmilestone') -%]
|
|
<tr>
|
|
<th align="right">Default milestone:</th>
|
|
<td>
|
|
[% IF product.milestones.size %]
|
|
<select name="defaultmilestone">
|
|
[% FOREACH m = product.milestones %]
|
|
<option value="[% m.name FILTER html %]"
|
|
[% " selected=\"selected\"" IF m.name == product.defaultmilestone %]>
|
|
[%- m.name FILTER html -%]</option>
|
|
[% END %]
|
|
</select>
|
|
[% ELSE %]
|
|
<input type="text" size="20" maxlength="20" name="defaultmilestone"
|
|
value="[% product.defaultmilestone FILTER html %]">
|
|
[% END %]
|
|
</td>
|
|
</tr>
|
|
[% END %]
|