magv/schedule — comment on commit 9fdfde08bab7fc96637776c1407b45973f02fb26
File: static/tmpl/project.html line 29
By magv:

I see how you unified editing and creating, and this does save some lines in this case, but:
1) This will lead to a call to /api/rooms/{{pid}}/new, which is bogus;
2) Over time edit-room.html will need to display slightly different content depending on whether you add or edit the room (for example you might want to display all the courses that can be taught in this room, if the room isn't new); you'll end up wrapping edit-room.html in an ever-growing if/then/else clause, which is worse than having separate files.

I did a similar trick in another project, and it turned out to be a bad decision.

Please use separate paths and templates for editing and creating.