[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [BP][FIX] Parsing plugins' data to HTML before rendering into the WYSIWYG editor...

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68ef66e3cd56b_2c1f4534849879@gitlab-sidekiq-low-urgency-cpu-bound-v2-646f46c745-sr2hx.mail>

ushindi bienvenu pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
dc6d21ef by David Maene at 2025-10-15T09:11:51+00:00
[BP][FIX] Parsing plugins' data to HTML before rendering into the WYSIWYG editor...
---
* [FIX] UI/UX Clicking preview while creating a blogpost is showing Please enter a valide date when day value is greater than 12
---
* Removed the date class on inputs to prevent it from being used as a rule in input validation

* Loop on 'publish_' fields

* Class submission date for formatting in HtmlSelectDate.php | HtmlSelectTime.php

* Avoiding date as rule in tiki-blog_post.tpl

* Preventing date as rule in tiki-edit_submission.tpl

* [FIX] UI/UX Clicking preview while creating a blogpost is showing Please enter a valid [....]. for values grater than 12

* Added dynamic day validation method based on selected month and year

* RMV date in the class list to prevent it from being taken as a default rule in form validation

* RMV date in the class list to prevent it from being taken as a default rule in form validation

See merge request tikiwiki/tiki!7844

See merge request tikiwiki/tiki!8474

- - - - -


3 changed files:

- lib/smarty_tiki/FunctionHandler/HtmlSelectDate.php
- lib/smarty_tiki/FunctionHandler/HtmlSelectTime.php
- themes/base_files/scss/_tiki-miscellaneous_global.scss


Changes:

=====================================
lib/smarty_tiki/FunctionHandler/HtmlSelectDate.php
=====================================
@@ -222,7 +222,7 @@ class HtmlSelectDate extends Base
                 $month_values[$i] = $tikidate->format($month_value_format, true);
             }
 
-            $month_result .= '<select class="form-control date" name=';
+            $month_result .= '<select class="form-control date-time-selector-field" name=';
             if (null !== $field_array) {
                 $month_result .= '"' . $field_array . '[' . $prefix . 'Month]"';
             } else {
@@ -264,7 +264,7 @@ class HtmlSelectDate extends Base
                 $day_values[] = sprintf($day_value_format, $i);
             }
 
-            $day_result .= '<select class="form-control date" name=';
+            $day_result .= '<select class="form-control date-time-selector-field" name=';
             if (null !== $field_array) {
                 $day_result .= '"' . $field_array . '[' . $prefix . 'Day]"';
             } else {
@@ -320,7 +320,7 @@ class HtmlSelectDate extends Base
                     array_unshift($years, $year_empty);
                     array_unshift($yearvals, '');
                 }
-                $year_result .= '<select class="form-control date" name="' . $year_name . '"';
+                $year_result .= '<select class="form-control date-time-selector-field" name="' . $year_name . '"';
                 if (null !== $year_size) {
                     $year_result .= ' size="' . $year_size . '"';
                 }


=====================================
lib/smarty_tiki/FunctionHandler/HtmlSelectTime.php
=====================================
@@ -55,7 +55,7 @@ class HtmlSelectTime extends Base
         $minute_empty = null;
         $second_empty = null;
         $all_empty = null;
-        $class = 'form-control date';
+        $class = 'form-control date-time-selector-field';
 
         extract($params);
         if (! empty($all_empty)) {


=====================================
themes/base_files/scss/_tiki-miscellaneous_global.scss
=====================================
@@ -434,7 +434,8 @@ span.btn-link {
 }
 
 //date picker dropdowns
-select.form-control.date {
+// date class renamed to date-time-selector-field to avoid conflict with jQuery validation date class
+select.form-control.date-time-selector-field {
     width: auto;
     display: inline;
 }



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/dc6d21ef50c6ca3069ccd95397880db6397fa8f6

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/dc6d21ef50c6ca3069ccd95397880db6397fa8f6
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.