summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/classes
Commit message (Collapse)AuthorAgeFilesLines
* Use unique var names in Input.class.phpPhil Davis2017-02-061-2/+2
| | | | (cherry picked from commit a66177645191359e5ce854d733e9be40ada3535b)
* Form_IpAddress add types remove patternsPhil Davis2016-12-271-3/+24
| | | | | | | | | | | | 1) Add alias and host types to Form_IpAddress with the appropriate hover text. 2) Remove the patterns - the UI of those is not so effective anyway, so leave the validation of input to the back end. 3) Update uses of Form_IpAddress to use the appropriate Alias or Host type as needed. 4) Remove explicit setPattern() from those uses of Form_IpAddress. (cherry picked from commit 45541aae63596ea28aa18c84b65946bce6adbffd)
* IPv6 address can contain a dotPhil Davis2016-11-291-1/+1
| | | | | | | When requiring the entry of an IPv6 address, the regex pattern should still allow a dot, so that an IPv6 address can be entered in the format that has an IPv4-address-like part at the end: aa:bb:cc:dd:ee:ff:1.2.3.4 which is a valid way to choose to specify an IPv6 address. (cherry picked from commit b8678b6385a9ba245e92a06b19cfa397873eef77)
* Revert "Fix #6864 automatically convert IPv6 input to lowercase"Luiz Otavio O Souza2016-11-161-5/+2
| | | | | | This reverts commit d461ff40e364fc0ecc003b9f673cbad7c6a08f2f. (cherry picked from commit 75bc87fe10f30f49a09218820f7bb59e859cb6bb)
* Revert "Fix #6918 Allow aliases with capital letters in rules"Luiz Otavio O Souza2016-11-161-17/+0
| | | | | | This reverts commit 9444a281f051e11d5456cc37b2a3f56fc8a7bc33. (cherry picked from commit 9128641db5c9b6839163948f3f71ad139c7a4625)
* Fix #6918 Allow aliases with capital letters in rulesPhil Davis2016-11-141-0/+17
| | | | | | | | | | Expand the types of Form_IpAddress so that the caller can specify exactly what combination of IPv4, IPv6 address and alias is allowed for the field. Set the appropriate input pattern and hover help text. Only toLowercase() the entered value if it has a ":" in it - i.e. it looks like it is intended to be an IPv6 address (rather than an IPv4 or an alias name).
* Remove "use lowercase" hintPhil Davis2016-11-101-2/+2
| | | | | | | As it is no longer relevant, because the code now automatically converts to lowercase. (cherry picked from commit 6a54698517430760ddcbc84dd0476046d3926b31)
* Fix #6864 automatically convert IPv6 input to lowercasePhil Davis2016-11-101-0/+5
| | | | | | | | | | 1) As the user leaves the field, or presses Save, onChange will fire and convert the input string to lowercase. This saves the user havng to even think about it. 2) Provide some extra text that describes the expected format, to avoid them getting just "Please match the requested format" (cherry picked from commit d461ff40e364fc0ecc003b9f673cbad7c6a08f2f)
* Move copyright from ESF to NetgateRenato Botelho2016-09-0615-15/+15
|
* Code style and commentsPhil Davis2016-08-165-11/+11
| | | | | | No functional change - just making style consistent (cherry picked from commit 9d3e8723171c727cf43338bd8e95ab2bb7e6a66c)
* Improved solution to #6716Stephen Beaver2016-08-151-0/+2
| | | | (cherry picked from commit 0ed3b15981b4451efb11839d6ee7b9acf1ed1d84)
* Some tweaks to improve alignment in table with checkboxNewEraCracker2016-08-031-1/+1
| | | | | | | | | | 1) If a checkbox does not have a description (even if it is empty), layout will be broken as checkbox won't be aligned correctly 2) UPnP checkbox looks better with description instead of help This commit fixes the two issues (cherry picked from commit 1a8e5f2f67fdc18080eeac47dc4ed0bdfacc66b9)
* Allow section header to be omitted by specifying "NOTITLE" as the section title.Stephen Beaver2016-07-181-2/+12
| | | | (cherry picked from commit 9ce54773be5e02235e3be7d2b970f61fbb27ba86)
* Review license / copyright on all files (final round)Renato Botelho2016-07-1515-362/+362
|
* Review license / copyright on all files (1st round)Renato Botelho2016-07-1415-344/+779
|
* Feature #6388 custom GUI preference settings per userPhil Davis2016-06-301-2/+2
|
* Remove a-f from IPv4 address patternPhil Davis2016-06-281-2/+2
| | | | | It seems to me that a through f should not be part of the pattern for the "V4" case. (cherry picked from commit 1f49dd8a3a49b724ded5840c1db6c168ed466aae)
* Fix Bug #6394 - Incorrect Output of TranslationNewEraCracker2016-06-224-4/+9
| | | | | | Apparently gettext() does not behave correctly when passed an empty string, this commit ensures gettext() is called only with non-empty strings (cherry picked from commit 6ae99aba5cab12440d88dd9ddaa6535c3b9b5d82)
* Fixed #6498 by providing new address type argument to Form_IpAddress(). In ↵Stephen Beaver2016-06-211-3/+15
| | | | | | this case it is specified as "V6". (cherry picked from commit 3e4adb7139b4cddbb06a2aba7e0727d1762b35ee)
* Reduce maximum length of string to gettext()NewEraCracker2016-05-201-1/+1
| | | | | | | | This limit is set at 4096 on PHP 5.6: http://lxr.php.net/xref/PHP_5_6/ext/gettext/gettext.c#139 Bug report on forum: https://forum.pfsense.org/index.php?topic=110088.0 (cherry picked from commit 95f46512d9410b38b23d7778cec0bf8610e448cf)
* Experimentally fixed #6327Stephen Beaver2016-05-071-1/+1
| | | | (cherry picked from commit 54fc9503ff550d04d1253c41c1fd49da1b64c07e)
* Translate button textPhil Davis2016-03-141-3/+3
|
* Translate the default submit button textPhil Davis2016-03-111-3/+4
| | | | | Note: This will cause a problem for some code that does comparisons expecting this text to be exactly the string 'Save'. If the user has selected a different language then the button text will be translated and thus will be some different text. That is discussed in forum https://forum.pfsense.org/index.php?topic=108116.0 I will followup with another pull request to fix the things I can find like that.
* Make fa-save the default button icon for 'Save' on all forms. Ticket #5965jim-p2016-03-101-2/+6
|
* Adding {} to if statement.NOYB2016-01-221-1/+2
|
* Form Group - Empty Title GetTextNOYB2016-01-221-1/+2
| | | | | | | | | | | | | | | | | | | | | Don't call gettext with an empty title. There are undoubtedly other places that a check should be done before passing a variable only to a gettext call. Fixes use case of form group class without a title from passing empty var to gettext. Gettext returns header info. when an empty string/var is passed. Perhaps a function should be created for this for consistency. http://php.net/manual/en/function.gettext.php#108594 For groups without a title gettext returns header info. To reproduce the issue select a non English language and open any of the following: Services Load Balancer - edit Diagnostics - Backup/Restore Diagnostics - Status SMART Status - System Logs - log filter and manage log panels (not a comprehensive list)
* classes/Form/Textarea.class.php, setNoWrap, make it work properly on FireFox ↵PiBa-NL2016-01-181-1/+1
| | | | and Chromium
* Put this htmlspecialchars back, I found a better workaround for the ↵jim-p2016-01-171-1/+1
| | | | inconsistent handling of checkboxes in packages.
* Fix inconsistencies in Form_InputSjon Hortensius2016-01-172-4/+4
| | | | | renamed get_type to getType fix capitalisation in getTagName
* Don't run the checkbox label through htmlspecialchars, it breaks several ↵jim-p2016-01-161-1/+1
| | | | packages.
* Don't automatically run strings that are too long through gettext here.jim-p2016-01-161-1/+6
|
* Change method name to setIsRequired() to match other similar methodsStephen Beaver2016-01-061-1/+1
|
* Added new method setRequired() (shortcut for setAttribute("required", true) )Stephen Beaver2016-01-061-0/+7
|
* HTML Compliance - Form Button - HRefNOYB2016-01-051-0/+3
| | | | | The name attribute is obsolete. Consider putting an id attribute on the nearest container instead. The <a> name attribute is not supported in HTML5. Use the id attribute instead.
* Correct "noWrap" in text areas. (Function is not actually used by anyone, ↵Stephen Beaver2016-01-041-1/+1
| | | | but it might as well work just in case.
* Final updates in support of hidden passwordsStephen Beaver2015-12-291-1/+1
|
* Don't display dummy password if configured pwd is emptyStephen Beaver2015-12-282-1/+9
|
* Experimental: Fixed #5693Stephen Beaver2015-12-282-0/+34
| | | | Added new functionality to PHP classes, and used it ONLY in system_advanced_notifications.php -> smtp password
* Move width:auto style to textarea handler in pkg_edit.phpStephen Beaver2015-12-221-3/+1
|
* Merge pull request #2316 from phil-davis/patch-3Stephen Beaver2015-12-221-2/+9
|\
| * HTML Compliance - Form Select 3rd tryPhil Davis2015-12-221-2/+9
| | | | | | | | | | This is a combined version of: https://github.com/pfsense/pfsense/pull/2310 https://github.com/pfsense/pfsense/pull/2315
* | Merge pull request #2295 from NOYB/HTML_Compliance_-_Form_Input_-_PlaceholderStephen Beaver2015-12-221-1/+3
|\ \ | |/ |/|
| * HTML Compliance - Form Input - PlaceholderNOYB2015-12-181-1/+3
| | | | | | | | | | Attribute placeholder not allowed on element select at this point. Attribute placeholder is only allowed when the input type is email, number, password, search, tel, text, or url.
* | Default textarea width to 60 cols.Stephen Beaver2015-12-221-0/+1
| | | | | | | | Use setCols() to override
* | Adds style="width: auto;" attribute to textareas to allow the "cols" ↵Stephen Beaver2015-12-221-0/+1
| | | | | | | | attribute to take effect. Required bu pkg_edit.php and by wizards
* | Reverts change to Form_Selector which was breaking selectors with blank optionsStephen Beaver2015-12-221-2/+1
| |
* | Added support for rows, cols and wrap to Forms_Textarea and to pkg_edit.phpStephen Beaver2015-12-212-0/+21
| |
* | Merge pull request #2298 from NOYB/WebGUI_Left_Column_Labels_HyperStephen Beaver2015-12-211-0/+5
|\ \
| * | WebGUI Left Column Labels HyperNOYB2015-12-191-0/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Touch Screen Usability Annoyance https://forum.pfsense.org/index.php?topic=104135.0 Clicking the labels in the left column selects/activates the first item. This is the perfectly natural place for scrolling with thumb. No big problem really for input fields, but check boxes and buttons are inadvertently selected/toggled resulting in unintended configuration changes. Would be real nice if the labels in the left column were not "active". This commit provides an option in System - General Setup page to enable/disable this "feature". There is probably a better way, but this appears to be functional. For now at least it seems to work for me anyway. Just have to eliminate (null) the for attribute on the group labels so it doesn't have a target.
* | HTML Compliance - Form Group - Label ForNOYB2015-12-212-1/+17
| | | | | | | | The for attribute of the label element must refer to a non-hidden form control.
OpenPOWER on IntegriCloud