3 ms·
Ask HN: Editing relationships in a CRUD app
In a CRUD app how do you deal with editing a item (entity) with a lot of relationships? I'm talking about UI patterns and maybe some tips.
Right now I'm editing the item relationships in a modal window and they are listed on the same page using DataTables (http://datatables.net). I kinda like recreated their commercial editor plugin using Bootstrap modals.
I'm trying to avoid JS as much as possible but it's hard. I have a RESTful API and I would like to render HTML server-side but is not viable for things like this. In the past I used Mustache in a few projects.
What I have right now:
- Company (the item)
- Company contacts
- Company products
- Company events
And more. I'm having a really bad time making it good both in mobile and desktop. Even the bootstrap 3 modal doesn't work 100% on a few devices.
Don't get me wrong, I can make it "work" but I don't feel like it's a good experience.
It's hard to do this as a single dev. Why can't the users just use my API directly! (I'm only half joking hah)