Form - introduce MultiCheckbox(+Group) #142
Merge pull request #165 from Bouwdie/services_dhcp_relay
Covnert services_dhcp_relay + bugfix in IpAddress
Remove 'form-control' class from file inputs
Refs. #180
Added fix in IpAddress to check if a mask is set to prevent a method call on a non object.Migrated form.Moved server input to an array form value.
ensure gettext and htmlspecialchars are correctly called
system_authservers - fix toggle by making it explicit fixes #108
also allow calling toggles without any arguments
Prepare for different width, make widths static
refs #141
IpAddress - set correct validationpattern, toggle mask based on family
IpAddress - move from max mask=32 to 128, removed method-default @ fw_edit
Input - for type=number, default to min=1 & step=1
Group - add support for $params in setHelp
Group - only push placeholder if Input doesn't have it yet
Input - introduce hasAttribute method
refs #56
Bugfix; textarea needs form-control class too
Introduce Group::enableDuplication and Input::setIsRepeated
also fix label-target, was based on name but should be ID instead. Alsomake ID unique to facilitate functionality
refs #45
Multiple Inputs in group = copy Title to placeholder
fixes #56
IpAddress - make range go down instead of up
Input - better chaining plus added setPattern, IpAddress - chaining fix
replace Input->column methods with generic Element plus fixes
Form.class - fix adding offset to submit buttonCheckbox - add class to column, not input. Fix displayAsRadio returnElement - no longer abstract, used as a generic element in Input
fixes #43, refs #37
refactor attributes from Input to Element to make it a bit more generic
fixes #37, refs #21
Merge branch 'form-element' of https://github.com/psophis/pfsense into psophis-form-element
Proof of concept for Form_IpAddress that shows a mask-selector too
refs #23
Move attribute to Form_Element
- Removes redundant code- Adds the ability to remove attributes- Can now add attributes to Form- getHtmlAttribute() returns all attributes including class
Conflicts: usr/local/www/classes/Form/Button.class.php usr/local/www/classes/Form/Select.class.php
Select - fix selected for multiple (again), correct order in js
Button - fix title when not <a>, Input - no need for tempvar
Add copyright headers to Form classes
Minor fixes in forms, introduce Textarea
Button - make sure we correctly escape link & textSelect - with multiple selected values; look at keys instead of valuesStaticText - switch Input::__construct argsTextarea - introduce
Return object after instantiation
Fix Form_Section so you can add classes
Make it possible to add multiple classes at once
Fix $title
Button - renamed parameter, put $title into value attribute
refs #11
clarify Button, centralize A vs INPUT logic
refs b125fab2ba
Introduce Form_Button, which can morph into <a class=btn>
fixes #11
After instantiation return object. Return object after setWidth.
Major change: require caller to specify name of inputs
no longer do we automatically determine an input-name; it meant a lot ofbackend-changes (or forceName calls). This commit fixes all occurencesexcept for firewall_rules_edit
refs #16
Merge branch 'bootstrap' of github.com:SjonHortensius/pfsense into bootstrap
Replaced addSubmit by addGlobal, which will be used for hidden inputs
Group - add support for additional classes by using Element::getHtmlClassInput - if we have no columnClasses or help, don't wrap ourself in DIV
Merge pull request #15 from SanderVanLeeuwen/bootstrap
Pass checkbox value to parent constructor
correct 2 typos
Form_Input - forceName should actually use parameterfirewall_rules_edit - add Inputs to Section, not form
Initial version of converted firewall_rules_edit
Select - update name to name[] when multiple=true
Form_Select - handle selected values
Support data-toggle=disable
Checkbox - moved call to better locationSelect - use parent:: for attributesInput - add support for attributes without valuepfSense.js - implement data-toggle=disablesystem_adv_admin - set disabled state on certificate
Don't treat >name special, just put it in attr; fixes Select.id
Select - name is no longer special, use $attr and get a free IDCheckbox - make displayAsRadio return itself for chainingInput - move name to attr; plus remove support for input without $title...
Add support for sprintf to setHelp
clean - fix typo in php-end-tag cleanerInput - support sprintf parameterSelect - put option-names through gettext
Add id attribute to input elements
Fix name attr for Select, implement Checkbox::displayAsRadio
final touches on Forms
system - removed trailing unused form-htmlForm - set proper width for submit-button columnElement - support returning raw-list for InputsGroup,Input - renamed getColumnWidth to getWidthInput - make setWidth consistent with Form->setWidth, directly add...
finalized Form classes, allowed add/removeClass on all elements
+ add overloadable submit button
whitespace changes; renamed classes to Form_ prefix