adds sms verification

This commit is contained in:
rgarcia
2015-08-27 23:54:57 +02:00
parent 9ec3f96db1
commit 671399bb89
5 changed files with 144 additions and 0 deletions

View 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 %>

View 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>

View 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>