From 5218336ca5d03c9421e86b85e51b4a6075232560 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 21 Jun 2019 16:01:14 -0400 Subject: [PATCH] Copy of ui elements from serverstats plugin Copy ui elements from Chuck's plugin --- views/ui/f6/checkbox.html | 47 +++++++++++++++++++++ views/ui/f6/editor.html | 69 +++++++++++++++++++++++++++++++ views/ui/f6/f6-image.html | 31 ++++++++++++++ views/ui/f6/f6-select.html | 18 +++++++++ views/ui/f6/number.html | 62 ++++++++++++++++++++++++++++ views/ui/f6/section-name.html | 24 +++++++++++ views/ui/f6/text.html | 72 +++++++++++++++++++++++++++++++++ views/ui/multiSelectSearch.html | 18 +++++++++ views/ui/std/deleteDialog.html | 49 ++++++++++++++++++++++ 9 files changed, 390 insertions(+) create mode 100644 views/ui/f6/checkbox.html create mode 100644 views/ui/f6/editor.html create mode 100644 views/ui/f6/f6-image.html create mode 100644 views/ui/f6/f6-select.html create mode 100644 views/ui/f6/number.html create mode 100644 views/ui/f6/section-name.html create mode 100644 views/ui/f6/text.html create mode 100644 views/ui/multiSelectSearch.html create mode 100644 views/ui/std/deleteDialog.html diff --git a/views/ui/f6/checkbox.html b/views/ui/f6/checkbox.html new file mode 100644 index 00000000..8eaa05ca --- /dev/null +++ b/views/ui/f6/checkbox.html @@ -0,0 +1,47 @@ +{* + Foundation 6 Checkbox Input Field + All parameters are required. + Only 0ne of $data or $field may be used. + Do not list fields if they're false. (We're not checking for false) + + {$fieldData = [ + 'data' => array Data from data abstract if using that, + 'field' => string Name of field that holds the data if not using data abstract, + 'label' => string Label text for this field, + 'helpText' => string Help text for this input, + ]} +*} + +{if (!isset($fieldData.data) && !isset($fieldData.field)) || !isset($fieldData.label)} +
+
+ Field Error: Required field information not supplied! +
+
+{else} + {if isset($fieldData.data)} {* If using data abstract *} +
+
+ +
+
+ Yes + {if $data.fieldFail.$field}{$data.fieldFail.$field}{/if} +
+
+ {else} +
+ +
+ {/if} +{/if} diff --git a/views/ui/f6/editor.html b/views/ui/f6/editor.html new file mode 100644 index 00000000..331ef0bb --- /dev/null +++ b/views/ui/f6/editor.html @@ -0,0 +1,69 @@ +{* + Foundation 6 Text Area Input Field + All parameters are required. + Do not list parameters if they're false. (We're not checking for false) + If supplying field data (formData) from the data abstract, supply a + name of that in the "field" parameter. Also then certain parameters like + "required" will be supplied by the abstract rather than in a parameter in + this array. + + {$fieldData = [ + 'data' => array Data from data abstract if using that, + 'field' => string Name of field that holds the data if not using data abstract, + 'label' => string Label text for this field, + 'placeholder' => string Placeholder string, + 'required' => boolean True if required, + 'maxWidth' => string Size of input field using standard style notation ('900px', '15rem', ...), + 'helpText' => string Help text for this input, + 'errortext' => string Error text that appears when the field doesn't validate + ]} +*} + +{if (!isset($fieldData.data) && !isset($fieldData.field)) || !isset($fieldData.label)} +
+
+ Field Error: Required field information not supplied! +
+
+{else} + {if isset(${$fieldData.data})} {* If using data abstract *} +
+
+ +
+
+ + {if $data.fieldFail.$field}{$data.fieldFail.$field}{/if} +
+
+ {else} {* Using simple field *} +
+ +
+ {/if} +{/if} diff --git a/views/ui/f6/f6-image.html b/views/ui/f6/f6-image.html new file mode 100644 index 00000000..b7b28fa9 --- /dev/null +++ b/views/ui/f6/f6-image.html @@ -0,0 +1,31 @@ +{* Foundation 6 Image *} +{* setup $data *} +{* setup $field *} +{* setup $fieldLabel *} +
+
+ +
+
+
+ {if $data.fieldData.$field} +
+
+
+ +
+
+
+
+ Delete {$fieldLabel}
+ {$data.fieldData.$field} +
+
+
+ {/if} +
New {$fieldLabel}
+
+ {if $data.fieldFail.$field}

{$data.fieldFail.$field}

{/if} +
+
+
diff --git a/views/ui/f6/f6-select.html b/views/ui/f6/f6-select.html new file mode 100644 index 00000000..288e233e --- /dev/null +++ b/views/ui/f6/f6-select.html @@ -0,0 +1,18 @@ +{* Foundation 6 Select *} +{* setup $data *} +{* setup $field *} +{* setup $fieldLabel *} +
+
+ +
+
+ + {if $data.fieldFail.$field}{$data.fieldFail.$field}{/if} +
+
diff --git a/views/ui/f6/number.html b/views/ui/f6/number.html new file mode 100644 index 00000000..4d87522c --- /dev/null +++ b/views/ui/f6/number.html @@ -0,0 +1,62 @@ +{* + Foundation 6 Number Input Field + All parameters are required. + Only 0ne of $data or $field may be used. + DO NOT include fields if they're false. (We're not checking for false) + + {$fieldData = [ + 'data' => array Data from data abstract if using that, + 'field' => string Name of field that holds the data if not using data abstract, + 'label' => string Label text for this field, + 'placeholder' => string Placeholder string, + 'suffix' => string Suffix text to add after input field, + 'min' => integer Minimum numeric value + 'max' => integer Maximum numeric value + 'maxWidth' => integer Size of input field in characters, + 'message' => string Message string to display between label and input, + 'helpText' => string Help text for this input, + 'errortext' => string Error text that appears when the field doesn't validate + ]} +*} + +{if (!isset($fieldData.data) && !isset($fieldData.field)) || !isset($fieldData.label)} +
+
+ Field Error: Required field information not supplied! +
+
+{else} + {if isset($fieldData.data)} {* If using data abstract *} +
+
+ +
+
+ Yes + {if $data.fieldFail.$field}{$data.fieldFail.$field}{/if} +
+
+ {else} +
+ +
+ {/if} +{/if} diff --git a/views/ui/f6/section-name.html b/views/ui/f6/section-name.html new file mode 100644 index 00000000..3f3c4f00 --- /dev/null +++ b/views/ui/f6/section-name.html @@ -0,0 +1,24 @@ +{* + Foundation 6 - Form Section Title + All parameters are required. + + {$fieldData = [ + 'title' => string Section title text, + 'helpText' => string Additional text to describe this section + ]} +*} +{if !isset($fieldData.title)} +
+
+ Field Error: Required field information not supplied! +
+
+{else} +
 
+
+
+

{$fieldData.title}

+ {if isset($fieldData.helpText)}

{$fieldData.helpText}

{/if} +
+
+{/if} \ No newline at end of file diff --git a/views/ui/f6/text.html b/views/ui/f6/text.html new file mode 100644 index 00000000..7a0632ae --- /dev/null +++ b/views/ui/f6/text.html @@ -0,0 +1,72 @@ +{* + Foundation 6 Text Input Field + All parameters are required. + Do not list parameters if they're false. (We're not checking for false) + If supplying field data (formData) from the data abstract, supply a + name of that in the "field" parameter. Also then certain parameters like + "required" will be supplied by the abstract rather than in a parameter in + this array. + + {$fieldData = [ + 'data' => array Data from data abstract if using that, + 'field' => string Name of field that holds the data if not using data abstract, + 'label' => string Label text for this field, + 'placeholder' => string Placeholder string, + 'required' => boolean True if required, + 'maxWidth' => string Size of input field using standard style notation ('900px', '15rem', ...), + 'maxlength' => integer Maximum number of characters that may be entered, + 'helpText' => string Help text for this input, + 'errortext' => string Error text that appears when the field doesn't validate + ]} +*} + +{if (!isset($fieldData.data) && !isset($fieldData.field)) || !isset($fieldData.label)} +
+
+ Field Error: Required field information not supplied! +
+
+{else} + {if isset(${$fieldData.data})} {* If using data abstract *} + {$field = $fieldData.field} +
+
+ + + {if $fieldData.data.fieldFail.$field}{$fieldData.data.fieldFail.$field}{/if} + {if isset($fieldData.helpText)}

{$fieldData.helpText}

{/if} + {if isset($fieldData.errorText)}{$fieldData.errorText}{/if} +
+
+ {else} {* Using simple field *} +
+ +
+ {/if} +{/if} diff --git a/views/ui/multiSelectSearch.html b/views/ui/multiSelectSearch.html new file mode 100644 index 00000000..90e9af0e --- /dev/null +++ b/views/ui/multiSelectSearch.html @@ -0,0 +1,18 @@ + +
+ {$multiSelectFilterSearchTerm}: + +
+ \ No newline at end of file diff --git a/views/ui/std/deleteDialog.html b/views/ui/std/deleteDialog.html new file mode 100644 index 00000000..e3ea7870 --- /dev/null +++ b/views/ui/std/deleteDialog.html @@ -0,0 +1,49 @@ +{* Delete Dialog *} +{* Set these variables to use the Dialog in your project *} +{* $itemName = Name of item *} +{* $deleteUrl = Url to delete item *} +Delete this {$itemName} + +
+
+

Cancel

+

+
+
+

WARNING:

+

+ Clicking the "Delete this {$itemName}" button above will + delete all of the data and images associated with this event. + +

+

+ + Once deleted, this information will no longer be available and cannot be retrieved! + If you are unsure that you want to completely remove this data, consider changing the status + of this event to "Archived" instead. + +

+
+
+ + -- 2.17.1