aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2019-08-13 20:49:56 +0200
committerMichael Buesch <m@bues.ch>2019-08-13 20:49:56 +0200
commitf82022e80ac518c15b1c8b745cef099670b09674 (patch)
tree295bdf9f014c57ea1bb1ed5da34e2c42183727f8
parent3948643eb8215abeccf62aaa0dc85e3ec99740cb (diff)
downloadcms-f82022e80ac518c15b1c8b745cef099670b09674.tar.xz
cms-f82022e80ac518c15b1c8b745cef099670b09674.zip
Update example macrosHEADmaster
Signed-off-by: Michael Buesch <m@bues.ch>
-rw-r--r--example/db/macros/INPUT4
-rw-r--r--example/db/macros/LINPUT4
2 files changed, 4 insertions, 4 deletions
diff --git a/example/db/macros/INPUT b/example/db/macros/INPUT
index 739c332..2ba3ef0 100644
--- a/example/db/macros/INPUT
+++ b/example/db/macros/INPUT
@@ -1,2 +1,2 @@
-<!--- @INPUT(type, name, value, (checked)) --->
-<input type="$1" name="$2" value="$3"$(if $4, checked="checked") />
+<!--- @INPUT(type, name, value, (checked), (extra_attributes)) --->
+<input type="$1" name="$2" value="$3"$(if $4, checked="checked")$(if $5, $5) />
diff --git a/example/db/macros/LINPUT b/example/db/macros/LINPUT
index 1d9c85d..0ae7b93 100644
--- a/example/db/macros/LINPUT
+++ b/example/db/macros/LINPUT
@@ -1,2 +1,2 @@
-<!--- @LINPUT(type, name, value, (pre-text), (post-text), (checked)) --->
-<label>$4<input type="$1" name="$2" value="$3"$(if $6, checked="checked") />$5</label>
+<!--- @LINPUT(type, name, value, (pre-text), (post-text), (checked), (extra_attributes)) --->
+<label>$4<input type="$1" name="$2" value="$3"$(if $6, checked="checked")$(if $7, $7) />$5</label>
bues.ch cgit interface