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

Use gallery-manager widget in bootstrap modal window #59

Open
ArCoLab opened this issue Oct 30, 2018 · 1 comment
Open

Use gallery-manager widget in bootstrap modal window #59

ArCoLab opened this issue Oct 30, 2018 · 1 comment

Comments

@ArCoLab
Copy link

ArCoLab commented Oct 30, 2018

I use renderAjax to load form in modal window. Gallery widget render view (buttons etc..) but not works (don't upload files). It working OK without modal... Please help.

Controller:

public function actionAddAnnounce(){
$announce = new Announces();
return $this->renderAjax('add_announce', compact('announce'));
}

View (add_announce)

$form = ActiveForm::begin(['action' => '/user/add-announce', 'id' => 'new_announce']);
echo GalleryManager::widget(
[
'model' => $announce,
'behaviorName' => 'galleryBehavior',
'apiRoute' => 'user/galleryApi'
]);
ActiveForm::end();

@ArCoLab
Copy link
Author

ArCoLab commented Oct 30, 2018

Just need to add id of ActiveForm parameter in widget...

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

No branches or pull requests

1 participant