|
2 | 2 | <%= link_to "← Back to explore options", scenarios_path, |
3 | 3 | class: "inline-block rounded-md border border-line bg-surface px-3 py-1.5 text-sm text-ink-soft hover:bg-canvas transition" %> |
4 | 4 |
|
5 | | - <h1 class="mt-6 font-serif font-medium text-3xl tracking-tight text-ink"><%= @scenario.name %></h1> |
| 5 | + <%= render "scenarios/names/name", scenario: @scenario %> |
6 | 6 |
|
7 | 7 | <%= form_with model: @scenario, class: "contents" do |form| %> |
8 | | - <div class="mt-6 flex items-center gap-4"> |
9 | | - <%= form.label :name, class: "w-40 text-ink-soft" %> |
10 | | - <%= form.text_field :name, required: true, |
11 | | - class: "max-w-md w-full block rounded-md border border-line bg-surface px-3 py-2 shadow-sm focus:border-accent focus:outline-none focus:ring-2 focus:ring-accent/10" %> |
12 | | - </div> |
13 | | - |
14 | | - <div class="mt-4 flex items-center gap-4"> |
15 | | - <%= form.label :total_giving_amount, "Total giving amount", class: "w-40 text-ink-soft" %> |
16 | | - <div class="relative max-w-md w-full"> |
17 | | - <span class="absolute left-3 top-1/2 -translate-y-1/2 text-ink-faint">$</span> |
18 | | - <%= form.number_field :total_giving_amount, step: "1", min: 0, placeholder: "0", |
19 | | - class: "block w-full rounded-md border border-line bg-surface pl-7 pr-3 py-2 shadow-sm focus:border-accent focus:outline-none focus:ring-2 focus:ring-accent/10" %> |
| 8 | + <div class="mt-6 rounded-2xl border border-line bg-surface p-6 shadow-sm"> |
| 9 | + <div class="flex items-center gap-4"> |
| 10 | + <%= form.label :total_giving_amount, "Total giving amount", class: "w-40 text-ink-soft" %> |
| 11 | + <div class="relative max-w-md w-full"> |
| 12 | + <span class="absolute left-3 top-1/2 -translate-y-1/2 text-ink-faint">$</span> |
| 13 | + <%= form.number_field :total_giving_amount, step: "1", min: 0, placeholder: "0", |
| 14 | + class: "block w-full rounded-md border border-line bg-surface-soft pl-7 pr-3 py-2 shadow-sm focus:border-accent focus:outline-none focus:ring-2 focus:ring-accent/10" %> |
| 15 | + </div> |
| 16 | + <%= form.submit "Save", class: "rounded-md px-3.5 py-2 bg-accent hover:bg-[#444] text-white text-sm font-medium cursor-pointer transition" %> |
20 | 17 | </div> |
21 | 18 | </div> |
22 | | - |
23 | | - <div class="mt-4 flex items-center gap-4"> |
24 | | - <span class="w-40"></span> |
25 | | - <%= form.submit "Save", class: "rounded-md px-3.5 py-2 bg-accent hover:bg-[#444] text-white text-sm font-medium cursor-pointer transition" %> |
26 | | - </div> |
27 | 19 | <% end %> |
28 | 20 |
|
29 | 21 | <div class="mt-8 grid gap-6 lg:grid-cols-2"> |
|
0 commit comments