headplane/app/routes/users/dialogs/add.tsx

26 lines
650 B
TypeScript
Raw Normal View History

2024-12-31 10:30:14 +05:30
import Code from '~/components/Code';
import Dialog from '~/components/Dialog';
import Input from '~/components/Input';
2024-05-15 21:52:19 -04:00
export default function Add() {
2024-05-15 21:52:19 -04:00
return (
<Dialog>
2024-12-31 10:30:14 +05:30
<Dialog.Button>Add a new user</Dialog.Button>
2024-05-15 21:52:19 -04:00
<Dialog.Panel>
<Dialog.Title>Add a new user</Dialog.Title>
<Dialog.Text className="mb-8">
Enter a username to create a new user. Usernames can be addressed when
managing ACL policies.
</Dialog.Text>
<input type="hidden" name="_method" value="create" />
<Input
isRequired
name="username"
label="Username"
placeholder="my-new-user"
/>
2024-05-15 21:52:19 -04:00
</Dialog.Panel>
</Dialog>
2024-12-31 10:30:14 +05:30
);
2024-05-15 21:52:19 -04:00
}