silverstripe-gridfieldexten.../templates/GridFieldAddNewInlineRow.ss
ajshort 692453bf9b Implement inline creation of records.
* Builds on the editable cols component with GridFieldAddNewInlineButton.
* Closes #2.
2013-02-09 02:19:30 +11:00

14 lines
394 B
Scheme

<script type="text/x-tmpl" class="ss-gridfield-add-inline-template">
<tr class="ss-gridfield-inline-new">
<% loop $Me %>
<% if $IsActions %>
<td$Attributes>
<button class="ss-gridfield-delete-inline gridfield-button-delete ss-ui-button" data-icon="cross-circle"></button>
</td>
<% else %>
<td$Attributes>$Content</td>
<% end_if %>
<% end_loop %>
</tr>
</script>