adds sms verification
This commit is contained in:
5
app/views/verification/sms/_form.html.erb
Normal file
5
app/views/verification/sms/_form.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<%= form_for sms, url: sms_path do |f| %>
|
||||
<%= render 'shared/errors', resource: sms %>
|
||||
<%= f.hidden_field :phone %>
|
||||
<%= f.submit t('verification.sms.form.submit_button') %>
|
||||
<% end %>
|
||||
16
app/views/verification/sms/edit.html.erb
Normal file
16
app/views/verification/sms/edit.html.erb
Normal file
@@ -0,0 +1,16 @@
|
||||
<div class="row account">
|
||||
<div class="small-12 column">
|
||||
|
||||
<h1 class="inline-block"><%= t('verification.sms.edit.title') %></h1>
|
||||
|
||||
<%= form_for @sms, url: sms_path, method: :put do |f| %>
|
||||
<p><%= @error %></p>
|
||||
<%= f.text_field :confirmation_code %>
|
||||
|
||||
<%= f.submit t('verification.sms.edit.submit_button') %>
|
||||
<% end %>
|
||||
|
||||
<%= t('verification.sms.edit.resend_sms_text') %>
|
||||
<%= link_to t('verification.sms.edit.resend_sms_link'), verified_user_path %>
|
||||
</div>
|
||||
</div>
|
||||
14
app/views/verification/sms/new.html.erb
Normal file
14
app/views/verification/sms/new.html.erb
Normal file
@@ -0,0 +1,14 @@
|
||||
<div class="row account">
|
||||
<div class="small-12 column">
|
||||
|
||||
<h1 class="inline-block"><%= t('verification.sms.new.title') %></h1>
|
||||
|
||||
<%= form_for @sms, url: sms_path do |f| %>
|
||||
<%= render 'shared/errors', resource: @sms %>
|
||||
|
||||
<%= f.text_field :phone %>
|
||||
|
||||
<%= f.submit t('verification.sms.new.submit_button') %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user