Skip to content

Commit 09b09cd

Browse files
committed
Let's do people the solid of showing them the ID somewhere
1 parent f4a41d1 commit 09b09cd

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/plugins/leaderboardGroups.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,15 @@ const CMSAdmin = () => {
6161
action={(typeof editingGroup.id !== "undefined") ? `/team/groups/${editingGroup.id}/` : "/team/groups/"}
6262
method={(typeof editingGroup.id !== "undefined") ? "PATCH" : "POST"} submitRef={formSubmit}
6363
>
64-
<Form.Group label={"Name"}>
65-
<Input placeholder={"Name"} name={"name"} val={editingGroup.name} required />
66-
</Form.Group>
67-
<Form.Group label={"Description"}>
64+
<Form.Row>
65+
<Form.Group label={"Name"}>
66+
<Input placeholder={"Name"} name={"name"} val={editingGroup.name} required />
67+
</Form.Group>
68+
{(typeof editingGroup.id !== "undefined") && <Form.Group label={"Group ID"} htmlFor={"id"}>
69+
<Input val={editingGroup.id} name={"id"} readonly />
70+
</Form.Group>}
71+
</Form.Row>
72+
<Form.Group label={"Description (for admin reference)"}>
6873
<Input placeholder={"Description"} name={"description"} val={""} />
6974
</Form.Group>
7075
<Form.Group label={"Self-assignable on team create?"}>
@@ -73,8 +78,6 @@ const CMSAdmin = () => {
7378
<Form.Group label={"Has its own leaderboard page?"}>
7479
<Checkbox name={"has_own_leaderboard"} val={editingGroup.has_own_leaderboard} />
7580
</Form.Group>
76-
77-
<HR />
7881
</Form>
7982
</Modal> : null
8083
}

0 commit comments

Comments
 (0)