This plugin currently includes a custom table.html template in order to do this:
|
{% if permission_allowed(request.actor, 'insert-row') |
|
or permission_allowed(request.actor, 'update-row') |
|
or permission_allowed(request.actor, 'delete-row') |
|
%} |
|
|
|
{% if permission_allowed(request.actor, 'insert-row') %} |
|
<button id="datasette-write-ui-insert-button">Insert new row</button> |
|
{% endif %} |
|
|
|
<script id="datasette-write-ui" type="module" src="{{ urls.static_plugins("datasette_write_ui", "table.min.js") }}"></script> |
|
<link href="{{ urls.static_plugins("datasette_write_ui", "table.css") }}" rel="stylesheet" /> |
The new top_table plugin hook could do this without needing to ship a custom template - which could otherwise conflict with some other plugin.
This plugin currently includes a custom
table.htmltemplate in order to do this:datasette-write-ui/datasette_write_ui/templates/table.html
Lines 17 to 27 in b8a461f
The new
top_tableplugin hook could do this without needing to ship a custom template - which could otherwise conflict with some other plugin.