diff options
Diffstat (limited to 'app/views/elevations')
| -rw-r--r-- | app/views/elevations/new.html.erb | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/app/views/elevations/new.html.erb b/app/views/elevations/new.html.erb index 1091ff36..084fb9e4 100644 --- a/app/views/elevations/new.html.erb +++ b/app/views/elevations/new.html.erb | |||
| @@ -6,13 +6,18 @@ | |||
| 6 | <%= t(".hint", :minutes => AuthenticatedSystem::ELEVATION_MAX_AGE.in_minutes.to_i) %> | 6 | <%= t(".hint", :minutes => AuthenticatedSystem::ELEVATION_MAX_AGE.in_minutes.to_i) %> |
| 7 | </p> | 7 | </p> |
| 8 | <%= form_tag elevation_path do %> | 8 | <%= form_tag elevation_path do %> |
| 9 | <div class="layout_row_label"><%= t(".code") %></div> | 9 | <div class="layout_row"> |
| 10 | <div class="layout_row_content"> | 10 | <div class="layout_row_label"><%= t(".code") %></div> |
| 11 | <%= text_field_tag :code, nil, :autocomplete => "one-time-code", | 11 | <div class="layout_row_content"> |
| 12 | :inputmode => "numeric", :autofocus => true %> | 12 | <%= text_field_tag :code, nil, :autocomplete => "one-time-code", |
| 13 | :inputmode => "numeric", :autofocus => true %> | ||
| 14 | </div> | ||
| 15 | </div> | ||
| 16 | |||
| 17 | <div class="layout_row"> | ||
| 18 | <div class="layout_row_label"></div> | ||
| 19 | <div class="layout_row_content"><%= submit_tag t(".elevate") %></div> | ||
| 13 | </div> | 20 | </div> |
| 14 | <div class="layout_row_label"></div> | ||
| 15 | <div class="layout_row_content"><%= submit_tag t(".elevate") %></div> | ||
| 16 | <% end %> | 21 | <% end %> |
| 17 | <% else %> | 22 | <% else %> |
| 18 | <%# An admin without an enrolled factor cannot elevate at all. Say so and | 23 | <%# An admin without an enrolled factor cannot elevate at all. Say so and |
