2008-12-15 15:53:33 +03:00
[% # 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.
#
# The Initial Developer of the Original Code is Netscape Communications
# Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): Gervase Markham <gerv@gerv.net>
# Ville Skyttä <ville.skytta@iki.fi>
# Shane H. W. Travis <travis@sedsystems.ca>
# Marc Schumann <wurblzap@gmail.com>
# Akamai Technologies <bugzilla-dev@akamai.com>
# Max Kanat-Alexander <mkanat@bugzilla.org>
# Frédéric Buclin <LpSolit@gmail.com>
#%]
2014-04-01 17:06:23 +04:00
[% title = BLOCK %]Enter [% terms.Bug %]: [% product.name | html %][% END %]
2008-12-15 15:53:33 +03:00
[% PROCESS global/header.html.tmpl
title = title
2011-09-16 15:59:48 +04:00
quicksearch_tabindex = 30
2011-07-20 16:48:26 +04:00
style_urls = [ 'skins/standard/create_attachment.css', 'skins/standard/calendar.css' ]
javascript_urls = [
2014-04-01 15:48:45 +04:00
"js/attachment.js", "js/bug.js", "js/enter_bug.js", "js/field.js", "js/calendar.js",
2014-07-08 15:50:12 +04:00
"js/TUI.js", "js/bug-visibility.js", "fieldvaluecontrol.cgi?user= ${ Bugzilla . user . id } "
2011-07-20 16:48:26 +04:00
]
2008-12-15 15:53:33 +03:00
%]
<script type="text/javascript">
<!--
2014-03-31 18:43:20 +04:00
var product_id = [% product.id %];
2014-04-01 16:17:08 +04:00
var product_flag_type_ids = [% json(product_flag_type_ids) %];
2014-04-01 15:48:45 +04:00
var current_user_login = "[% user.login | js %]";
var initial_cc = "[% cc | js %]";
2014-05-22 17:55:57 +04:00
var overridedefaultversion = [% default.version ? 1 : 0 %];
2014-04-01 15:48:45 +04:00
var component_data = [% json(components_json) %];
2012-05-31 15:39:07 +04:00
var wantsReminder = [% Bugzilla.user.wants_worktime_reminder('new bug') ? 'true' : 'false' %];
var noTimeTracking = [% product.notimetracking ? 'true' : 'false' %];
2014-05-22 01:05:03 +04:00
[% # FIXME Move close_status_array into "js resource data" %]
var close_status_array = [
[% SET i = 0 %]
[% FOREACH status = Bugzilla.get_field('bug_status').legal_values %]
[% NEXT IF status.is_open %]
[% ',' IF i; SET i = 1 %]'[% status.name FILTER js %]'
[% END %]
];
2008-12-15 15:53:33 +03:00
-->
</script>
2009-07-29 15:21:49 +04:00
[% SET select_fields = {} %]
[% FOREACH field = Bugzilla.get_fields(
{ type => constants.FIELD_TYPE_SINGLE_SELECT, custom => 0 })
%]
[% select_fields. ${ field . name } = field %]
[% END %]
2008-12-15 15:53:33 +03:00
<form name="Create" id="Create" method="post" action="post_bug.cgi"
2011-09-30 19:14:36 +04:00
enctype="multipart/form-data" onkeypress="return ctrlEnter(event||window.event,this)"
2012-05-31 15:39:07 +04:00
onsubmit="return validateEntryForm(this)">
2014-04-01 17:06:23 +04:00
<input type="hidden" name="product" value="[% product.name | html %]" id="product" />
<input type="hidden" name="token" value="[% token | html %]" />
<input type="hidden" name="cloned_bug_id" value="[% cloned_bug_id | html %]" />
<input type="hidden" name="cloned_comment" value="[% cloned_comment | html %]" />
2008-12-15 15:53:33 +03:00
2009-08-11 20:58:45 +04:00
<p>
[% # Migration note: The following file corresponds to the old Param
# 'entryheaderhtml'
#%]
[% INCLUDE 'bug/create/user-message.html.tmpl' %]
</p>
2010-05-15 00:02:34 +04:00
<p>(<span class="required_star">*</span> = <span class="required_explanation">Required Field</span>)</p>
2008-12-15 15:53:33 +03:00
<table cellspacing="4" cellpadding="2" border="0">
<tbody>
2009-08-11 20:58:45 +04:00
<tr><td colspan="4"><hr /></td></tr>
2008-12-15 15:53:33 +03:00
<tr>
<th>Product:</th>
2014-04-01 17:06:23 +04:00
<td width="10%">[% product.name | html %]</td>
2008-12-15 15:53:33 +03:00
<th>Reporter:</th>
2014-04-01 17:06:23 +04:00
<td width="100%">[% user.login | html %]</td>
2008-12-15 15:53:33 +03:00
</tr>
<tr>
2010-05-15 00:02:34 +04:00
<th class="required">
2014-04-01 17:06:23 +04:00
<a href="describecomponents.cgi?product=[% product.name | url_quote %]">Component</a>:
2008-12-15 15:53:33 +03:00
</th>
<td>
2014-04-01 15:48:45 +04:00
<select id="component" name="component" size="7" aria-required="true" class="required">
2010-09-10 19:13:28 +04:00
[%- FOREACH c = product.active_components %]
2014-04-27 09:26:37 +04:00
<option id="v[% c.id %]_component" value="[% c.name | html %]"
2014-07-08 15:44:05 +04:00
[% " selected=\"selected\"" IF c.name == default.component %]>
2014-04-01 17:06:23 +04:00
[% c.name | html -%]
2008-12-15 15:53:33 +03:00
</option>
[%- END %]
</select>
</td>
<td colspan="2">
[% # Enclose the fieldset in a nested table so that its width changes based
# on the length on the component description. %]
<table>
<tr>
<td>
<fieldset>
<legend>Component Description</legend>
<div id="comp_desc" class="comment">Select a component to read its description.</div>
</fieldset>
</td>
</tr>
</table>
</td>
</tr>
<tr>
2014-03-31 18:43:20 +04:00
[% INCLUDE bug/field.html.tmpl
bug = default, field = select_fields.version, editable = 1,
value_name = default.version %]
2008-12-15 15:53:33 +03:00
2009-07-29 15:21:49 +04:00
[% INCLUDE bug/field.html.tmpl
2009-08-11 20:58:45 +04:00
bug = default, field = select_fields.bug_severity, editable = 1,
2014-03-26 19:10:45 +04:00
value_name = default.bug_severity %]
2008-12-15 15:53:33 +03:00
</tr>
2014-08-01 21:13:45 +04:00
[% IF Bugzilla.get_field('rep_platform').enabled %]
2009-10-22 15:42:07 +04:00
<tr>
2009-07-29 15:21:49 +04:00
[% INCLUDE bug/field.html.tmpl
bug = default, field = select_fields.rep_platform, editable = 1,
2014-03-26 19:10:45 +04:00
value_name = default.rep_platform %]
2008-12-15 15:53:33 +03:00
</tr>
2009-10-22 15:42:07 +04:00
[% END %]
2008-12-15 15:53:33 +03:00
2014-08-01 21:13:45 +04:00
[% IF Bugzilla.get_field('op_sys').enabled %]
2009-10-22 15:42:07 +04:00
<tr>
2010-03-12 22:18:39 +03:00
[% INCLUDE bug/field.html.tmpl
2014-03-24 18:44:31 +04:00
bug = default, field = select_fields.op_sys, editable = 1,
2014-03-26 19:10:45 +04:00
value_name = default.op_sys %]
2008-12-15 15:53:33 +03:00
</tr>
2009-10-22 15:42:07 +04:00
[% END %]
2008-12-15 15:53:33 +03:00
</tbody>
<tbody class="expert_fields">
<tr>
2014-08-01 21:13:45 +04:00
[% IF Bugzilla.get_field('target_milestone').enabled && Param('letsubmitterchoosemilestone') %]
2014-03-24 18:44:31 +04:00
[% INCLUDE bug/field.html.tmpl
bug = default, field = select_fields.target_milestone, editable = 1,
2014-03-26 19:10:45 +04:00
value_name = default.target_milestone %]
2008-12-15 15:53:33 +03:00
[% ELSE %]
<td colspan="2"> </td>
[% END %]
[% IF Param('letsubmitterchoosepriority') %]
2009-07-29 15:21:49 +04:00
[% INCLUDE bug/field.html.tmpl
2010-03-12 22:18:39 +03:00
bug = default, field = select_fields.priority, editable = 1,
2014-03-26 19:10:45 +04:00
value_name = default.priority %]
2008-12-15 15:53:33 +03:00
[% ELSE %]
2009-07-29 15:21:49 +04:00
<td colspan="2"> </td>
2008-12-15 15:53:33 +03:00
[% END %]
</tr>
</tbody>
2014-08-01 21:13:45 +04:00
[% guess_platform = Bugzilla.get_field('rep_platform').enabled && !Bugzilla.get_field('rep_platform').default_value %]
[% guess_os = Bugzilla.get_field('op_sys').enabled && !Bugzilla.get_field('op_sys').default_value %]
2014-07-25 15:07:24 +04:00
[% IF guess_platform || guess_os %]
2008-12-15 15:53:33 +03:00
<tbody>
<tr>
<th> </th>
<td colspan="3" class="comment">
We've made a guess at your
2014-07-25 15:07:24 +04:00
[% IF !guess_os %]
2008-12-15 15:53:33 +03:00
platform. Please check it
2014-07-25 15:07:24 +04:00
[% ELSIF !guess_platform %]
2014-03-31 18:43:20 +04:00
operating system. Please check it
2008-12-15 15:53:33 +03:00
[% ELSE %]
operating system and platform. Please check them
[% END %]
and make any corrections if necessary.
</td>
</tr>
</tbody>
[% END %]
<tbody class="expert_fields">
<tr>
2014-03-31 19:05:48 +04:00
[% INCLUDE bug/field.html.tmpl
bug = default
field = select_fields.bug_status
editable = bug_status.size > 1
value_name = default.bug_status
override_legal_values = bug_status
custom_label = "Initial State"
%]
2014-05-13 19:07:56 +04:00
[% IF bug_status.size == 1 %]
<input type="hidden" name="bug_status" value="[% bug_status.0.name | html %]" />
[% END %]
2009-08-11 20:58:45 +04:00
</tr>
2014-05-22 01:05:03 +04:00
<tr id="resolution_settings" class="bz_default_hidden">
2014-03-24 18:44:31 +04:00
[% INCLUDE bug/field.html.tmpl
2014-03-31 19:05:48 +04:00
bug = default
field = select_fields.resolution
editable = 1
%]
2009-09-02 17:39:24 +04:00
</tr>
2009-08-11 20:58:45 +04:00
<tr><td colspan="4"><hr /></td></tr>
<tr>
<th><a href="page.cgi?id=fields.html #assigned _to " >Assign To</a>:</th>
<td>
[% INCLUDE global/userselect.html.tmpl
2014-04-01 17:06:23 +04:00
name => "assigned_to"
value => default.assigned_to
disabled => assigned_to_disabled
size => 30
emptyok => 1
%]
2009-08-11 20:58:45 +04:00
<noscript>(Leave blank to assign to component's default assignee)</noscript>
</td>
2008-12-15 15:53:33 +03:00
[% # Calculate the number of rows we can use for flags %]
2014-08-01 21:13:45 +04:00
[% num_rows = 2 + (Bugzilla.get_field('qa_contact').enabled ? 1 : 0) %]
2008-12-15 15:53:33 +03:00
2014-04-01 17:06:23 +04:00
<td colspan="2" rowspan="[% num_rows | html %]">
2008-12-15 15:53:33 +03:00
[% IF product.flag_types.bug.size > 0 %]
[% display_flag_headers = 0 %]
[% any_flags_requesteeble = 0 %]
[% FOREACH flag_type = product.flag_types.bug %]
[% NEXT UNLESS flag_type.is_active %]
[% display_flag_headers = 1 %]
[% SET any_flags_requesteeble = 1 IF flag_type.is_requestable && flag_type.is_requesteeble %]
[% END %]
[% IF display_flag_headers %]
2014-04-01 17:06:23 +04:00
[% PROCESS "flag/list.html.tmpl"
flag_types = product_flag_types
any_flags_requesteeble = any_flags_requesteeble
flag_table_id = "bug_flags"
2008-12-15 15:53:33 +03:00
%]
[% END %]
[% END %]
</td>
</tr>
2014-03-31 20:00:26 +04:00
2014-08-01 21:13:45 +04:00
[% IF Bugzilla.get_field('qa_contact').enabled %]
2008-12-15 15:53:33 +03:00
<tr>
<th>QA Contact:</th>
2009-08-11 20:58:45 +04:00
<td>
2014-04-01 17:06:23 +04:00
[% INCLUDE global/userselect.html.tmpl
name => "qa_contact"
value => default.qa_contact
disabled => qa_contact_disabled
size => 30
emptyok => 1
%]
2008-12-15 15:53:33 +03:00
<noscript>(Leave blank to assign to default qa contact)</noscript>
</td>
</tr>
[% END %]
<tr>
<th>CC:</th>
2009-08-11 20:58:45 +04:00
<td>
2008-12-15 15:53:33 +03:00
[% INCLUDE global/userselect.html.tmpl
2014-04-01 17:06:23 +04:00
name => "cc"
value => cc
disabled => cc_disabled
size => 30
multiple => 5
%]
2008-12-15 15:53:33 +03:00
</td>
</tr>
2009-08-11 20:58:45 +04:00
<tr><td colspan="4"><hr /></td></tr>
2008-12-15 15:53:33 +03:00
<tr>
2010-05-15 00:02:34 +04:00
[% IF user.is_timetracker %]
2008-12-15 15:53:33 +03:00
<th>Estimated Hours:</th>
2009-08-25 20:53:16 +04:00
<td>
2014-03-31 20:00:26 +04:00
<input name="estimated_time" size="6" maxlength="6" value="[% default.estimated_time | html %]">
2009-08-25 20:53:16 +04:00
<b>Hours Worked:</b>
2014-03-31 20:00:26 +04:00
<input name="work_time" id="work_time" value="[% default.work_time | html %]" size="6" maxlength="6" onchange="checkWorktime(this)" onkeyup="checkWorktime(this)"" />
2009-08-25 20:53:16 +04:00
</td>
2009-08-11 20:58:45 +04:00
[% END %]
<th>Depends on:</th>
2014-04-01 17:06:23 +04:00
<td><input name="dependson" accesskey="d" value="[% default.dependson | html %]"></td>
2008-12-15 15:53:33 +03:00
</tr>
<tr>
2009-08-11 20:58:45 +04:00
[% IF user.in_group(Param('timetrackinggroup')) %]
2008-12-15 15:53:33 +03:00
<th>Deadline:</th>
2009-08-11 20:58:45 +04:00
<td>
2014-04-01 17:06:23 +04:00
<input name="deadline" id="deadline" size="10" maxlength="10" value="[% default.deadline | html %]">
2008-12-15 15:53:33 +03:00
<small>(YYYY-MM-DD)</small>
2013-06-07 15:32:22 +04:00
<script type="text/javascript">
2014-04-01 17:06:23 +04:00
Calendar.set('deadline');
2013-06-07 15:32:22 +04:00
</script>
2008-12-15 15:53:33 +03:00
</td>
[% END %]
2009-08-11 20:58:45 +04:00
<th>Blocks:</th>
2014-04-01 17:06:23 +04:00
<td><input name="blocked" accesskey="b" value="[% default.blocked | html %]"></td>
2008-12-15 15:53:33 +03:00
</tr>
<tr>
<th>URL:</th>
2014-04-01 17:06:23 +04:00
<td colspan="2"><input name="bug_file_loc" size="40" value="[% default.bug_file_loc | html %]"></td>
2008-12-15 15:53:33 +03:00
</tr>
</tbody>
2009-07-29 15:21:49 +04:00
<tbody class="expert_fields">
2008-12-15 15:53:33 +03:00
[% FOREACH field = Bugzilla.active_custom_fields %]
2014-05-18 03:35:50 +04:00
<tr id="field_row_[% field.name | html %]">
2014-03-31 20:00:26 +04:00
[% # Do not care about missing default value IDs or objects - JS will re-fill dependent fields %]
2011-07-20 16:48:26 +04:00
[% INCLUDE bug/field.html.tmpl
2014-03-31 20:00:26 +04:00
bug = default
field = field
2014-05-19 13:33:45 +04:00
value_name = field.is_select ? default. ${ field . name } : ''
value = field.is_select ? '' : default. ${ field . name }
2014-03-31 20:00:26 +04:00
editable = 1
value_span = 3
%]
2008-12-15 15:53:33 +03:00
</tr>
[% END %]
2009-07-29 15:21:49 +04:00
</tbody>
<tbody>
2009-08-11 20:58:45 +04:00
<tr><td colspan="4"><hr /></td></tr>
2008-12-15 15:53:33 +03:00
<tr>
2010-05-15 00:02:34 +04:00
<th class="required">Summary:</th>
2008-12-15 15:53:33 +03:00
<td colspan="3">
2014-04-01 17:06:23 +04:00
<input name="short_desc" id="short_desc" size="70" value="[% default.short_desc | html %]"
2010-05-15 00:02:34 +04:00
maxlength="255" spellcheck="true" aria-required="true"
2013-04-03 16:30:20 +04:00
class="required" />
2008-12-15 15:53:33 +03:00
</td>
</tr>
2009-08-11 20:58:45 +04:00
</tbody>
2008-12-15 15:53:33 +03:00
2009-08-11 20:58:45 +04:00
<tbody>
2008-12-15 15:53:33 +03:00
<tr>
2014-05-23 00:37:19 +04:00
<th class="required">Description:</th>
2009-08-11 20:58:45 +04:00
<td colspan="3" style="padding-bottom: 0">
2008-12-15 15:53:33 +03:00
[% defaultcontent = BLOCK %]
[% IF cloned_bug_id %]
2008-12-23 22:21:11 +03:00
+++ This [% terms.bug %] was initially created as a clone of [% terms.Bug %] #[% cloned_bug_id %][% IF cloned_comment %] comment [% cloned_comment %][% END %] +++
2008-12-15 15:53:33 +03:00
[% END %]
[%- # We are within a BLOCK. The comment will be correctly HTML-escaped
# by global/textarea.html.tmpl. So we must not escape the comment here. %]
2014-04-01 17:06:23 +04:00
[% comment | none %]
2008-12-15 15:53:33 +03:00
[%- END %]
[% INCLUDE global/textarea.html.tmpl
name = 'comment'
id = 'comment'
minrows = 10
maxrows = 25
cols = constants.COMMENT_COLS
defaultcontent = defaultcontent
%]
2011-03-29 12:55:21 +04:00
<br /><input type="button" value="Preview comment" onclick="document.getElementById('wrapcommentpreview').style.width = document.getElementById('comment').offsetWidth+'px'; showcommentpreview('comment');" />
[% PROCESS "bug/comment-preview-div.html.tmpl" %]
2008-12-15 15:53:33 +03:00
</td>
</tr>
2010-05-15 00:02:34 +04:00
[% IF user.is_insider %]
2009-07-29 15:21:49 +04:00
<tr class="expert_fields">
2008-12-15 15:53:33 +03:00
<th> </th>
<td colspan="3">
2013-04-03 16:30:20 +04:00
<input type="checkbox" id="commentprivacy" name="commentprivacy"
2008-12-15 15:53:33 +03:00
[% " checked=\"checked\"" IF commentprivacy %]>
<label for="commentprivacy">
2010-05-15 00:02:34 +04:00
Make description private (visible only to members of the
2014-04-01 17:06:23 +04:00
<strong>[% Param('insidergroup') | html %]</strong> group)
2008-12-15 15:53:33 +03:00
</label>
</td>
</tr>
[% END %]
2009-08-11 20:58:45 +04:00
<tr><td colspan="4"><hr /></td></tr>
2008-12-15 15:53:33 +03:00
<tr>
<th>Attachment:</th>
<td colspan="3">
2014-01-30 15:10:15 +04:00
<div id="attachment_false">
<input type="button" value="Add an attachment" onclick="handleWantsAttachment('single')" />
<input type="button" value="Add multiple" onclick="handleWantsAttachment('multi')" />
</div>
<div id="attachment_true" style="display: none">
<input type="button" value="Don't add an attachment" onClick="handleWantsAttachment('none')" />
<input type="button" value="Add multiple" onclick="handleWantsAttachment('multi')" />
2008-12-15 15:53:33 +03:00
<fieldset>
<legend>Add an attachment</legend>
<table class="attachment_entry">
[% PROCESS attachment/createformcontents.html.tmpl
flag_types = product.flag_types.attachment
any_flags_requesteeble = 1
2014-01-24 17:50:28 +04:00
flag_table_id ="attachment_flags"
attach_multi = "show_attach_multi(this);" %]
2008-12-15 15:53:33 +03:00
</table>
</fieldset>
2014-01-30 15:10:15 +04:00
</div>
<div id="attachment_multi" style="display: none">
<input type="button" value="Add single attachment" onclick="handleWantsAttachment('single')" />
<input type="button" value="Don't add an attachment" onClick="handleWantsAttachment('none')" />
<fieldset>
<legend>Add multiple attachments</legend>
<div id="att_multiple" style="display: none"></div>
</fieldset>
</div>
2008-12-15 15:53:33 +03:00
</td>
</tr>
2009-07-29 15:21:49 +04:00
</tbody>
2008-12-15 15:53:33 +03:00
2009-07-29 15:21:49 +04:00
<tbody class="expert_fields">
2008-12-15 15:53:33 +03:00
[% IF user.in_group('editbugs', product.id) %]
[% IF use_keywords %]
<tr>
<th><a href="describekeywords.cgi">Keywords</a>:</th>
2014-08-01 21:13:45 +04:00
[% IF !Bugzilla.get_field('alias').enabled %]
2008-12-15 15:53:33 +03:00
<td colspan="3">
2009-08-11 20:58:45 +04:00
[% ELSE %]
<td>
[% END %]
2014-04-01 17:06:23 +04:00
<input id="keywords" name="keywords" size="40" value="[% default.keywords | html %]">
2013-05-31 16:46:26 +04:00
<script type="text/javascript">
2014-08-01 15:00:20 +04:00
addListener(window, 'load', addKeywordsAutocomplete);
2013-05-31 16:46:26 +04:00
</script>
2014-03-31 19:05:48 +04:00
<div id="keywords_description_container"></div>
2008-12-15 15:53:33 +03:00
</td>
2014-08-01 21:13:45 +04:00
[% IF Bugzilla.get_field('alias').enabled %]
2009-08-11 20:58:45 +04:00
<th>Alias:</th>
2014-03-31 20:00:26 +04:00
<td><input name="alias" size="20" value="[% default.alias | html %]" /></td>
2009-08-11 20:58:45 +04:00
[% END %]
</tr>
2014-08-01 21:13:45 +04:00
[% ELSIF Bugzilla.get_field('alias').enabled %]
2009-08-11 20:58:45 +04:00
<tr>
<th>Alias:</th>
2014-03-31 20:00:26 +04:00
<td colspan="3"><input name="alias" size="20" value="[% default.alias | html %]" /></td>
2008-12-15 15:53:33 +03:00
</tr>
[% END %]
[% END %]
2014-08-01 21:13:45 +04:00
[% IF Bugzilla.get_field('status_whiteboard').enabled %]
2009-08-25 20:53:16 +04:00
<tr>
<th>Whiteboard:</th>
<td colspan="3">
2014-04-01 17:06:23 +04:00
<input id="status_whiteboard" name="status_whiteboard" size="40" value="[% default.status_whiteboard | html %]">
2009-08-25 20:53:16 +04:00
</td>
</tr>
[% END %]
2008-12-15 15:53:33 +03:00
</tbody>
2009-07-29 15:21:49 +04:00
<tbody class="expert_fields">
2008-12-15 15:53:33 +03:00
[% IF group.size %]
<tr>
<th> </th>
<td colspan="3">
<br>
<strong>
Only users in all of the selected groups can view this [% terms.bug %]:
</strong>
<br>
<font size="-1">
(Leave all boxes unchecked to make this a public [% terms.bug %].)
</font>
<br>
<br>
2014-04-01 17:06:23 +04:00
[% # Group checkboxes %]
2008-12-15 15:53:33 +03:00
[% FOREACH g = group %]
2013-04-03 16:30:20 +04:00
<input type="checkbox" id="bit-[% g.bit %]"
2008-12-15 15:53:33 +03:00
name="bit-[% g.bit %]" value="1"
[% " checked=\"checked\"" IF g.checked %]>
2014-04-01 17:06:23 +04:00
<label for="bit-[% g.bit %]">[% g.description | html_light %]</label><br>
2008-12-15 15:53:33 +03:00
[% END %]
</td>
</tr>
[% END %]
2009-07-29 15:21:49 +04:00
</tbody>
2008-12-15 15:53:33 +03:00
2009-07-29 15:21:49 +04:00
<tbody>
2008-12-15 15:53:33 +03:00
[% # Form controls for entering additional data about the bug being created. %]
[% Hook.process("form") %]
<tr>
<th> </th>
<td colspan="3">
2013-04-03 16:30:20 +04:00
<input type="submit" id="commit" value="Submit [% terms.Bug %]" />
2008-12-15 15:53:33 +03:00
2013-04-03 16:30:20 +04:00
<input type="submit" name="maketemplate" id="maketemplate"
2014-04-01 17:06:23 +04:00
value="Remember values as bookmarkable template"
class="expert_fields" />
2008-12-15 15:53:33 +03:00
</td>
</tr>
</tbody>
</table>
2011-09-16 15:59:48 +04:00
<input type="hidden" name="form_name" value="enter_bug" />
2008-12-15 15:53:33 +03:00
</form>
[% # Links or content with more information about the bug being created. %]
[% Hook.process("end") %]
[% PROCESS global/footer.html.tmpl %]
2009-02-09 18:57:34 +03:00
[% BLOCK build_userlist %]
[% user_found = 0 %]
[% default_login = default_user.login %]
[% RETURN UNLESS default_login %]
[% FOREACH user = userlist %]
[% IF user.login == default_login %]
[% user_found = 1 %]
[% LAST %]
[% END %]
[% END %]
2014-04-01 17:06:23 +04:00
[% UNLESS user_found %]
[% userlist.push({
login => default_login,
identity => default_user.identity,
visible => 1})
%]
[% END %]
2009-02-09 18:57:34 +03:00
[% END %]