From a43a50190fe20cb3b41498eef4a4b7c34b197c8f Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Mon, 26 Jun 2017 00:09:37 -0400 Subject: Add basic form control templates --- app/view/formctrl.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 app/view/formctrl.php (limited to 'app/view/formctrl.php') diff --git a/app/view/formctrl.php b/app/view/formctrl.php new file mode 100644 index 0000000..deac491 --- /dev/null +++ b/app/view/formctrl.php @@ -0,0 +1,32 @@ + + + +
+ + /> +
+ + + +
+ + /> +
+ -- cgit v1.2.3 From c8d6725f2dfb378c744c569df1b9981623808c87 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Tue, 27 Jun 2017 01:26:33 -0400 Subject: Reformat view helper modules To limit whitespace being piped to the client, remove empty lines of free HTML between PHP functions defined in view files. To maintain readability, this spacing is added back at the top and bottom of each PHP function. --- app/view/formctrl.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/view/formctrl.php') diff --git a/app/view/formctrl.php b/app/view/formctrl.php index deac491..ee0243f 100644 --- a/app/view/formctrl.php +++ b/app/view/formctrl.php @@ -18,15 +18,18 @@ namespace formctrl; +
/>
- + +
/>
+ -- cgit v1.2.3 From ef3e1c66e8a233c1ee44fbfaa9ef665bec1ffea9 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Tue, 27 Jun 2017 01:31:20 -0400 Subject: Add formname template to formctrl view --- app/view/formctrl.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/view/formctrl.php') diff --git a/app/view/formctrl.php b/app/view/formctrl.php index ee0243f..3683eb4 100644 --- a/app/view/formctrl.php +++ b/app/view/formctrl.php @@ -15,7 +15,11 @@ namespace formctrl; ?> + + + + -- cgit v1.2.3 From 47049c317f5d2a79de4ce5fa50b010467243a037 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Fri, 9 Feb 2018 00:40:30 -0500 Subject: Limit app textbox input to 64 chars Many database string fields are capped at 64 chars. Am now asserting this limit in the UI. --- app/view/formctrl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/view/formctrl.php') diff --git a/app/view/formctrl.php b/app/view/formctrl.php index 3683eb4..b8643b0 100644 --- a/app/view/formctrl.php +++ b/app/view/formctrl.php @@ -25,7 +25,7 @@ namespace formctrl;
- /> + maxlength="64" />
-- cgit v1.2.3 From 1eef7c438b236d57da16e7cccee7f182e440e8b1 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 15 Sep 2018 21:57:09 -0400 Subject: Form ctrls should use the 'control-label' class --- app/view/formctrl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/view/formctrl.php') diff --git a/app/view/formctrl.php b/app/view/formctrl.php index b8643b0..131b0de 100644 --- a/app/view/formctrl.php +++ b/app/view/formctrl.php @@ -24,7 +24,7 @@ namespace formctrl; bool $required = true, bool $disabled = false) : void { ?>
- + maxlength="64" />
@@ -32,7 +32,7 @@ namespace formctrl;
- + />
-- cgit v1.2.3 From ba3412610b5a964b5401378ec68a2bed2d816cdc Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 15 Sep 2018 22:03:32 -0400 Subject: Add css class and help-block to text formctrl --- app/view/formctrl.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'app/view/formctrl.php') diff --git a/app/view/formctrl.php b/app/view/formctrl.php index 131b0de..2723791 100644 --- a/app/view/formctrl.php +++ b/app/view/formctrl.php @@ -21,11 +21,15 @@ namespace formctrl; + bool $required = true, bool $disabled = false, string $cls = "", ?string $help = NULL) : void { ?> -
+
maxlength="64" /> + + + +
-- cgit v1.2.3 From 4c841f42df89d876058c2a785167247ca8748e77 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 15 Sep 2018 22:09:54 -0400 Subject: Add checkbox formctrl --- app/view/formctrl.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/view/formctrl.php') diff --git a/app/view/formctrl.php b/app/view/formctrl.php index 2723791..7433bbb 100644 --- a/app/view/formctrl.php +++ b/app/view/formctrl.php @@ -41,3 +41,12 @@ namespace formctrl;
+ + +
+ +
+ + -- cgit v1.2.3 From 4aa41406ca20733dd0741f6caa54e300c759acc8 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 15 Sep 2018 22:15:39 -0400 Subject: Add file formctrl This ctrl is not POSTed as part of the input[] array, but as a standalone name. --- app/view/formctrl.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/view/formctrl.php') diff --git a/app/view/formctrl.php b/app/view/formctrl.php index 7433bbb..e42b2ea 100644 --- a/app/view/formctrl.php +++ b/app/view/formctrl.php @@ -50,3 +50,11 @@ namespace formctrl; + + +
+ + +
+ + -- cgit v1.2.3 From 55e503f24a30161bc4a8311e845eff4f4cbb2d40 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 16 Sep 2018 16:40:03 -0400 Subject: Add hidden formctrl --- app/view/formctrl.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/view/formctrl.php') diff --git a/app/view/formctrl.php b/app/view/formctrl.php index e42b2ea..663b2d4 100644 --- a/app/view/formctrl.php +++ b/app/view/formctrl.php @@ -19,6 +19,11 @@ namespace formctrl; + + + + + -- cgit v1.2.3 From ac291fbe6db4a099bc8281e31ace13dad0a42d79 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Wed, 19 Sep 2018 15:20:37 -0400 Subject: formctrl: Hidden field name should be in 'input' array The input[ ] portion of the hidden field name had been left off. This commit fixes this bug. --- app/view/formctrl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/view/formctrl.php') diff --git a/app/view/formctrl.php b/app/view/formctrl.php index 663b2d4..1ed1452 100644 --- a/app/view/formctrl.php +++ b/app/view/formctrl.php @@ -22,7 +22,7 @@ namespace formctrl; - + Date: Mon, 22 Oct 2018 22:51:12 -0400 Subject: formctrl: Add textarea form control Adds a parameterized text area to the collection of controls. Signed-off-by: Malf Furious --- app/view/formctrl.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/view/formctrl.php') diff --git a/app/view/formctrl.php b/app/view/formctrl.php index 1ed1452..1a8348d 100644 --- a/app/view/formctrl.php +++ b/app/view/formctrl.php @@ -37,6 +37,14 @@ namespace formctrl; + + + +
+ + +
+ -- cgit v1.2.3