Commit Graph

175 Commits

Author SHA1 Message Date
Serge Postrash
286e8efe9f Updated phpdoc for \yii\widgets\DetailView [ckip ci]
This widget usage is not only restricted with `Model` or associative array (see its `normalizeAttributes()` method)
2014-09-10 21:39:07 +04:00
Carsten Brandt
2b38d6ab33 Merge branch 'master' into Erik-r-2359-formatter-refactored
* master: (22 commits)
  Fixes #4971: Fixed hardcoded table names in `viaTable` expression in model generator
  Fixed test break.
  Fixes #4955: Replaced callbacks with events for `ActiveForm`
  Fix brackets
  Rename `\yii\web\User` component param for consistency
  Html::button() type is `button` by default
  Fix bug in Estonian translation
  Typo fixed inside \yii\rest\CreateAction
  Fixed test break.
  Fixed test case.
  note about validation rules order
  Return a fixtures cleanup in case of a failing test
  Update finnish translation
  skip fixture controller test on HHVM
  Make unit tests cleanup a DB after finish
  Fixes #4945: Added `yii\test\ArrayFixture`
  added array fixture class
  minor doc adjustment [skip ci]
  Fixes #4948. Thanks, @johan162
  Fixes #4947
  ...

Conflicts:
	framework/UPGRADE.md
2014-09-10 19:26:04 +02:00
Carsten Brandt
d82195706f UPGRADE and CHANGELOG notes for the Formatter changes 2014-09-10 17:56:25 +02:00
Qiang Xue
f50f840a55 Fixes #4955: Replaced callbacks with events for ActiveForm 2014-09-09 22:37:27 -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
08d4d89930 Fixes #2914: ActiveForm::fieldConfig will be merged recursively with the $options parameter in ActiveForm::field() 2014-09-05 20:54:05 -04:00
Qiang Xue
155f525e0b Fixes #2380: yii\widgets\ActiveForm will register validation js even if there are not fields inside 2014-09-05 15:08:09 -04:00
Qiang Xue
d5077d70b7 Fixes #3738: ActiveField custom error selector not functioning 2014-09-05 14:50:24 -04:00
Qiang Xue
4ad022c372 Fixes #3240: Added support for assigning an anonymous function to yii\widgets\ActiveForm::fieldConfig 2014-09-05 13:37:52 -04:00
Qiang Xue
f34b138aab Fixes #4225: Added ActiveForm::validateOnBlur and ActiveField::validateOnBlur 2014-09-03 16:14:54 -04:00
Qiang Xue
c0d771f744 Fixes #4640: Added yii\widgets\ActiveForm::beginField() and endField() 2014-08-17 20:58:34 -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
Alexander Makarov
b1e2090083 Fixes #4595: more consistend use of "false" in "don't use" case 2014-08-07 15:58:52 +04:00
Alex-Code
594b57836d Added validation js callbacks
- `beforeValidateAll`
- `afterValidateAll`

fixes #4234, close #4559
2014-08-04 18:06:10 +02:00
Qiang Xue
f74e208103 Merge branch 'deferred-validation' of github.com:Alex-Code/yii2 into Alex-Code-deferred-validation
Conflicts:
	framework/CHANGELOG.md
2014-07-31 11:28:27 -04:00
Carsten Brandt
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
Alex-Code
b4ca343bd2 deferred validation
Added support of deferred validation.
2014-07-28 09:54:23 +01:00
Alexander Makarov
0edd8bc65a Fixed missing and incorrect phpdoc 2014-07-25 17:26:35 +04:00
Thiago Talma
88191bbe5c New callback functions for form validation using Ajax.
close #4436
2014-07-25 09:24:04 +02:00
Qiang Xue
b147e6516d minor CS fixes [skip ci] 2014-07-10 11:59:27 -04:00
Sorokin Victor
504e973f67 Fixes #4241: yii\widgets\Pjax was incorrectly setting container id 2014-07-10 17:30:55 +04:00
Alexander Makarov
374b98e2e4 Fixes #4227: \yii\widgets\LinkPager::$hideOnSinglePage is now true by default 2014-07-09 17:23:47 +04:00
Qiang Xue
3405f8e8a4 doc fix [skip ci] 2014-07-05 00:03:03 -04:00
Carsten Brandt
085f2c0142 gridview and listview use widget ID in base tag 2014-06-27 20:26:26 +02:00
Carsten Brandt
6578cfbdab updated phpdoc and classmap 2014-06-25 18:24:23 +02:00
Carsten Brandt
0d03f720a4 added usage example of ActiveField::widget() 2014-06-25 13:14:03 +02:00
Alexander Makarov
79f9f85ff2 Fixes #4024, Fixes #4028 2014-06-24 02:43:42 +04:00
Dmitry Chernikov
85fd823ee6 Added ability to yii\widgets\Menu to encode each item's label separately (creocoder, umneeq) 2014-06-24 00:34:17 +03:00
Alexander Makarov
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
Dmitry Chernikov
7889d1ee88 Upgrade of the code 2014-06-17 21:34:56 +03:00
Dmitry Chernikov
1909da2a21 re ownTemplate => template 2014-06-17 20:35:40 +03:00
Dmitry Chernikov
7f0427d911 ownTemplate => template 2014-06-17 20:26:16 +03:00
Dmitry Chernikov
b1f71cbf60 yii\widgets\Breadcrumbs enhancement. Allow link to have its ownTemplate 2014-06-17 20:02:12 +03:00
Qiang Xue
0740d2da61 Merge branch 'widgets-activeform-incorrect-js-selector' of github.com:creocoder/yii2 into creocoder-widgets-activeform-incorrect-js-selector
Conflicts:
	framework/CHANGELOG.md
2014-06-13 22:01:47 -04:00
Alexander Kochetov
1b81503d71 \yii\widgets\ActiveForm incorrect js selector for errorSummaryCss property better fix 2014-06-14 02:02:35 +04:00
Alexander Kochetov
4894d66d6e \yii\widgets\ActiveForm incorrect js selector for errorSummaryCss property fixed 2014-06-14 01:28:16 +04:00
Dmitry Chernikov
f27edcc27d Fix Menu bug when using template with encodeLabel => false 2014-06-12 20:30:56 +03:00
Qiang Xue
91cd62be27 Fixes #3715: Fixed the bug that using a custom pager/sorter with GridView may generate two different pagers/sorters if the layout configures two pagers/sorters 2014-06-06 00:34:56 -04:00
Kartik Visweswaran
e90fb534da Masked input widget upgrade fixing #3196
Support contribution credits updated
2014-06-05 11:49:24 +05:30
Carsten Brandt
274b6e41b4 adjusted apidoc for MaskedInput widget 2014-06-04 10:37:50 +02:00
Kartik Visweswaran
b5461a7660 Fix #3196: Masked input widget revamped to use new plugin
Edited Asset Bundle PHP doc header information.
2014-06-03 21:27:51 +05:30
Kartik Visweswaran
8331ff018d Fix #3196: Masked input widget revamped to use new plugin 2014-06-03 19:32:07 +05:30
artur
d2fcbcc0e0 Hide menu container tag when items is empty 2014-05-30 02:19:07 +03:00
artur
5a1702e77c Refactor 2014-05-22 13:40:55 +03:00
artur
6c25675d7e Changed param name 2014-05-22 10:18:06 +03:00
artur
e860f218cf Add param for configuring rendering result with one page 2014-05-22 03:01:58 +03:00
artur
e19737e132 Hide output when only one page exist 2014-05-22 01:55:08 +03:00
Qiang Xue
cb66c92609 Finished caching guide [skip ci] 2014-05-20 00:17:10 -04:00