raytha
raytha copied to clipboard
Content Items > Create/Edit views can be refactored
This code: https://github.com/RaythaHQ/raytha/blob/main/src/Raytha.Web/Areas/Admin/Views/ContentItems/Create.cshtml
Anytime there is a lot of if / else-if with hard-coded values feels like a code smell.
We should evaluate how we can simplify the Create / Edit html. It's an important piece of code, especially if we plan to add more Field Types later on.