From fe51ee55040c47304d2507641f4724eea39bba45 Mon Sep 17 00:00:00 2001 From: Clement Date: Mon, 26 Sep 2016 14:01:43 +1000 Subject: [PATCH] Fixed a bug with the phone number not appearing --- .../views/mno_enterprise/auth/confirmations/_form.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/app/views/mno_enterprise/auth/confirmations/_form.html.haml b/api/app/views/mno_enterprise/auth/confirmations/_form.html.haml index d0901cecb..c50256f2d 100644 --- a/api/app/views/mno_enterprise/auth/confirmations/_form.html.haml +++ b/api/app/views/mno_enterprise/auth/confirmations/_form.html.haml @@ -1,4 +1,4 @@ -%div{ 'ng-init' => "user = { $pwdScore: {}, name: '#{resource.name}', surname: '#{resource.surname}' }" } +%div{ 'ng-init' => "user = { $pwdScore: {}, name: '#{resource.name}', surname: '#{resource.surname}', phone: '#{resource.phone}' }" } = form_for(resource, as: resource_name, :url => mno_enterprise.user_confirmation_finalize_path, :html => { 'name' => 'loginForm', :class => 'autofill-detect text-center' }) do |f| @@ -18,7 +18,7 @@ .col-sm-12 .phone = f.select :phone_country_code, options_for_select(Country.all.map { |country,code| c = Country.new(code); ["#{c.alpha2} +#{c.country_code}", code]}, MnoEnterprise.app_country), {}, class: 'form-control unstyled' - = f.text_field :phone, placeholder: "*Phone", required: true, 'ng-model' => 'user.phone_number', class: 'form-control' + = f.text_field :phone, placeholder: "*Phone", required: true, 'ng-model' => 'user.phone', class: 'form-control' %br