Closed Bug 766528 Opened 13 years ago Closed 13 years ago

Allow customizing the time tracking field labels

Categories

(Bugzilla :: User Interface, enhancement)

4.3.1
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.4

People

(Reporter: pami.ketolainen, Assigned: pami.ketolainen)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch v1 (obsolete) — Splinter Review
The field labels on show bug page can be customized by overriding the field description in "hook/global/field-descs-end.none.tmpl" However, the time tracking fields do not use the common bug/field* templates and so they do not reflect the changes made in that template hook. This prevents for example changing the "hours" to something else. Attached is a patch to change the templates so that field-descs values are also used for the time tracking fields. It simply replaces the hard coded labels with '[% INCLUDE "bug/field-label.html.tmpl" ...'
Attachment #634859 - Flags: review?(mkanat)
Assignee: general → ui
Blocks: 575211
Status: UNCONFIRMED → NEW
Component: Bugzilla-General → User Interface
Ever confirmed: true
Target Milestone: --- → Bugzilla 4.4
Comment on attachment 634859 [details] [diff] [review] v1 >+ [% INCLUDE "bug/field-label.html.tmpl" >+ field = bug_fields.estimated_time >+ %] This looks good, but you also have to pass editable = 1 to all these directives as all users who can see these fields can also edit them.
Attachment #634859 - Flags: review?(mkanat) → review-
(In reply to Frédéric Buclin from comment #1) > Comment on attachment 634859 [details] [diff] [review] > v1 > > >+ [% INCLUDE "bug/field-label.html.tmpl" > >+ field = bug_fields.estimated_time > >+ %] > > This looks good, but you also have to pass editable = 1 to all these > directives as all users who can see these fields can also edit them. Ok, I wasn't exactly sure if editable is needed. In field-label.html.tmpl it only seems to affect whether the description is wrapped in <label> tag. Should they also have some accesskey?
Attached patch v2Splinter Review
Added the editable = 1 Leaving out the accesskey, as it's probably a different story to decide whether those fields need access key, and what would be the appropriate one for each.
Attachment #634859 - Attachment is obsolete: true
Attachment #634904 - Flags: review?(LpSolit)
Depends on: 768573
Comment on attachment 634904 [details] [diff] [review] v2 >=== modified file 'template/en/default/bug/edit.html.tmpl' >- <th> >- %Complete >- </th> This can be replaced by bug_fields.percentage_complete too. Otherwise looks good and works fine. r=LpSolit
Attachment #634904 - Flags: review?(LpSolit) → review+
Assignee: ui → pami.ketolainen
Status: NEW → ASSIGNED
Flags: approval+
Thanks for your contribution. :) Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/ modified template/en/default/bug/edit.html.tmpl modified template/en/default/list/edit-multiple.html.tmpl Committed revision 8272.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: