aboutsummaryrefslogtreecommitdiffstats
path: root/root/base/button
diff options
context:
space:
mode:
Diffstat (limited to 'root/base/button')
-rw-r--r--root/base/button21
1 files changed, 21 insertions, 0 deletions
diff --git a/root/base/button b/root/base/button
new file mode 100644
index 0000000..5e09c4d
--- /dev/null
+++ b/root/base/button
@@ -0,0 +1,21 @@
+[%
+
+PROCESS field_base;
+
+main_block = 'button_control';
+
+BLOCK button_control;
+
+ %]<input type="[% button_type || 'submit' %]" [%
+ IF attrs.value == '';
+ 'value="'; loc(self.value) | html; '" ';
+ END;
+ connect_control(self, self.event);
+ process_attrs(attrs) %] />[%
+# IF self.img_src;
+# INCLUDE component type = 'image';
+# ELSE;
+
+END;
+
+%]