Closed Bug 554552 Opened 15 years ago Closed 15 years ago

Refactor classifications and components templates to use edit-common.html.tmpl and add the 'rows' hook

Categories

(Bugzilla :: Extensions, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.0

People

(Reporter: timello, Assigned: timello)

Details

Attachments

(1 file, 1 obsolete file)

Today, neither classification nor component templates use edit-common.html.tmpl to avoid code duplication. Also it would be nice to add the hook: 'rows' allowing new fields to be addded.
Attachment #434445 - Flags: review?(mkanat)
Status: NEW → ASSIGNED
Attachment #434445 - Flags: review?(mkanat) → review+
Comment on attachment 434445 [details] [diff] [review] Factor out common html to edit-common.html.tmpl and add the new hook: rows >=== added file 'template/en/default/admin/classifications/edit-common.html.tmpl' > [snip] >+ <td><input id="sortkey" size="20" maxlength="20" name="sortkey" value=" >+ [%- classification.sortkey FILTER html %]"></td> Nit: Line needs a two-space indent there. >=== added file 'template/en/default/admin/components/edit-common.html.tmpl' >+ <td><input size="64" maxlength="64" name="component" value=" >+ [%- comp.name FILTER html %]"></td> And there, too. Otherwise this looks great! The spacing nits can be fixed on checkin. Thanks, timello! :-)
Assignee: extensions → timello
Flags: approval+
Target Milestone: --- → Bugzilla 3.8
I know it could be fixed in the checkin. But I think it is better indent different: <td><input id="sortkey" size="20" maxlength="20" name="sortkey" value="[%- classification.sortkey FILTER html %]"></td> ------------ <td><input size="64" maxlength="64" name="component" value="[%- comp.name FILTER html %]"></td>
Attachment #434445 - Attachment is obsolete: true
Comment on attachment 434993 [details] [diff] [review] Fixing the indentation. Agreed, for sure.
Attachment #434993 - Flags: review+
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/ modified template/en/default/admin/classifications/add.html.tmpl added template/en/default/admin/classifications/edit-common.html.tmpl modified template/en/default/admin/classifications/edit.html.tmpl modified template/en/default/admin/components/create.html.tmpl added template/en/default/admin/components/edit-common.html.tmpl modified template/en/default/admin/components/edit.html.tmpl Committed revision 7097.
Status: ASSIGNED → RESOLVED
Closed: 15 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: