9
9
form_row_id string:task${context/id}">
10
10
<tr tal:define="editstatus_url string:${context/fmt:url}/+editstatus"
11
11
tal:attributes="class view/getTaskRowCSSClass; id row_id">
12
<td class="icon left right">
14
14
metal:define-macro="expander"
15
15
tal:define="expander_link_text expander_link_text|nothing">
16
16
<a tal:condition="expandable"
17
tal:attributes="href tasklink" class="bugtask-expander">
19
onclick string:return toggleFormVisibility('${form_row_id}')"
20
class="sprite bug-status-expand">
18
22
<tal:link_text tal:replace="expander_link_text" />
21
24
<tal:no_expander tal:condition="not: expandable"
22
25
tal:replace="expander_link_text" />
172
175
class="bugtasks-table-row-init-script"
173
176
tal:condition="not:view/many_bugtasks"
174
177
tal:content="string:
175
LPS.use('event', 'lp.bugs.bugtask_index', 'lp.app.widgets.expander',
177
Y.on('domready', function() {
178
Y.lp.bugs.bugtask_index.setup_bugtask_row(${view/js_config});
180
// Set-up the expander on the bug task summary row.
181
var icon_node = Y.one('tr#${row_id} a.bugtask-expander');
182
var row_node = Y.one('tr#${form_row_id}');
183
if (Y.Lang.isValue(row_node)) {
184
// When no row is present, this is bug task on a project with
185
// multiple per-series tasks, so we do not need to set
186
// the expander for the descriptive parent project task.
187
var content_node = row_node.one('td form');
188
var expander = new Y.lp.app.widgets.expander.Expander(
189
icon_node, row_node, { animate_node: content_node });
178
LPS.use('event', 'lp.bugs.bugtask_index', function(Y) {
181
Y.lp.bugs.bugtask_index.setup_bugtask_row(${view/js_config});
196
186
<tal:form condition="view/displayEditForm">
198
188
tal:attributes="id form_row_id"
199
189
tal:condition="expandable"
200
class="bugtask-collapsible-content unseen"
190
style="display: none"
202
192
<td colspan="7" tal:content="structure view/edit_view" />