Commit Graph

83 Commits

Author SHA1 Message Date
Klimov Paul
194577c55e Code style fix 2016-12-26 15:39:33 +02:00
Alexander Makarov
0b9feb28e5 More renaming, removed unnecessary code 2016-12-02 16:59:01 +03:00
Alexander Makarov
edfbab4a6b More renaming and formatting fix 2016-12-02 14:37:13 +03:00
Alexander Makarov
dc294ba56f Renamed variables, changed logic of turning client updates on 2016-12-02 14:30:13 +03:00
Alexander Makarov
ed8acc8e03 #12399 adjustments 2016-12-02 01:44:57 +03:00
a.kompaniets
fb779e3ec6 Fixes #12399: Added ActiveField::addAriaAttributes property for aria-required and aria-invalid attributes rendering 2016-12-02 01:44:34 +03:00
Robert Korulczyk
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
Boudewijn Vahrmeijer
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
Carsten Brandt
11fe407ad0 release version 2.0.10 2016-10-20 14:02:50 +02:00
Robert Korulczyk
eb8809b8e1 Improve yii\widgets\ActiveField::widget() performance (#12669)
See https://github.com/yiisoft/yii2/pull/12632#discussion_r81110938
2016-10-04 23:54:46 +03:00
coderlex
81df45014c Fixed custom widget validation (#12629) (#12632) 2016-09-29 11:58:05 +03:00
Evgeniy Tkachenko
5df0ebceea phpDoc: Update ActiveField::label() 2016-09-02 12:05:33 +03:00
Roman Grinyov
0187c09a84 Cosmetic changes 3 2016-08-28 18:14:14 +03:00
Roman Grinyov
389054dde1 Cosmetic changes 2 2016-08-28 02:17:17 +03:00
Roman Grinyov
a6fa576aab Cosmetic changes 2016-08-27 20:36:32 +03:00
SilverFire - Dmitry Naumenko
623f30324d Added tests for ActiveField::hint(), fixed code formatting 2016-08-22 16:59:09 +03:00
Vladimir Shevchenko
b8c07f6839 Fixes #12009: Do not render "for" field label attribute for active form RadioList and CheckboxList 2016-08-16 01:47:23 +03:00
PowerGamer1
3b2374b543 Fixes #12073: Added the ability to suppress the generation of input hint when it is specified through Model::attributeHints() 2016-08-16 01:09:07 +03:00
Carsten Brandt
10ba47d841 fixed docs in ActiveField 2016-08-08 10:39:28 +02:00
Egor Verbitskiy
2fbd55b634 Fixes #11949: Fixed ActiveField::end generates close tag when it's option['tag'] is null 2016-07-14 12:38:26 +03:00
Carsten Brandt
0895f212c6 improved docs about tag option in HTML options 2016-07-03 10:57:47 +02:00
Aleksei Vesnin
6745bdb65e Fixed yii\widgets\ActiveField to handle inputs AJAX validation with changed ID properly.
Tests for `yii\widgets\ActiveField` with custom input ID.
2016-04-06 23:08:23 +03:00
Daniel Gomez Pan
7dc984d359 Fixed #8779: Automatically set enctype form option when using file input field 2016-03-27 23:47:19 +03:00
githubjeka
9824da5883 update phpDoc of \yii\widgets\ActiveField::error 2016-03-14 15:11:50 +03:00
SilverFire - Dmitry Naumenko
723e3a9850 Updated ActiveField::getInputId PHPDoc, CHANGELOG 2015-12-02 08:24:53 +02:00
Carsten Brandt
13fca3bc54 alternative solution for issue #7627
should cover more cases then #8912. Have not tested it yet.

see #7627
2015-08-03 12:29:43 +02:00
Alexander Makarov
67658cf57d Replaced static with $this in phpdoc since current IDEs are finally able to handle it correctly 2015-05-31 13:39:30 +03:00
Klimov Paul
563deea02c yii\widgets\ActiveField now uses corresponding methods for default parts rendering 2015-05-20 12:35:42 +03:00
Klimov Paul
85ca8c3712 Added ability to specify hints for model attributes 2015-04-17 14:16:28 +03:00
Carsten Brandt
1945738c8d improved and fixed Html helper and ActiveField phpdoc
fixes #7560
2015-03-04 03:51:00 +01:00
Qiang Xue
0eb27981cd Fixes #7440: Added support to automatically set the maxlength attribute for Html::activeTextInput() 2015-02-26 21:45:02 -05:00
Carsten Brandt
30e45a4aea improve documentation about uncheck and unselect in activefield
fixes #7465
2015-02-26 19:06:51 +01:00
justinvoelker
f2523cb5d7 Update ActiveField.php
Update radio() to set $options['label'] to null rather than using unset. Fixes issue #7425.
2015-02-24 21:35:19 -05:00
Qiang Xue
57c298a523 Fixes #7361: The trim validator now works on the client side too 2015-02-22 19:25:06 -05:00
Carsten Brandt
389d9e2fd2 add hint about custom element id and selectors property
to Active Field

fixes #6734
2015-01-04 19:03:46 +01:00
Qiang Xue
f509ed2448 Fixes #6236: No JS scripts should be registered when yii\widgets\ActiveForm::enableClientScript is false 2014-11-26 10:52:10 -05:00
Carsten Brandt
9869e67df8 fixed phpdoc
thanks to @pana1990

close #6060
2014-11-14 23:26:49 +01:00
Qiang Xue
866214e75a Fixes #6018: When setting the encode option via yii\widgets\ActiveRecord::errorOptions, it works the other way around [skip ci] 2014-11-11 21:24:07 -05:00
Qiang Xue
cb90f31cbe Fixes #5702: Parenthesis should be automatically added to Validator::whenClient to avoid js error 2014-10-23 09:18:53 -04:00
Qiang Xue
169a2a39c0 Fixes #5110. 2014-09-19 11:43:55 -04:00
Qiang Xue
93496bf8fd Fixes #5058: yii\helpers\Html::activeCheckbox() and activeRadio() will generate labels by default using the corresponding attribute labels 2014-09-18 12:15:54 -04:00
Qiang Xue
a187d47aec Fixes #5049: ActiveForm::validationDelay should be applied to user types only 2014-09-16 14:40:00 -04:00
Qiang Xue
ae13b0593f Fixes #3410: yii.activeForm.js now supports adding/removing fields dynamically 2014-09-05 23:10:23 -04:00
Qiang Xue
d5077d70b7 Fixes #3738: ActiveField custom error selector not functioning 2014-09-05 14:50:24 -04:00
Qiang Xue
f34b138aab Fixes #4225: Added ActiveForm::validateOnBlur and ActiveField::validateOnBlur 2014-09-03 16:14:54 -04:00
Alex-Code
25c2f9bf85 Made error message encoding configurable for ActiveForm
Updated yii.activeform.js to use the encode option introduced in #4122.
Updated ActiveForm with new option encodeErrorSummary

fixes #4690, close #4691
2014-08-13 00:53:38 +02:00
Qiang Xue
9f155de82d removed the key from the array in the fix for #4371 2014-08-11 23:30:43 -04:00
abrahamy
b7cad9df3d Fixes #4371: Active form client validation wasn't working in case of two models having same named fields
When rendering multiple models in the same ActiveForm if any of the field names in the two models is the same then the corresponding attribute in the yiiActiveForm object in yiiActiveForm.js (ie $('form').data('yiiActiveForm').attributes) of the first rendered model is overwritten by the attribute of the last model causing the client-side validation for the overwritten field not to run at all. Example: given two models Car and Owner with attributes {make, age} and {name, age} then if the Car is rendered first its age attribute will not have any client validation.
2014-08-12 01:38:05 +04:00
Alex-Code
b4ca343bd2 deferred validation
Added support of deferred validation.
2014-07-28 09:54:23 +01:00
Qiang Xue
3405f8e8a4 doc fix [skip ci] 2014-07-05 00:03:03 -04:00