Skip to content

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

@sdweber422

Description

@sdweber422

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions