diff options
Diffstat (limited to 'template/en/default/bug')
-rw-r--r-- | template/en/default/bug/edit.html.tmpl | 11 | ||||
-rw-r--r-- | template/en/default/bug/field-help.none.tmpl | 7 | ||||
-rw-r--r-- | template/en/default/bug/field.html.tmpl | 16 |
3 files changed, 26 insertions, 8 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index d7c564fdb..d8803e677 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -523,11 +523,20 @@ [% INCLUDE bug/field.html.tmpl bug = bug, field = bug_fields.keywords, value = bug.keywords editable = bug.check_can_change_field("keywords", 0, 1), - no_tds = 1 + no_tds = 1, possible_values = all_keywords %] </td> </tr> [% END %] + + [% IF user.id %] + <tr> + [% INCLUDE bug/field.html.tmpl + bug = bug, field = bug_fields.tag, value = bug.tags.join(", "), + editable = 1, possible_values = user.tags.keys + %] + </tr> + [% END %] [% END %] [%############################################################################%] diff --git a/template/en/default/bug/field-help.none.tmpl b/template/en/default/bug/field-help.none.tmpl index a74de2e32..f76fa9639 100644 --- a/template/en/default/bug/field-help.none.tmpl +++ b/template/en/default/bug/field-help.none.tmpl @@ -137,6 +137,13 @@ status_whiteboard => "Each $terms.bug has a free-form single line text entry box for" _ " adding tags and status information.", +tag => + "Unlike ${vars.field_descs.keywords} which are global and visible by + all users, ${vars.field_descs.tag} are personal and can only be + viewed and edited by their author. + Editing them won't send any notification to other users. Use them + to tag and keep track of ${terms.bugs}.", + target_milestone => "The $vars.field_descs.target_milestone field is used to define when the" _ " engineer the $terms.bug is assigned to expects to fix it.", diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index 0cc75c288..e6660256f 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -171,19 +171,21 @@ </script> [% END %] [% CASE constants.FIELD_TYPE_KEYWORDS %] - <div id="keyword_container"> + <div id="[% field.name FILTER html %]_container"> <input type="text" id="[% field.name FILTER html %]" size="40" class="text_input" name="[% field.name FILTER html %]" value="[% value FILTER html %]"> - <div id="keyword_autocomplete"></div> + <div id="[% field.name FILTER html %]_autocomplete"></div> </div> <script type="text/javascript" defer="defer"> - YAHOO.bugzilla.keyword_array = [ - [%- FOREACH keyword = all_keywords %] - [%-# %]"[% keyword.name FILTER js %]" + if (typeof YAHOO.bugzilla.field_array === "undefined") + YAHOO.bugzilla.field_array = []; + YAHOO.bugzilla.field_array["[% field.name FILTER js %]"] = [ + [%- FOREACH val = possible_values %] + [%-# %]"[% val FILTER js %]" [%- "," IF NOT loop.last %][% END %]]; - YAHOO.bugzilla.keywordAutocomplete.init('[% field.name FILTER js %]', - 'keyword_autocomplete'); + YAHOO.bugzilla.fieldAutocomplete.init('[% field.name FILTER js %]', + '[% field.name FILTER js %]_autocomplete'); </script> [% END %] [% ELSE %] |