Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editable is not POST to Active form action #43

Closed
yoyhosoft opened this issue Mar 17, 2015 · 1 comment
Closed

Editable is not POST to Active form action #43

yoyhosoft opened this issue Mar 17, 2015 · 1 comment
Labels

Comments

@yoyhosoft
Copy link

My Code in "/manage/shop/index"
'shop-form', 'action' => ['/manage/shop/update'], 'options' => ['class' => 'form-horizontal'], 'fieldConfig' => [ 'template' => "{label}\n

{input}
\n
{error}\n{hint}
", 'labelOptions' => ['class' => 'col-lg-3 control-label'], ], 'method'=>'post', 'enableAjaxValidation' => true, 'enableClientValidation' => false, ]); ?>
'name', 'value' => $model->name, 'header' => 'Name', 'size'=>'md', 'options' => ['class'=>'form-control', 'placeholder'=>'Enter shop name...'], ]); ?>

When i click Apply, It's request GET to url /manage/shop/index

Also I read you demo page and document many time.

@kartik-v
Copy link
Owner

Your code will not work and is incorrect - since its causing an INVALID HTML due to nested forms and will be treated as invalid HTML by browsers.

Note that Editable widget generates its own FORM tag and inputs inside - so you should NEVER embed a editable widget inside another form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants