Wiki articles tagged with "input"

Showing 1-6 of 6 items.

Save or Update Multiple related model values in one Tabular input form

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?

1 0
1 follower
Viewed: 41 533 times
Version: 1.1
Category: Tutorials

FORM with GET method causes repeated stacking of URL Parameters

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by toph toph.

// In Yii 1.x $form = $this->beginWidget('CActiveForm', [

'id' => 'order-search-form',
'method' => 'get',

]); echo $form->textInput($searchModel, 'id'); echo CHtml::submitButton('Find', ['class' => 'btn btn-primary']); $this->endWidget(); `

7 2
41 followers
Viewed: 64 437 times
Version: all
Category: Tips

Tabular Input, Validating and Saving related models

Created 11 years ago by Xavier John Xavier John, updated 11 years ago by hasanavi hasanavi.

This tutorial shows how to use a model to save and validate related (MANY_MANY) models.

4 0
16 followers
Viewed: 44 434 times
Version: 1.1
Category: Tutorials

Radio Button List with enum values for column of type ENUM >+> incorporate into giix

Created 13 years ago by pckabeer pckabeer, updated 13 years ago by pckabeer pckabeer.

Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue').
We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a Radio Button List, which has the enum values as options.
This is a rewrite of c@cba in the wiki article of [enumDropdownList](http://www...

6 0
3 followers
Viewed: 26 568 times
Version: 1.1
Category: How-tos

Drop down list with enum values for column of type ENUM >+> incorporate into giix

Created 13 years ago by c@cba c@cba, updated 11 years ago by nsanden nsanden.

Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue').
We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a drop down list, which has the enum values as options.
The main code was contributed by zaccaria in the forum (see [this post](...

10 0
11 followers
Viewed: 53 677 times
Version: 1.1
Category: How-tos

javascript + tabular input

Created 14 years ago by zaccaria zaccaria, updated 13 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

If you tried this extension with success, maybe you thought how to do it without page submission or ajax calls.

13 1
25 followers
Viewed: 40 748 times
Version: 1.1
Category: How-tos