Skip to content

Commit a006de9

Browse files
committed
refactor: update contract form labels and enhance dashboard live conditions
1 parent 52c3155 commit a006de9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

lib/algora_web/forms/contract_form.ex

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,14 @@ defmodule AlgoraWeb.Forms.ContractForm do
198198
<dl class="space-y-4">
199199
<div class="flex justify-between">
200200
<dt class="text-foreground">
201-
Total amount for
201+
Total payment for
202202
<span class="font-semibold">{get_change(@form.source, :hours_per_week)}</span>
203203
hours
204+
<%= if contractor = get_field(@form.source, :contractor) do %>
205+
<span class="text-xs text-muted-foreground">
206+
({contractor.name}'s availability)
207+
</span>
208+
<% end %>
204209
<div class="text-xs text-muted-foreground">
205210
(includes all platform and payment processing fees)
206211
</div>
@@ -220,9 +225,6 @@ defmodule AlgoraWeb.Forms.ContractForm do
220225
Draft contract <.icon name="tabler-arrow-right" class="-mr-1 ml-2 h-4 w-4" />
221226
</.button>
222227
</div>
223-
<p class="pt-4 text-sm text-muted-foreground">
224-
You can edit the contract after it's created
225-
</p>
226228
</.form>
227229
"""
228230
end

lib/algora_web/live/org/dashboard_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1975,7 +1975,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
19751975
<.drawer_content :if={@selected_developer} class="mt-4">
19761976
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
19771977
<.share_drawer_developer_info selected_developer={@selected_developer} />
1978-
<%= if incomplete?(@achievements, :connect_github_status) do %>
1978+
<%= if @live_action == :preview or incomplete?(@achievements, :connect_github_status) do %>
19791979
<div class="relative">
19801980
<div class="absolute inset-0 z-10 bg-background/50" />
19811981
<div class="pointer-events-none">

0 commit comments

Comments
 (0)