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]

Move Send Invitation Email field directly below User Email in both forms

Yuneng Jianga7c947f9dd57
diff --git a/ui/litellm-dashboard/src/components/CreateUserButton.tsx b/ui/litellm-dashboard/src/components/CreateUserButton.tsx
index ed5b8f8f8fd..cdfe9fa36e3 100644
--- a/ui/litellm-dashboard/src/components/CreateUserButton.tsx
+++ b/ui/litellm-dashboard/src/components/CreateUserButton.tsx
@@ -202,6 +202,13 @@ export const CreateUserButton: React.FC<CreateuserProps> = ({
<Form.Item label="User Email" name="user_email">
<TextInput placeholder="" />
</Form.Item>
+ <Form.Item
+ label="Send invitation email"
+ name="send_invite_email"
+ valuePropName="checked"
+ >
+ <Checkbox />
+ </Form.Item>
<Form.Item label="User Role" name="user_role">
<Select2>
{possibleUIRoles &&
@@ -225,14 +232,6 @@ export const CreateUserButton: React.FC<CreateuserProps> = ({
<Input.TextArea rows={4} placeholder="Enter metadata as JSON" />
</Form.Item>
- <Form.Item
- label="Send invitation email"
- name="send_invite_email"
- valuePropName="checked"
- >
- <Checkbox />
- </Form.Item>
-
<div style={{ textAlign: "right", marginTop: "10px" }}>
<Button htmlType="submit">Create User</Button>
</div>
@@ -284,6 +283,13 @@ export const CreateUserButton: React.FC<CreateuserProps> = ({
<Form.Item label="User Email" name="user_email">
<Input />
</Form.Item>
+ <Form.Item
+ label="Send invitation email"
+ name="send_invite_email"
+ valuePropName="checked"
+ >
+ <Checkbox />
+ </Form.Item>
<Form.Item
label={
<span>
@@ -370,14 +376,6 @@ export const CreateUserButton: React.FC<CreateuserProps> = ({
</AccordionBody>
</Accordion>
- <Form.Item
- label="Send invitation email"
- name="send_invite_email"
- valuePropName="checked"
- >
- <Checkbox />
- </Form.Item>
-
<div style={{ textAlign: "right", marginTop: "10px" }}>
<Button type="primary" icon={<UserAddOutlined />} htmlType="submit">
Invite User