Closed Bug 547496 Opened 14 years ago Closed 14 years ago

Add IDs to some form elements

Categories

(Bugzilla :: User Interface, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.6

People

(Reporter: LpSolit, Assigned: LpSolit)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch, v1 (obsolete) — Splinter Review
In order to add icons to some templates, I first need them to have IDs I can point to from the CSS files. Here is what I can do with this patch applied:

http://lpsolit.files.wordpress.com/2010/02/bugzilla_with_icons.png
Attachment #427997 - Flags: review?(guy.pyrzak)
Attachment #427997 - Flags: review?(guy.pyrzak) → review+
Flags: approval+
Max, do you agree to take my patch for 3.6rc1? All it does is to add IDs to some HTML elements, so I see as being equivalent to your patches adding hooks to stable branches. :)
Flags: approval3.6?
(In reply to comment #1)
> Max, do you agree to take my patch for 3.6rc1? All it does is to add IDs to
> some HTML elements, so I see as being equivalent to your patches adding hooks
> to stable branches. :)

  Hmm. Maybe. Did you check that the ids don't conflict with anything in the templates that use tabs.html.tmpl?
Maybe it would be safer to call them tab_[% name %] instead of just [% name %].
(In reply to comment #2)
>   Hmm. Maybe. Did you check that the ids don't conflict with anything in the
> templates that use tabs.html.tmpl?

Yes, I checked.


(In reply to comment #3)
> Maybe it would be safer to call them tab_[% name %] instead of just [% name %].

Don't know. For now, there is no conflict, and the names are hardcoded.
(In reply to comment #4)
> Don't know. For now, there is no conflict, and the names are hardcoded.

  Yeah, but just for future use. I don't think we'll id anything else as tab_<something>.
I see no reason why this couldn't land on the 3.6 branch, personally.
Attached patch patch, v2Splinter Review
%name% -> tab_%name%

I also added an ID for old and new charts in reports/menu.html.tmpl, which I omitted in my previous patch. Carrying pyrzak's r+ forward.

Happy now? :)
Attachment #427997 - Attachment is obsolete: true
Attachment #428173 - Flags: review+
  Yeah, looks fine. :-)
Flags: approval3.6? → approval3.6+
Target Milestone: Bugzilla 3.8 → Bugzilla 3.6
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/
modified template/en/default/admin/admin.html.tmpl
modified template/en/default/global/tabs.html.tmpl
modified template/en/default/reports/menu.html.tmpl
Committed revision 7027.


I cannot commit to the 3.6 branch. I get an error when trying to.
bzr: ERROR: bzrlib.errors.TooManyConcurrentRequests: The medium 'SmartSSHClientMedium(connected=True, username='lpsolit@gmail.com', host='bzr.mozilla.org', port=None)' has reached its concurrent request limit. Be sure to finish_writing and finish_reading on the currently open request.
Whiteboard: [needs checkin for 3.6]
ok, works now.

Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/3.6/
modified template/en/default/admin/admin.html.tmpl
modified template/en/default/global/tabs.html.tmpl
modified template/en/default/reports/menu.html.tmpl
Committed revision 6999.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [needs checkin for 3.6]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: