Giter Club home page Giter Club logo

Comments (18)

barseghyanartur avatar barseghyanartur commented on June 30, 2024 1

@ababic:

Firstly - thanks for support!

It's preferred (remember: DRY). It worked fine with DjangoCMS, FeinCMS and Mezzanine integration.

Look, for instance here it's done as follows:

So, the internal method _process does everything for you.

But, if wagtail is different you are free to do it the way it's done in wagtail. I'll probably make some modifications later to make it as DRY as possible.

from django-fobi.

gfranxman avatar gfranxman commented on June 30, 2024 1

Fobi is pretty incredible. I'm also looking to use it with wagtail and am willing to help. It looks like this has stalled. What's the best way to get started?

from django-fobi.

barseghyanartur avatar barseghyanartur commented on June 30, 2024 1

@ababic:

Thank you! Your code was a good starting point.

from django-fobi.

dwasyl avatar dwasyl commented on June 30, 2024 1

@barseghyanartur I haven't had a chance yet, hoping to give it a go in the next couple of days.

from django-fobi.

ababic avatar ababic commented on June 30, 2024

So, I guess my first question is: Is it a requirement that form handling itself is done via fobi.integration.processors.IntegrationProcessor? And if so, what would be your preferred approach for adding additional items to the context?

from django-fobi.

ababic avatar ababic commented on June 30, 2024

Hi @barseghyanartur. Am i correct in thinking that a template chosen for the form_template_name field should just be responsible for rendering the 'form' part in a view, which can then be output anywhere in a custom template?

And does that differ for the success_page_template_name field? Is that template supposed to be responsible for rendering the entire page/view, or just part of one?

Thanks

from django-fobi.

barseghyanartur avatar barseghyanartur commented on June 30, 2024

@ababic:

Check this:

from django-fobi.

dwasyl avatar dwasyl commented on June 30, 2024

@ababic Did you ever get anywhere with Wagtail integration? I'm hitting a wall with wagtailforms and this would be a great way to get around that.

from django-fobi.

barseghyanartur avatar barseghyanartur commented on June 30, 2024

@dwasyl:

FYI, contributions are much appreciated. I don't have wagtail experience and at the moment I'm too much busy with resurrection of another package of mine (django-dash), which I left unmanaged way too long. Thus, I don't have time for it yet (unless it arrives as a sponsored feature request).

In any case, work on wagtail integration shall be continued based on the wagtail/integration branch.

from django-fobi.

barseghyanartur avatar barseghyanartur commented on June 30, 2024

@gfranxman:

I'm gonna do a tiny release today and then I'll sync the wagtail/integration branch with master.

Do you have wagtail experience? Some work has already been done (although you may throw it all away, if you think it doesn't make sense).

Just as in case of DjangoCMS or FeinCMS, the contrib package should provide plugins for integration with CMS. It may have templates as well, although not necessarily.

There should be a working example. In case of DjangoCMS and FeinCMS I integrated it inside the simple project. In case of Mezzanine, the changes were too much, so I use a dedicated mezzanine_example project.

I seemed to me it makes sense to do the same with wagtail.

from django-fobi.

barseghyanartur avatar barseghyanartur commented on June 30, 2024

@gfranxman:

I have also included wagtaildemo integration project (as a git sub-module), which I started on about a half year ago.

from django-fobi.

barseghyanartur avatar barseghyanartur commented on June 30, 2024

@gfranxman:

FYI, I'm almost done with wagtail integration. Do you think you could take over the testing part?

from django-fobi.

gfranxman avatar gfranxman commented on June 30, 2024

from django-fobi.

barseghyanartur avatar barseghyanartur commented on June 30, 2024

@gfranxman:

The wagtail/integration branch seems to work for me.

See the git-submodule wagtaildemo.

Wagtail demo seems to be based on bootstrap3, so I used bootstrap3 theme there as well.

See the screen-shots below.

Fobi form page view

fobi_form_page_wagtail_demo_-_2017-06-15_02 14 01

Fobi form submitted view
fobi_form_page_wagtail_demo_-_2017-06-15_02 14 19

Wagtail admin - fobi form page edit view
wagtail_-editing_fobi_form_page_fobi_form_page-_2017-06-15_02 16 06

Wagtail admin - create a page view
wagtail_-_create_a_page_in_welcome_to_your_new_wagtail_site _-_2017-06-15_02 16 27

from django-fobi.

barseghyanartur avatar barseghyanartur commented on June 30, 2024

@ababic, @dwasyl:

Could you, guys, also do some tests?

from django-fobi.

barseghyanartur avatar barseghyanartur commented on June 30, 2024

Any remarks yet?

from django-fobi.

ababic avatar ababic commented on June 30, 2024

@barseghyanartur I've got too much on right now I'm afraid. Trying to get a lot of things tied up before I go on holiday.

from django-fobi.

barseghyanartur avatar barseghyanartur commented on June 30, 2024

I merged this branch into master. Version 0.12 has Wagtail support (yet experimental).

This ticket is closed. Feel free to open a new issue if needed.

from django-fobi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.