summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/interfaces_groups_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-01-23 20:31:29 +0545
committerGitHub <noreply@github.com>2017-01-23 20:31:29 +0545
commit8c1649957e644dc50af366c4a3c7f7108e92837d (patch)
tree6f9dc1c837837ac3bed006b342c2e02eccd49f08 /src/usr/local/www/interfaces_groups_edit.php
parent351ef3ef2ac1bbcfb0643a5efc46a3970d06d78c (diff)
downloadpfsense-8c1649957e644dc50af366c4a3c7f7108e92837d.zip
pfsense-8c1649957e644dc50af366c4a3c7f7108e92837d.tar.gz
Interface groups setHelp message
Mention that it is not allowed to end in a digit.
Diffstat (limited to 'src/usr/local/www/interfaces_groups_edit.php')
-rw-r--r--src/usr/local/www/interfaces_groups_edit.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr/local/www/interfaces_groups_edit.php b/src/usr/local/www/interfaces_groups_edit.php
index 8ebc202..dd5e6de 100644
--- a/src/usr/local/www/interfaces_groups_edit.php
+++ b/src/usr/local/www/interfaces_groups_edit.php
@@ -56,6 +56,7 @@ if (isset($id) && $a_ifgroups[$id]) {
$interface_list = get_configured_interface_with_descr();
$interface_list_disabled = get_configured_interface_with_descr(false, true);
$ifname_allowed_chars_text = gettext("Only letters (A-Z), digits (0-9), '-' and '_' are allowed.");
+$ifname_no_digit_text = gettext("The group name cannot end with a digit.");
if ($_POST) {
@@ -79,7 +80,7 @@ if ($_POST) {
}
if (preg_match("/[0-9]$/", $_POST['ifname'])) {
- $input_errors[] = gettext("Group name cannot end with digit.");
+ $input_errors[] = $ifname_no_digit_text;
}
/*
@@ -209,7 +210,7 @@ $section->addInput(new Form_Input(
'text',
$pconfig['ifname'],
['placeholder' => 'Group Name', 'maxlength' => "16"]
-))->setWidth(6)->setHelp($ifname_allowed_chars_text);
+))->setWidth(6)->setHelp($ifname_allowed_chars_text . " " . $ifname_no_digit_text);
$section->addInput(new Form_Input(
'descr',
OpenPOWER on IntegriCloud