diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-13 01:11:29 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-13 01:11:29 +0200 |
| commit | 862edbf4d5fdb9a88f84bfa1d51ab8cc83896094 (patch) | |
| tree | 2b8d8082b3549f664ef6f4babff3be864af4aac8 /app/views/otp_challenges/new.html.erb | |
| parent | a06f35bc0085aa744aef5fe2f4c4c036338b469b (diff) | |
Give every admin page one horizontal gutter
by many views inside. The inner ones are gone
nodes#edit's becomes #body_field, which is what #edit_grid places in its
full-width row.
Rows now reach into the label band themselves rather than depending on a
page wrapper to do it. The label column plus its gap equals the escape, so
a row's content starts at the gutter on every page; #edit_grid's rows are
exempt because the grid already steps back.
share one left edge. #new_node's -118px was compensating for that 10px and
left the page 7px out once it went. standalone_action_bar was overridden
everywhere it appeared.
page_translations#edit no longer uses #edit_grid: it has no metadata column,
so the two-column template pushed its abstract into the empty half.
nodes#edit's lower action bar was inside #edit_grid, so it was a grid item
inheriting the escape and sat 125px left of the form above it.
Diffstat (limited to 'app/views/otp_challenges/new.html.erb')
| -rw-r--r-- | app/views/otp_challenges/new.html.erb | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/app/views/otp_challenges/new.html.erb b/app/views/otp_challenges/new.html.erb index 677244c7..798fc024 100644 --- a/app/views/otp_challenges/new.html.erb +++ b/app/views/otp_challenges/new.html.erb | |||
| @@ -1,13 +1,15 @@ | |||
| 1 | <h1><%= t(".title") %></h1> | 1 | <h1><%= t(".title") %></h1> |
| 2 | 2 | ||
| 3 | <div id="admin_layout"> | 3 | <div id="admin_layout"> |
| 4 | <div class="layout_row_label"> <%= t(".code") %> </div> | 4 | <div class="layout_row"> |
| 5 | <div class="layout_row_content"> | 5 | <div class="layout_row_label"> <%= t(".code") %> </div> |
| 6 | <%= form_tag otp_challenge_path, :method => :post, :class => "otp_form" do %> | 6 | <div class="layout_row_content"> |
| 7 | <%= text_field_tag :code, nil, :autofocus => true, | 7 | <%= form_tag otp_challenge_path, :method => :post, :class => "otp_form" do %> |
| 8 | :autocomplete => "one-time-code", :inputmode => "numeric" %> | 8 | <%= text_field_tag :code, nil, :autofocus => true, |
| 9 | <%= submit_tag t(".log_in") %> | 9 | :autocomplete => "one-time-code", :inputmode => "numeric" %> |
| 10 | <% end %> | 10 | <%= submit_tag t(".log_in") %> |
| 11 | <span class="field_hint"> <%= t(".hint") %> </span> | 11 | <% end %> |
| 12 | <span class="field_hint"> <%= t(".hint") %> </span> | ||
| 13 | </div> | ||
| 12 | </div> | 14 | </div> |
| 13 | </div> | 15 | </div> |
