summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/classes
Commit message (Collapse)AuthorAgeFilesLines
* Fix anchor tag locationSteve Beaver2017-06-081-1/+1
|
* Improve commentSteve Beaver2017-06-011-2/+2
|
* Use the section ID as an anchor so that hyperlinks can jump directly to that ↵Steve Beaver2017-06-011-4/+19
| | | | | | | sectiom e.g.: $section = new Form_Section("My section", "a_here"); then: https://firewall/system_somepage.php#a_here
* Only use sprintf in setHelp() if more than one argument is receivedSteve Beaver2017-02-082-2/+12
| | | | This should eliminate all the issues caused by packages with embedded '%' in their text
* Merge pull request #3484 from phil-davis/sethelp-emptyRenato Botelho2017-02-075-8/+19
|\
| * Do not pass empty string to gettextPhil Davis2017-02-065-8/+19
| |
* | Use unique var names in Input.class.phpPhil Davis2017-02-061-2/+2
|/
* COnvert the setHelp method(s) to accept conventioanl printf style argument ↵Steve Beaver2017-02-023-22/+21
| | | | lists. e.g.: setHelp("%d interfaces have been detected", $numIfs);
* Refinement to #7083Steve Beaver2017-01-201-1/+3
| | | | Provides setRequired() Javascript function to facilitate making an input required or not dynamically
* Fixed #7083Steve Beaver2017-01-191-4/+16
| | | | | | | | | | | | | | When composing an element with a form.class or via XML, prepend a '*' to the title to indicate a required field. This will cause the "element-required" class to be added to the label. pfSense.css contains the style associated with that class. (Currently a custom underline). e.g.: $section->addInput(new Form_Input( 'name', '*Name', 'text', $pconfig['name'] ))->setPattern('[a-zA-Z0-9_]+')->setHelp('The name of the alias may only consist '. 'of the characters "a-z, A-Z, 0-9 and _".');
* Form_IpAddress add types remove patternsPhil Davis2016-12-031-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.
* IPv6 address can contain a dotPhil Davis2016-11-261-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.
* Revert "Fix #6864 automatically convert IPv6 input to lowercase"Luiz Otavio O Souza2016-11-151-5/+2
| | | | This reverts commit d461ff40e364fc0ecc003b9f673cbad7c6a08f2f.
* Revert "Fix #6918 Allow aliases with capital letters in rules"Luiz Otavio O Souza2016-11-151-17/+0
| | | | This reverts commit 9444a281f051e11d5456cc37b2a3f56fc8a7bc33.
* 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-10-201-2/+2
| | | | | As it is no longer relevant, because the code now automatically converts to lowercase.
* Fix #6864 automatically convert IPv6 input to lowercasePhil Davis2016-10-201-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"
* 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
* Improved solution to #6716Stephen Beaver2016-08-151-0/+2
|
* Merge pull request #3056 from NewEraCracker/design-tweaksStephen Beaver2016-08-031-1/+1
|\
| * Some tweaks to improve alignment in table with checkboxNewEraCracker2016-07-131-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
* | Allow section header to be omitted by specifying "NOTITLE" as the section title.Stephen Beaver2016-07-181-2/+12
| |
* | Move to Apache License 2.0Renato Botelho2016-07-1515-615/+135
| |
* | 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
|/
* Merge pull request #3018 from phil-davis/usersettingsChris Buechler2016-06-301-2/+2
|\
| * Feature #6388 custom GUI preference settings per userPhil Davis2016-06-231-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.
* Merge pull request #3011 from NewEraCracker/redmine-6394Stephen Beaver2016-06-224-4/+9
|\
| * Fix Bug #6394 - Incorrect Output of TranslationNewEraCracker2016-06-194-4/+9
| | | | | | | | Apparently gettext() does not behave correctly when passed an empty string, this commit ensures gettext() is called only with non-empty strings
* | 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-171-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
* Experimentally fixed #6327Stephen Beaver2016-05-071-1/+1
|
* 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
|
OpenPOWER on IntegriCloud