addict icon indicating copy to clipboard operation
addict copied to clipboard

Changing base layout

Open vsmart opened this issue 7 years ago • 2 comments

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.

vsmart avatar Jul 25 '17 19:07 vsmart

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?

trenpixster avatar Jul 29 '17 19:07 trenpixster

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

acconrad avatar Dec 06 '17 21:12 acconrad