Budibase is an open-source low-code platform for creating internal apps in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s 🚀
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
962 B

<script>
import { Input, Select } from "@budibase/bbui"
export let values
export let errors
export let touched
</script>
<h2>Create your first User</h2>
<div class="container">
<Input
bind:value={$values.email}
on:change={() => ($touched.email = true)}
label="Email"
placeholder="Email"
type="email"
error={$touched.email && $errors.email} />
<Input
bind:value={$values.password}
on:change={() => ($touched.password = true)}
label="Password"
placeholder="Password"
type="password"
error={$touched.password && $errors.password} />
<Select
bind:value={$values.roleId}
label="Role"
options={[{ label: 'Admin', value: 'ADMIN' }, { label: 'Power User', value: 'POWER_USER' }]}
getOptionLabel={option => option.label}
getOptionValue={option => option.value}
error={$errors.roleId} />
</div>
<style>
.container {
display: grid;
grid-gap: var(--spacing-xl);
}
</style>