Skip to content

Commit 2dde0e7

Browse files
committed
add config for integration fields
1 parent 666ce1d commit 2dde0e7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

lib/algora_web/live/org/settings_live.ex

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,25 @@ defmodule AlgoraWeb.Org.SettingsLive do
154154
</.card_content>
155155
</.card>
156156
157+
<.card :if={@current_user.is_admin}>
158+
<.card_header>
159+
<.card_title>Ashby Integration</.card_title>
160+
<.card_description>
161+
Configure Ashby API integration for this organization (Admin only)
162+
</.card_description>
163+
</.card_header>
164+
<.card_content>
165+
<.simple_form for={@form} phx-change="validate" phx-submit="save">
166+
<div class="flex flex-col gap-6">
167+
<.input field={@form[:ashby_api_key]} label="Ashby API Key" type="text" />
168+
<.input field={@form[:ashby_source_id]} label="Ashby Source ID" type="text" />
169+
<.input field={@form[:ashby_user_id]} label="Ashby User ID" type="text" />
170+
<.button class="ml-auto">Save</.button>
171+
</div>
172+
</.simple_form>
173+
</.card_content>
174+
</.card>
175+
157176
<.card>
158177
<.card_header>
159178
<.card_title>Bot Templates</.card_title>

0 commit comments

Comments
 (0)