|
|
|
@ -57,78 +57,76 @@ |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<div class="container"> |
|
|
|
<Layout noPadding> |
|
|
|
<div class="intro"> |
|
|
|
<Heading size="M">General</Heading> |
|
|
|
<Body> |
|
|
|
General is the place where you edit your organisation name, logo. You |
|
|
|
can also configure your platform URL as well as turn on or off |
|
|
|
analytics. |
|
|
|
</Body> |
|
|
|
<Layout> |
|
|
|
<Layout gap="XS" noPadding> |
|
|
|
<Heading size="M">General</Heading> |
|
|
|
<Body> |
|
|
|
General is the place where you edit your organisation name, logo. You can |
|
|
|
also configure your platform URL as well as turn on or off analytics. |
|
|
|
</Body> |
|
|
|
</Layout> |
|
|
|
<Divider size="S" /> |
|
|
|
<Layout gap="XS" noPadding> |
|
|
|
<Heading size="S">Information</Heading> |
|
|
|
<Body size="S">Here you can update your logo and organization name.</Body> |
|
|
|
</Layout> |
|
|
|
<div class="fields"> |
|
|
|
<div class="field"> |
|
|
|
<Label size="L">Organization name</Label> |
|
|
|
<Input thin bind:value={$organisation.company} /> |
|
|
|
</div> |
|
|
|
<Divider size="S" /> |
|
|
|
<div class="information"> |
|
|
|
<Heading size="S">Information</Heading> |
|
|
|
<Body>Here you can update your logo and organization name.</Body> |
|
|
|
<div class="fields"> |
|
|
|
<div class="field"> |
|
|
|
<Label size="L">Organization name</Label> |
|
|
|
<Input thin bind:value={$organisation.company} /> |
|
|
|
</div> |
|
|
|
<div class="field logo"> |
|
|
|
<Label size="L">Logo</Label> |
|
|
|
<div class="file"> |
|
|
|
<Dropzone |
|
|
|
value={[file]} |
|
|
|
on:change={e => { |
|
|
|
file = e.detail?.[0] |
|
|
|
}} |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="field logo"> |
|
|
|
<Label size="L">Logo</Label> |
|
|
|
<div class="file"> |
|
|
|
<Dropzone |
|
|
|
value={[file]} |
|
|
|
on:change={e => { |
|
|
|
file = e.detail?.[0] |
|
|
|
}} |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<Divider size="S" /> |
|
|
|
<div class="analytics"> |
|
|
|
<Heading size="S">Platform</Heading> |
|
|
|
<Body>Here you can set up general platform settings.</Body> |
|
|
|
<div class="fields"> |
|
|
|
<div class="field"> |
|
|
|
<Label size="L">Platform URL</Label> |
|
|
|
<Input thin bind:value={$organisation.platformUrl} /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<Divider size="S" /> |
|
|
|
<Layout gap="XS" noPadding> |
|
|
|
<Heading size="S">Platform</Heading> |
|
|
|
<Body size="S">Here you can set up general platform settings.</Body> |
|
|
|
</Layout> |
|
|
|
<div class="fields"> |
|
|
|
<div class="field"> |
|
|
|
<Label size="L">Platform URL</Label> |
|
|
|
<Input thin bind:value={$organisation.platformUrl} /> |
|
|
|
</div> |
|
|
|
<Divider size="S" /> |
|
|
|
<div class="analytics"> |
|
|
|
</div> |
|
|
|
<Divider size="S" /> |
|
|
|
<Layout gap="S" noPadding> |
|
|
|
<Layout gap="XS" noPadding> |
|
|
|
<Heading size="S">Analytics</Heading> |
|
|
|
<Body> |
|
|
|
<Body size="S"> |
|
|
|
If you would like to send analytics that help us make Budibase better, |
|
|
|
please let us know below. |
|
|
|
</Body> |
|
|
|
<div class="fields"> |
|
|
|
<div class="field"> |
|
|
|
<Label size="L">Send Analytics to Budibase</Label> |
|
|
|
<Toggle text="" value={!analyticsDisabled} /> |
|
|
|
</div> |
|
|
|
</Layout> |
|
|
|
<div class="fields"> |
|
|
|
<div class="field"> |
|
|
|
<Label size="L">Send Analytics to Budibase</Label> |
|
|
|
<Toggle text="" value={!analyticsDisabled} /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="save"> |
|
|
|
<Button disabled={loading} on:click={saveConfig} cta>Save</Button> |
|
|
|
</div> |
|
|
|
</Layout> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<Button disabled={loading} on:click={saveConfig} cta>Save</Button> |
|
|
|
</div> |
|
|
|
</Layout> |
|
|
|
|
|
|
|
<style> |
|
|
|
.fields { |
|
|
|
display: grid; |
|
|
|
grid-gap: var(--spacing-m); |
|
|
|
margin-top: var(--spacing-xl); |
|
|
|
} |
|
|
|
.field { |
|
|
|
display: grid; |
|
|
|
grid-template-columns: 32% 1fr; |
|
|
|
grid-template-columns: 33% 1fr; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
.file { |
|
|
|
@ -137,10 +135,4 @@ |
|
|
|
.logo { |
|
|
|
align-items: start; |
|
|
|
} |
|
|
|
.intro { |
|
|
|
display: grid; |
|
|
|
} |
|
|
|
.save { |
|
|
|
margin-left: auto; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|