Add record_table template to provision

This commit is contained in:
Jože Fortun
2021-04-02 11:04:37 +02:00
parent 1a54155d83
commit d52b2a94cc
+7
View File
@@ -54,3 +54,10 @@ templates:
</tbody>
</table>
</div>
record_table:
type: text/html
partial: true
template: "<table width=\"800\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <thead>\n <tr>\n <th>Field</th>\n <th>Value</th>\n </tr>\n </thead>\n <tbody>\n{{range $key, $value := .values}}\n <tr>\n <td>{{ $key }}</td>\n{{if $value }}\n <td>{{ $value }}</td>\n{{else}}\n <td>&nbsp;</td>\n{{end}}\n </tr>\n{{end}}\n \n </tbody>\n</table>\n"
meta:
short: Tablefy Record
description: Displays the provided record as a table.