From c405e80203f323a83b447d6fc899dbba32d52f2a Mon Sep 17 00:00:00 2001 From: levinse Date: Fri, 22 Jul 2011 18:59:27 +0000 Subject: custom fields, RT11714 --- httemplate/browse/part_virtual_field.html | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 httemplate/browse/part_virtual_field.html (limited to 'httemplate/browse/part_virtual_field.html') diff --git a/httemplate/browse/part_virtual_field.html b/httemplate/browse/part_virtual_field.html new file mode 100644 index 000000000..1d8fad4c6 --- /dev/null +++ b/httemplate/browse/part_virtual_field.html @@ -0,0 +1,35 @@ +<% include( 'elements/browse.html', + 'title' => 'Custom field definitions', + 'menubar' => [ 'Add a new field' => $p.'edit/part_virtual_field.html', ], + 'name' => 'custom fields', + 'query' => { 'table' => 'part_virtual_field', + 'hashref' => {}, + 'order_by' => 'ORDER BY dbtable', + }, + 'count_query' => 'SELECT COUNT(1) from part_virtual_field', + 'header' => [ '#', + 'Table', + 'Name', + 'Length', + 'Label', + ], + 'fields' => [ 'vfieldpart', + 'dbtable', + 'name', + 'length', + 'label', + ], + 'links' => [ [ $p.'edit/part_virtual_field.html?', 'vfieldpart' ], + '', + '', + '', + '', + ], + ) +%> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + + -- cgit v1.2.1