Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content Items > Create/Edit views can be refactored #78

Open
apexdodge opened this issue Feb 27, 2023 · 0 comments
Open

Content Items > Create/Edit views can be refactored #78

apexdodge opened this issue Feb 27, 2023 · 0 comments

Comments

@apexdodge
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant