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

Changing base layout #129

Open
vsmart opened this issue Jul 25, 2017 · 2 comments
Open

Changing base layout #129

vsmart opened this issue Jul 25, 2017 · 2 comments

Comments

@vsmart
Copy link

vsmart commented Jul 25, 2017

Hi @trenpixster

thanks for this great library! It's been super helpful for me so far.

I'm trying to configure the styling of the addict templates. I can modify the form elements, but how can I change the base layout (addict.html) to use my app's existing base layout (app.html)?

As far as I can tell, using addict.html is hard-coded here... https://github.com/trenpixster/addict/blob/master/lib/addict/controller.ex#L151-L154

Would appreciate any pointers. Thanks.

@trenpixster
Copy link
Owner

That's a good question.. I didn't input any extensibility point there unfortunately. But it makes sense to have it. In the mean time I'd say you could take a peek at the controller implementations and override those routes on your router. Does this make sense for your use case?

@acconrad
Copy link

acconrad commented Dec 6, 2017

seems like this is an issue where the readme should be updated?

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

Successfully merging a pull request may close this issue.

3 participants