trenpixster / addict

User management lib for Phoenix Framework
MIT License
645 stars 99 forks source link

Changing base layout #129

Open vsmart opened 7 years ago

vsmart commented 7 years ago

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 commented 7 years ago

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 commented 6 years ago

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