fix(support): refine operator action forms

This commit is contained in:
SimpleTest 2026-07-24 20:52:43 +03:00
parent 04eb0fe506
commit 4f8677927a

View File

@ -214,11 +214,12 @@ defmodule WhoNeedHelpWeb.SupportOperationsLive do
{gettext("Record the decision and notify the submitter when contact is available.")} {gettext("Record the decision and notify the submitter when contact is available.")}
</p> </p>
</div> </div>
<div class="mt-3 grid gap-3 md:grid-cols-[13rem_minmax(0,1fr)_auto] md:items-end"> <div class="mt-4 grid gap-4 lg:grid-cols-[14rem_minmax(0,1fr)] lg:items-start">
<.input <.input
field={form[:status]} field={form[:status]}
type="select" type="select"
label={gettext("Status")} label={gettext("Status")}
class="select w-full bg-base-100 shadow-sm"
options={[ options={[
{gettext("Open"), "open"}, {gettext("Open"), "open"},
{gettext("Urgent review"), "urgent_review"}, {gettext("Urgent review"), "urgent_review"},
@ -235,9 +236,14 @@ defmodule WhoNeedHelpWeb.SupportOperationsLive do
rows="2" rows="2"
label={gettext("Decision or information request")} label={gettext("Decision or information request")}
placeholder={gettext("Explain the decision or request the missing information")} placeholder={gettext("Explain the decision or request the missing information")}
class="textarea min-h-20 w-full resize-y" class="textarea min-h-28 w-full resize-y bg-base-100 leading-relaxed shadow-sm"
/> />
<.button class="btn btn-error mb-2 min-w-40"> </div>
<div class="mt-2 flex flex-col gap-3 border-t border-error/15 pt-4 sm:flex-row sm:items-center sm:justify-between">
<p class="text-xs text-base-content/55">
{gettext("Review the status and note before sending this update.")}
</p>
<.button class="btn btn-error min-w-44 sm:self-end">
{gettext("Save and notify")} {gettext("Save and notify")}
</.button> </.button>
</div> </div>
@ -366,11 +372,12 @@ defmodule WhoNeedHelpWeb.SupportOperationsLive do
{gettext("Update the case status and add a private reply when needed.")} {gettext("Update the case status and add a private reply when needed.")}
</p> </p>
</div> </div>
<div class="mt-3 grid gap-3 md:grid-cols-[13rem_minmax(0,1fr)_auto] md:items-end"> <div class="mt-4 grid gap-4 lg:grid-cols-[14rem_minmax(0,1fr)] lg:items-start">
<.input <.input
field={form[:status]} field={form[:status]}
type="select" type="select"
label={gettext("Status")} label={gettext("Status")}
class="select w-full bg-base-100 shadow-sm"
options={[ options={[
{gettext("Open"), "open"}, {gettext("Open"), "open"},
{gettext("Reviewing"), "reviewing"}, {gettext("Reviewing"), "reviewing"},
@ -385,9 +392,14 @@ defmodule WhoNeedHelpWeb.SupportOperationsLive do
rows="2" rows="2"
label={gettext("Private reply (optional)")} label={gettext("Private reply (optional)")}
placeholder={gettext("Write a clear reply for the requester")} placeholder={gettext("Write a clear reply for the requester")}
class="textarea min-h-20 w-full resize-y" class="textarea min-h-28 w-full resize-y bg-base-100 leading-relaxed shadow-sm"
/> />
<.button class="btn btn-primary mb-2 min-w-40"> </div>
<div class="mt-2 flex flex-col gap-3 border-t border-primary/15 pt-4 sm:flex-row sm:items-center sm:justify-between">
<p class="text-xs text-base-content/55">
{gettext("Review the status and reply before sending this update.")}
</p>
<.button class="btn btn-primary min-w-44 sm:self-end">
{gettext("Save and notify")} {gettext("Save and notify")}
</.button> </.button>
</div> </div>