Replace hardcoded domains with primary domain setting

This commit is contained in:
Râu Cao
2023-03-18 13:43:23 +07:00
parent 34e4cec503
commit 589e46bc63
8 changed files with 9 additions and 9 deletions

View File

@@ -12,7 +12,7 @@
<section class="sm:w-1/2 grid grid-cols-2 items-center gap-y-2">
<%= form.label :user_id %>
<%= form.collection_select :user_id, User.where(ou: "kosmos.org").order(:cn), :id, :cn, {} %>
<%= form.collection_select :user_id, User.where(ou: Setting.primary_domain).order(:cn), :id, :cn, {} %>
<%= form.label :amount_sats, "Amount BTC (sats)" %>
<%= form.number_field :amount_sats %>

View File

@@ -10,7 +10,7 @@
<p class="flex gap-2 items-center">
<%= f.text_field :cn, autofocus: true, autocomplete: "username",
required: true, class: "relative grow"%>
<span class="relative shrink-0 text-gray-500">@ kosmos.org</span>
<span class="relative shrink-0 text-gray-500">@ <%= Setting.primary_domain %></span>
</p>
</div>
<p>

View File

@@ -14,7 +14,7 @@
<p class="flex gap-2 items-center">
<%= f.text_field :cn, autofocus: true, autocomplete: "username",
required: true, class: "relative grow", tabindex: "1" %>
<span class="relative shrink-0 text-gray-500">@ kosmos.org</span>
<span class="relative shrink-0 text-gray-500">@ <%= Setting.primary_domain %></span>
</p>
</div>
<p class="mb-8">

View File

@@ -10,7 +10,7 @@
<%= f.text_field :cn, autofocus: true, autocomplete: "username",
required: true, class: "relative grow text-xl"%>
<span class="relative shrink-0 text-gray-500 md:text-xl">
@ kosmos.org
@ <%= Setting.primary_domain %>
</span>
</p>
</div>