Files
grecia/app/views/verification/sms/edit.html.erb
Javi Martín 9ddbd01f91 Use active model translations for labels
The same way we did for Active Record, but this time we do it for models
not inheriting fom Active Record.
2019-10-07 01:56:24 +02:00

48 lines
1.6 KiB
Plaintext

<div class="verification account row">
<% track_event(category: "verification", action: "start_sms") %>
<div class="small-12 column">
<div class="text-center">
<div class="small-4 column verification-step completed">
<span class="number">1</span> <%= t("verification.step_1") %>
</div>
<div class="small-4 column verification-step is-active">
<span class="number">2</span> <%= t("verification.step_2") %>
</div>
<div class="small-4 column verification-step">
<span class="number">3</span> <%= t("verification.step_3") %>
</div>
</div>
<div class="progress small-12 success">
<span class="meter" style="width: 66%"></span>
</div>
<%= back_link_to account_path, t("verification.back") %>
<h1><%= t("verification.sms.edit.title") %></h1>
<%= form_for @sms, as: "sms", url: sms_path, method: :put do |f| %>
<% if @error %>
<div data-alert class="callout alert" data-closable>
<button class="close-button" aria-label="<%= t("application.close") %>" type="button" data-close>
<span aria-hidden="true">&times;</span>
</button>
<%= @error %>
</div>
<% end %>
<div class="small-12 medium-6">
<%= f.text_field :confirmation_code %>
</div>
<%= f.submit t("verification.sms.edit.submit_button"), class: "button success" %>
<% end %>
<p>
<strong><%= t("verification.sms.edit.resend_sms_text") %></strong><br>
<%= link_to t("verification.sms.edit.resend_sms_link"), verified_user_path %>
</p>
</div>
</div>