Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Render Send Invitation Email as a labeled form item to align with other fields

Yuneng Jiang55829c225423
diff --git a/ui/litellm-dashboard/src/components/CreateUserButton.tsx b/ui/litellm-dashboard/src/components/CreateUserButton.tsx
index 5a3c035bd6a..ed5b8f8f8fd 100644
--- a/ui/litellm-dashboard/src/components/CreateUserButton.tsx
+++ b/ui/litellm-dashboard/src/components/CreateUserButton.tsx
@@ -225,21 +225,15 @@ export const CreateUserButton: React.FC<CreateuserProps> = ({
<Input.TextArea rows={4} placeholder="Enter metadata as JSON" />
</Form.Item>
- <div
- style={{
- display: "flex",
- justifyContent: "space-between",
- alignItems: "center",
- marginTop: "10px",
- }}
+ <Form.Item
+ label="Send invitation email"
+ name="send_invite_email"
+ valuePropName="checked"
>
- <Form.Item
- name="send_invite_email"
- valuePropName="checked"
- style={{ marginBottom: 0 }}
- >
- <Checkbox>Send invitation email</Checkbox>
- </Form.Item>
+ <Checkbox />
+ </Form.Item>
+
+ <div style={{ textAlign: "right", marginTop: "10px" }}>
<Button htmlType="submit">Create User</Button>
</div>
</Form>
@@ -376,21 +370,15 @@ export const CreateUserButton: React.FC<CreateuserProps> = ({
</AccordionBody>
</Accordion>
- <div
- style={{
- display: "flex",
- justifyContent: "space-between",
- alignItems: "center",
- marginTop: "10px",
- }}
+ <Form.Item
+ label="Send invitation email"
+ name="send_invite_email"
+ valuePropName="checked"
>
- <Form.Item
- name="send_invite_email"
- valuePropName="checked"
- style={{ marginBottom: 0 }}
- >
- <Checkbox>Send invitation email</Checkbox>
- </Form.Item>
+ <Checkbox />
+ </Form.Item>
+
+ <div style={{ textAlign: "right", marginTop: "10px" }}>
<Button type="primary" icon={<UserAddOutlined />} htmlType="submit">
Invite User
</Button>