diff --git a/index.php b/index.php index 2c5aecb0..0daaa2e8 100644 --- a/index.php +++ b/index.php @@ -209,7 +209,7 @@ function print_add_ticket() class="important">*
- *
-
- +
+
*' : ''; + $required = $v['req'] ? 'required' : ''; + $v['req'] = $v['req'] ? '*' : ''; if ($v['type'] == 'checkbox') { $k_value = array(); @@ -371,9 +375,10 @@ function print_add_ticket() $checked = ''; } - echo '
'; + echo '
'; } + echo '
'; echo '
'; break; @@ -438,6 +443,7 @@ function print_add_ticket() /* Large text box */ case 'textarea': //Clean up multiple dashes or whitespaces + $errorText = $required == 'required' ? 'data-error="'.htmlspecialchars($hesklang['this_field_is_required']).'"' : ''; $formattedId = preg_replace("/[\s-]+/", " ", $v['name']); $formattedId = preg_replace("/[\s_]/", "-", $formattedId); @@ -449,7 +455,9 @@ function print_add_ticket() echo '
-
+
+
+
'; break; @@ -525,7 +533,9 @@ function print_add_ticket() echo '
-
+
+
+
'; break; @@ -566,6 +576,7 @@ function print_add_ticket() /* Default text input */ default: //Clean up multiple dashes or whitespaces + $errorText = $required == 'required' ? 'data-error="'.htmlspecialchars($hesklang['this_field_is_required']).'"' : ''; $formattedId = preg_replace("/[\s-]+/", " ", $v['name']); $formattedId = preg_replace("/[\s_]/", "-", $formattedId); @@ -577,7 +588,9 @@ function print_add_ticket() echo '
-
+
+
+
'; } } diff --git a/language/en/text.php b/language/en/text.php index 752b749b..a08553f6 100644 --- a/language/en/text.php +++ b/language/en/text.php @@ -38,6 +38,7 @@ $hesklang['readonly_custom_field'] = 'Read-only text field'; $hesklang['readonly_custom_field_help'] = 'This input is the same as a text field; however this value cannot be changed, but will be visible to the user.'; $hesklang['navbar_title_url'] = 'Navbar Title URL'; $hesklang['navbar_title_url_help'] = 'Enter the URL you wish to use when a customer (or staff) clicks on the help desk title on the top-left corner of the screen. The URL must begin with http:// or https://.'; +$hesklang['this_field_is_required'] = 'This field is required'; // ADDED OR MODIFIED IN Mods for HESK 2.4.0 $hesklang['sort_by_user_defined_order'] = 'Sort by user-defined order';