LearnersGuild / echo

learning management system
MIT License
3 stars 31 forks source link

Create invite code form will revert to initial role state when clicking submit #1066

Open sdweber422 opened 7 years ago

sdweber422 commented 7 years ago

The create invite code form currently has an initial value for Roles set to 'member'. There are currently four roles for which an invite code can be issued: 'admin', 'staff', 'member', and 'coach'. When another role is entered, and the user clicks CREATE , the Roles input value will show 'member' again, which may cause confusion for the user creating the invite code.

Invite code with 'staff' role invited:

screen shot 2017-07-28 at 9 33 18 am

Upon clicking CREATE, 'member' (the initial state for the form Roles field) will reappear, which may make it unclear as to what role an invite code was created:

screen shot 2017-07-28 at 9 33 58 am

A number of strategies may be employed, the simplest seeming to be making sure the new value remains when clicking CREATE. Another strategy involves implementing a dropdown menu (similar to the Timezone field in the create chapter view (chapter form)). Additionally, the Invite Codes list in the edit chapter view (chapter form) could be modified to show the role information.