|
270 | 270 | {/foreach}
|
271 | 271 |
|
272 | 272 | <td class="col-action col-action-inline-edit">
|
273 |
| - {input $filter['inline_edit']['cancel'], class => 'btn btn-xs btn-danger'} |
274 |
| - {input $filter['inline_edit']['submit'], class => 'btn btn-xs btn-primary'} |
| 273 | + {block inline-edit-buttons} |
| 274 | + {input $filter['inline_edit']['cancel'], class => 'btn btn-xs btn-danger'} |
| 275 | + {input $filter['inline_edit']['submit'], class => 'btn btn-xs btn-primary'} |
| 276 | + {/block} |
275 | 277 | {input $filter['inline_edit']['_id']}
|
276 | 278 | {input $filter['inline_edit']['_primary_where_column']}
|
277 | 279 | </td>
|
|
292 | 294 | {$td->endTag()|noescape}
|
293 | 295 | {/foreach}
|
294 | 296 | <td n:if="$actions || $control->isSortable() || $itemsDetail || $inlineEdit || $inlineAdd" class="col-action">
|
295 |
| - {foreach $actions as $key => $action} |
296 |
| - {if $row->hasAction($key)} |
297 |
| - {if $action->hasTemplate()} |
298 |
| - {include $action->getTemplate(), item => $item, (expand) $action->getTemplateVariables(), row => $row} |
299 |
| - {else} |
300 |
| - {$action->render($row)|noescape} |
| 297 | + {block col-actions} |
| 298 | + {foreach $actions as $key => $action} |
| 299 | + {if $row->hasAction($key)} |
| 300 | + {if $action->hasTemplate()} |
| 301 | + {include $action->getTemplate(), item => $item, (expand) $action->getTemplateVariables(), row => $row} |
| 302 | + {else} |
| 303 | + {$action->render($row)|noescape} |
| 304 | + {/if} |
301 | 305 | {/if}
|
| 306 | + {/foreach} |
| 307 | + <span class="handle-sort btn btn-xs btn-default btn-secondary" n:if="$control->isSortable()"> |
| 308 | + <i n:block="icon-arrows-v" class="{$iconPrefix}arrows-v {$iconPrefix}arrows-alt-v"></i> |
| 309 | + </span> |
| 310 | + {if $inlineEdit && $row->hasInlineEdit()} |
| 311 | + {$inlineEdit->renderButton($row)|noescape} |
302 | 312 | {/if}
|
303 |
| - {/foreach} |
304 |
| - <span class="handle-sort btn btn-xs btn-default btn-secondary" n:if="$control->isSortable()"> |
305 |
| - <i n:block="icon-arrows-v" class="{$iconPrefix}arrows-v {$iconPrefix}arrows-alt-v"></i> |
306 |
| - </span> |
307 |
| - {if $inlineEdit && $row->hasInlineEdit()} |
308 |
| - {$inlineEdit->renderButton($row)|noescape} |
309 |
| - {/if} |
310 |
| - {if $itemsDetail && $itemsDetail->shouldBeRendered($row)} |
311 |
| - {$itemsDetail->renderButton($row)|noescape} |
312 |
| - {/if} |
| 313 | + {if $itemsDetail && $itemsDetail->shouldBeRendered($row)} |
| 314 | + {$itemsDetail->renderButton($row)|noescape} |
| 315 | + {/if} |
| 316 | + {/block} |
313 | 317 | </td>
|
314 | 318 | </tr>
|
315 | 319 | {/if}
|
|
437 | 441 | {/foreach}
|
438 | 442 |
|
439 | 443 | <td class="col-action col-action-inline-edit">
|
440 |
| - {input $filter['inline_add']['cancel']} |
441 |
| - {input $filter['inline_add']['submit']} |
| 444 | + {block inline-add-buttons} |
| 445 | + {input $filter['inline_add']['cancel']} |
| 446 | + {input $filter['inline_add']['submit']} |
| 447 | + {/block} |
442 | 448 | </td>
|
443 | 449 | </tr>
|
444 | 450 | {/if}
|
|
0 commit comments