aboutsummaryrefslogtreecommitdiffstats
path: root/root/base/field_base
diff options
context:
space:
mode:
Diffstat (limited to 'root/base/field_base')
-rw-r--r--root/base/field_base27
1 files changed, 27 insertions, 0 deletions
diff --git a/root/base/field_base b/root/base/field_base
new file mode 100644
index 0000000..3605a8c
--- /dev/null
+++ b/root/base/field_base
@@ -0,0 +1,27 @@
+[%-
+
+main_block = 'field_base_field';
+
+control_block = 'field_base_control';
+
+BLOCK field_base_field;
+
+ IF self.label;
+ '<label>'; loc(self.label); '</label>: ';
+ END;
+
+ include( 'control_block' );
+
+ IF self.message;
+ "\n<span>"; loc(self.message); '</span>';
+ END;
+
+END;
+
+BLOCK field_base_control;
+
+ "CONTROL";
+
+END;
+
+-%]