D
D
Denis2017-06-05 19:14:13
JavaScript
Denis, 2017-06-05 19:14:13

How to work with statuses in frontend?

Good evening.
Please share your experience of who and how works with statuses in the frontend. For example, there is an order form, it should be displayed for several roles (users), statuses, in the same way, however, each of the roles has its own capabilities for working with this form, different display buttons, inputs, disabled / readonly attributes, etc. ( depending on the status and role of the user).
Maybe there is a unified solution that allows you to work with the form in the frontend, so as not to hard-code if's for different roles, statuses?
Please share how you solve these problems.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question