Description : If we can show the undelete option in the leave type list view, that would be more user friendly and minimize the undelete limitations.
Current behavior has the following usability issues :
1.The new user don't know about undelete option.He may knows about this feature when duplicating the deleted leave type name.
2.undelete option has following limitations.user can undelete only the recently deleted leave type with same name.
1.Create and delete a leave type as "Casual". we will assume leave type ID is LT001
2.Now try to create another leave type as "Casual", system will show the undelete option.
3.If user click on "Yes", system will undelete the leave type LT001.
4.If he click on "No", system will create a new leave type as "Casual" and leave type ID may be vary as "LT002".
5.Now user cannot undelete the LT001-Casual leave type even after delete the newly created LT002 Casual Leave Type.
(This can be happen mistakenly by users)
1.Need to show deleted leave type with deleted postfix as Casual (Deleted) and need to show delete and undelete option in the leave types list view as link. (meanwhile need to handle leave type name duplication issue also)
E.G:- Casual (deleted) undelete link
Annual Delete link