-
Notifications
You must be signed in to change notification settings - Fork 71
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
modal #25
Comments
hello @Maxhodges, |
Any progress on this? |
This package for modals is very simple. We like it a lot: You only need to add the a "modal" class to a div wrapper in your template. |
OK here is how I got modals working in a few easy steps First add this excellent modal package to your Meteor projectpeppelg:bootstrap-3-modal package Next create a signin template and add these modal classes
To show your modal call Modal.show from your event handler
example:
To hide the modal, add this onSubmitHook to your AccountsTemplate config
then write a callback to hide your signin/signup form
Modal header/footerIf you want to show the form title in the modal-header section, be sure to set the signin title to empty string in AccountsTemplate.config otherwise {{atForm}} will produce a default title in the modal-body block
then you can just show it yourself in the header @splendido if you like shall I do a pull request and add this to the project readme? |
great work! ...for the PR, since it's bootstrap specific: what about adding all this as an example somewhere around on the wiki? ...perhaps a link to this wiki on the |
since the modal technique above bypasses all the routing, what do you think of creating a separate repo where we rip out all the routing code in order to keep it super lean? |
...lets wait for it and we'll have a number of plugin packages to get routing, i18n, modals, etc... ;-) |
See the modal-forms card on Trello |
Just came across this and tried to use @Maxhodges approach. It sort of works, but if the user commits the login dialog, my (flow) router always jumps to the home page of the application. Suprisingly, it does not do this if I am using the standard full-page login approach. So I am wondering why this additional routing takes place? |
My understanding is that it jumps back to the previous page on login, but see this in guide: "Path for the home route, to be possibly used for redirects after successful form submission." https://github.com/meteor-useraccounts/core/blob/master/Guide.md O |
Thanks for this tip, I have not seen this homeRoutePath. Unfortunately, it can only be set as part of the configuration and not on a per-use base. I will try to set it to "#" to prevent any re-routing. |
i came up with another method to have a bit more control over the post login routing. will post when I'm back at my desk. now on holiday. |
Hey guys, lets have a look at this discussion. My suggestion it to set |
...realizing now the above applies to See this line for See this line for I'll continue this discussion on meteor-useraccounts/flow-routing#12 |
any easyish way to make this work as a modal form?
The text was updated successfully, but these errors were encountered: