From 65afc01fe59d04636c193137cd88da62f1af13f7 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 18 Mar 2025 15:27:21 +0700 Subject: [PATCH] Add info properties --- system/admin/views/add-content.html.php | 6 ++- system/admin/views/add-page.html.php | 6 ++- system/admin/views/custom-field-page.html.php | 49 ++++++++++--------- system/admin/views/custom-field-post.html.php | 49 ++++++++++--------- .../admin/views/custom-field-profile.html.php | 49 ++++++++++--------- .../admin/views/custom-field-subpage.html.php | 49 ++++++++++--------- system/admin/views/custom-field.html.php | 48 +++++++++--------- system/admin/views/edit-content.html.php | 10 ++-- system/admin/views/edit-page.html.php | 10 ++-- system/resources/js/form.builder.js | 28 +++++++---- 10 files changed, 171 insertions(+), 133 deletions(-) diff --git a/system/admin/views/add-content.html.php b/system/admin/views/add-content.html.php index b2eece1..b8ca1d3 100644 --- a/system/admin/views/add-content.html.php +++ b/system/admin/views/add-content.html.php @@ -201,15 +201,16 @@ $( function() { type == 'text'):?> - +
type == 'textarea'):?> - +
type == 'checkbox'):?> + info;?>
type == 'select'):?> @@ -218,6 +219,7 @@ $( function() { + info;?> diff --git a/system/admin/views/add-page.html.php b/system/admin/views/add-page.html.php index 4bb209b..c080667 100644 --- a/system/admin/views/add-page.html.php +++ b/system/admin/views/add-page.html.php @@ -69,15 +69,16 @@ if ($type == 'is_page') { type == 'text'):?> - +
type == 'textarea'):?> - +
type == 'checkbox'):?> + info;?>
type == 'select'):?> @@ -86,6 +87,7 @@ if ($type == 'is_page') { + info;?> diff --git a/system/admin/views/custom-field-page.html.php b/system/admin/views/custom-field-page.html.php index 8af5ef9..59a46da 100644 --- a/system/admin/views/custom-field-page.html.php +++ b/system/admin/views/custom-field-page.html.php @@ -5,45 +5,50 @@ $field = array(); $field_file= 'content/data/field/page.json'; if (file_exists($field_file)) { - $field = file_get_contents($field_file, true); + $field = file_get_contents($field_file, true); } ?> - -
-

- -
+ +
+

+ +
+
- - + + - + + -
- +
+

+ +

+
-JSON Output - + ">JSON Output +
-

- + +