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)
Bugzilla
Extensions
Tracking
()
RESOLVED
FIXED
Bugzilla 4.0
People
(Reporter: timello, Assigned: timello)
Details
Attachments
(1 file, 1 obsolete file)
11.24 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Updated•15 years ago
|
Attachment #434445 -
Flags: review?(mkanat)
Assignee | ||
Updated•15 years ago
|
Status: NEW → ASSIGNED
Updated•15 years ago
|
Attachment #434445 -
Flags: review?(mkanat) → review+
Comment 1•15 years ago
|
||
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! :-)
Updated•15 years ago
|
Assignee: extensions → timello
Flags: approval+
Target Milestone: --- → Bugzilla 3.8
Assignee | ||
Comment 2•15 years ago
|
||
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 3•15 years ago
|
||
Comment on attachment 434993 [details] [diff] [review]
Fixing the indentation.
Agreed, for sure.
Attachment #434993 -
Flags: review+
Comment 4•15 years ago
|
||
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.
Updated•15 years ago
|
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.
Description
•