Closed hafeezminhas closed 1 year ago
All data entry forms should implement the following states:
isEditable
isEditable
is false when the user has not completed the 'Form Selector'. When false, the form fields are disabled and cannot be editedisEditable
is true when a the user has completed the 'From Selector'. When true the form fields are enabled and can be editedisModified
isModified
is false when the form fields are either empty or contain data from the database that has not been changed. When false, both the form fields and the form selector are both enabled - the user can either modify the data OR change form by altering the form selectorisModified
is true when the user has altered the data in the form. When true, the form selector should be disabled until the user either saves their changes or cancels the edit. When isModified
is true, isEditable
will also be true - a form can only change to isEditable
being false when it no longer contains changes.isEditable
= false)stationelement
table. This is consistent with the current behaviour of Climsoft. Stations and element can be selected in any orderform_daily2
table. The choice has no impact on form valuesAdditional complexity can be added after all of the above is implemented (@isedwards to add more details in comments below)
The additional complexity includes:
DataEntryModule Scaffolding DataEntryModule Routing & Services DataEntryBaseComponent DataEntry Tab based navigation DataEntry DailyForm2 Implementation