diff --git a/src/ontology/src/resources/table.html b/src/ontology/src/resources/table.html new file mode 100644 index 0000000..7d3cc1e --- /dev/null +++ b/src/ontology/src/resources/table.html @@ -0,0 +1,364 @@ +{# +## This template is derived from https://github.com/ontodev/nanobot.rs/blob/main/src/resources/table.html +## This only redirects to another form template when adding a new row, which is the same as when editing a row. +## Issue requested in https://github.com/ontodev/nanobot.rs/issues/76 +#} + +{% extends "page.html" %} +{% block content %} +
+ {% for name, value in column|items -%} + | + + {{ value.label or name }} + + {% if value.filtered_operator %} + + {% elif value.sorted == "asc" %} + + {% elif value.sorted == "desc" %} + + {% endif %} + | + {% endfor %} +
---|---|
+ + | + {% else %} ++ {% if cell.nulltype %} + {% elif cell.href %} + {{ cell.value }} + {% else %} + {{ cell.value }} + {% endif %} + {% if cell.messages or cell.history %} + + | + {% endif %} + + {% endif %} + {% endfor %} +