diff --git a/app/assets/fonts/icons.eot b/app/assets/fonts/icons.eot
index de807c03a..8d0dc8ece 100644
Binary files a/app/assets/fonts/icons.eot and b/app/assets/fonts/icons.eot differ
diff --git a/app/assets/fonts/icons.svg b/app/assets/fonts/icons.svg
index f2dc2b69c..b01dfc6b6 100644
--- a/app/assets/fonts/icons.svg
+++ b/app/assets/fonts/icons.svg
@@ -42,4 +42,5 @@
- - <%= t("account.show.verified_account") %> -
- <% elsif current_user.level_two_verified? %> - <%= link_to t("account.show.finish_verification"), verification_path, class: "button radius small success right" %> - <% else %> - <%= link_to t("account.show.verify_my_account"), verification_path, class: "button radius small success right" %> - <% end %> - -<%= t("verification.letter.new.explanation") %>
+ +<%= t("verification.residence.new.postal_code_note") %>
<%= f.text_field :postal_code, label: false %><%= t("verification.sms.new.phone_note") %>
<%= f.text_field :phone, label: false %><%= t("welcome.welcome.instructions_1_html") %>
-<%= t("welcome.welcome.instructions_2_html") %>
-<%= t("welcome.welcome.instructions_3_html") %>
-- <%= link_to t("welcome.welcome.verify_account"), - verification_path, class: "button success radius margin-top expand" %> -
-- <%= link_to t("welcome.welcome.go_to_index"), - root_path, class: "small margin-top expand" %> -
-<%= t("welcome.welcome.instructions_4_html") %>
+ + diff --git a/config/locales/en.yml b/config/locales/en.yml index 0f5bbcc10..a070b7e3f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -15,13 +15,6 @@ en: open_city_slogan_html: "Start listening to Madrid. For that we open this digital Puerta del Sol, where all the locals can meet to discuss and share everything we want." - # "Existen ciudades gobernadas directamente por sus habitantes, que debaten sobre temas que les preocupan, proponen ideas para mejorar - # sus vidas y deciden entre todas y todos las que se llevan a cabo. Madrid ya es una de ellas." - # open_city_text: - # "Here every voice has its place and are citizens, and no one in their name, they decide to vote debates what issues are - # most important of every time. Government officials have individual users with whom you may participate in the debates, and evaluated, - # the same level as everyone else. Because the Madrid City Council works for its citizens, and must respond to them." - # open_city_soon: "And soon... we'll open the section for citizen proposals." see_all: See debates and proposals my_account_link: My account locale: "Language:" @@ -279,10 +272,9 @@ en: show: title: "My account" save_changes_submit: "Save changes" + change_credentials_link: "Change my credentials" email_on_comment_label: "Receive email when someone comments on my debates or proposals" email_on_comment_reply_label: "Receive email when someone replies to my comments" - change_credentials_link: "Change my credentials" - avatar: "Avatar" personal: "Personal data" username_label: "Username" phone_number_label: "Phone number" @@ -292,6 +284,14 @@ en: finish_verification: "Finish verification" verified_account: Verified account verify_my_account: Verify my account + user_permission_title: "Participation" + user_permission_info: "With your account you can..." + user_permission_debates: "Participate on debates" + user_permission_proposal: "Create new proposals" + user_permission_support_proposal: "Support proposals" + user_permission_votes: "Participate on final voting" + user_permission_verify: "To perform all the actions verify your account." + user_permission_verify_info: "* Only for users on Madrid City Census." simple_captcha: placeholder: "Enter the image value" label: "Enter the image value in the next form" @@ -328,13 +328,16 @@ en: title: "It does" description: "If the proposal is accepted mostly, the City Council makes his own and done." welcome: - title: Account verification - instructions_1_html: "Welcome to the public participation website." - instructions_2_html: "We have detected that your email is confirmed but we were not able to verify your citizen data." - instructions_3_html: "Without verifying them, you have only partial access to the website. You need to be verified, for example, in order to participate in public proposals." - verify_account: "Verify my account now" - go_to_index: "I prefer to continue as a non-verified user with limited access" - instructions_4_html: "If you want to verify your account later on, you can do so in My account -> Verify my account." + title: "Participate" + go_to_index: "See proposals and debates" + user_permission_info: "With your account you can..." + user_permission_debates: "Participate on debates" + user_permission_proposal: "Create new proposals" + user_permission_support_proposal: "Support proposals*" + user_permission_votes: "Participate on final voting*" + user_permission_verify: "To perform all the actions %{verify}." + user_permission_verify_url: "verify your account" + user_permission_verify_info: "* Only for users on Madrid City Census." omniauth: finish_signup: title: Add Email diff --git a/config/locales/es.yml b/config/locales/es.yml index a79c93097..85285e010 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -15,13 +15,6 @@ es: open_city_slogan_html: "Existen ciudades gobernadas directamente por sus habitantes, que debaten sobre temas que les preocupan, proponen ideas para mejorar sus vidas y deciden entre todas y todos las que se llevan a cabo. Madrid ya es una de ellas." - #"Empecemos escuchando qué tiene que decir Madrid. - #Para ello abrimos esta Puerta del Sol digital, donde toda la gente de Madrid podemos encontrarnos para debatir y compartir todo lo que queramos." - # open_city_text: - # "Aquí cualquier voz tiene su espacio y son los ciudadanos y ciudadanas, y nadie en su nombre, quienes deciden votando los debates cuáles son los temas - # más importantes de cada momento. Los responsables del gobierno tienen cuentas de usuario propias con las que podrán participar en los debates, y ser evaluados - # al mismo nivel que todos los demás." - # open_city_soon: "Muy pronto abriremos la sección de propuestas ciudadanas, donde cualquiera podrá presentar propuestas y, si reciben apoyo, serán puestas en marcha por el Ayuntamiento." see_all: Ver debates y propuestas my_account_link: Mi cuenta locale: "Idioma:" @@ -282,7 +275,6 @@ es: change_credentials_link: "Cambiar mis datos de acceso" email_on_comment_label: "Recibir un email cuando alguien comenta en mis propuestas o debates" email_on_comment_reply_label: "Recibir un email cuando alguien contesta a mis comentarios" - avatar: "Avatar" personal: "Datos personales" username_label: "Nombre de usuario" phone_number_label: "Teléfono" @@ -292,6 +284,14 @@ es: finish_verification: "Finalizar verificación" verified_account: Cuenta verificada verify_my_account: Verificar mi cuenta + user_permission_title: "Participación" + user_permission_info: "Con tu cuenta ya puedes..." + user_permission_debates: "Participar en debates" + user_permission_proposal: "Crear nuevas propuestas" + user_permission_support_proposal: "Apoyar propuestas*" + user_permission_votes: "Participar en las votaciones finales*" + user_permission_verify: "Para poder realizar todas las acciones verifica tu cuenta." + user_permission_verify_info: "* Sólo usuarios empadronados en el municipio de Madrid." simple_captcha: placeholder: "Introduce el texto de la imagen" label: "Introduce el texto de la imagen en la siguiente caja" @@ -328,13 +328,16 @@ es: title: "Se hace" description: "Si la propuesta es aceptada mayoritariamente, el Ayuntamiento la asume como propia y se hace." welcome: - title: Verificación de cuenta - instructions_1_html: "Bienvenido a la página de participación ciudadana" - instructions_2_html: "Hemos detectado que tu dirección de email está confirmada pero no hemos verificado tus datos todavía." - instructions_3_html: "Sin verificar tus datos el acceso que tienes es limitado. Verificarlos ahora te permitirá, por ejemplo, apoyar propuestas ciudadanas." - verify_account: "Verificar mi cuenta" - go_to_index: "Quiero entrar como un usuario no verificado (acceso limitado)" - instructions_4_html: "Si quieres verificarte más tarde, puedes hacerlo en Mi cuenta > Verificar mi cuenta." + title: "Empieza a participar" + go_to_index: "Ver propuestas y debates" + user_permission_info: "Con tu cuenta ya puedes..." + user_permission_debates: "Participar en debates" + user_permission_proposal: "Crear nuevas propuestas" + user_permission_support_proposal: "Apoyar propuestas*" + user_permission_votes: "Participar en las votaciones finales*" + user_permission_verify: "Para poder realizar todas las acciones %{verify}." + user_permission_verify_url: "verifica tu cuenta" + user_permission_verify_info: "* Sólo usuarios empadronados en el municipio de Madrid." omniauth: finish_signup: title: Añade tu email diff --git a/config/locales/verification.en.yml b/config/locales/verification.en.yml index 845f7a5e7..1feb43860 100644 --- a/config/locales/verification.en.yml +++ b/config/locales/verification.en.yml @@ -2,10 +2,15 @@ en: verification: back: "Back to my account" step_1: "Residence" - step_2: "Confirmation code" + step_2: "SMS confirmation" step_3: "Final verification" alert: lock: "You have reached the maximum number of verification tries. Please try again later." + user_permission_info: "Verifing your information you'll be able to..." + user_permission_debates: "Participar en debates" + user_permission_proposal: "Crear nuevas propuestas" + user_permission_support_proposal: "Apoyar propuestas*" + user_permission_votes: "Participar en las votaciones finales*" residence: new: title: "Verify residence" @@ -17,6 +22,7 @@ en: document_number: "Document number" date_of_birth: "Date of birth" postal_code: "Postal code" + postal_code_note: "To verify your account you must be on Madrid city Census" accept_terms_text: "I accept %{terms_url} to access the city Census" terms: "the terms" verify_residence: "Verify residence" @@ -33,15 +39,16 @@ en: new: title: "Phone verification" phone: "Enter your phone for recive the code" + phone_note: "We only user your phone for send to you a code, we never contact to you." submit_button: "Send" create: flash: success: "Enter the confirmation code we have sent your phone" edit: - title: "Security code confirmation" + title: "Phone confirmation" confirmation_code: "Code confirmation" resend_sms_text: "You have not received the confirmation code in your phone?" - resend_sms_link: "Click here to send the confirmation code again" + resend_sms_link: "Request a new code" submit_button: "Send" update: error: "Incorrect confirmation code" @@ -64,23 +71,21 @@ en: letter: new: title: "Final Verification" - explanation_html: - "Congratulations! You can now participate in discussions or support proposals of others.
To finish we need to verify your account completely provide you with a maximum security code, we ensure that no one is using your data on your behalf.
This requirement is essential to participate in final votes on motions. This can approach any Office of Citizen where you will verify in person, or in case you is impossible, we can send you a letter home with the code.
" - offices: "See Office of Citizen" + user_permission_info: "With your account you can..." + explanation: "For participate on final voting you can:" + office: "Verify in any %{office}" + offices: "Office of Citizen" offices_url: "http://www.madrid.es/portales/munimadrid/es/Inicio/El-Ayuntamiento/Atencion-al-ciudadano/Oficinas-de-Atencion-al-Ciudadano?vgnextfmt=default&vgnextchannel=5b99cde2e09a4310VgnVCM1000000b205a0aRCRD" - send_letter: "Send me a letter with the code" - send_code: "Send" + send_letter: "Request a letter" + go_to_index: "See proposals and debates" create: flash: - success_html: "Thank you for requesting a maximum security code in a few days we will send it to the address on your census data." - offices: "Oficinas de Atención al Ciudadano" + success_html: "Before voting you'll receive a letter whith the instructions for verify your account.¡Felicidades! Ya puedes participar en debates o apoyar propuestas de otras personas.
" - see_all: "Ver debates y propuestas" + title: "Letter requested" + see_all: "See proposals and debates" update: flash: success: "Correct code. Your account is verified" diff --git a/config/locales/verification.es.yml b/config/locales/verification.es.yml index a90fc9fe2..bf0102ad1 100644 --- a/config/locales/verification.es.yml +++ b/config/locales/verification.es.yml @@ -2,10 +2,15 @@ es: verification: back: "Volver a mi cuenta" step_1: "Residencia" - step_2: "Código de confirmación" + step_2: "SMS de confirmación" step_3: "Verificación final" alert: lock: "Has llegado al máximo número de intentos. Por favor intentalo de nuevo más tarde." + user_permission_info: "Al verificar tus datos podrás..." + user_permission_debates: "Participar en debates" + user_permission_proposal: "Crear nuevas propuestas" + user_permission_support_proposal: "Apoyar propuestas" + user_permission_votes: "Participar en las votaciones finales" residence: new: title: "Verificar residencia" @@ -17,6 +22,7 @@ es: document_number: "Número de documento" date_of_birth: "Fecha de nacimiento" postal_code: "Código postal" + postal_code_note: "Para verificar tus datos debes estar empadronado en el municipio de Madrid" accept_terms_text: "Acepto %{terms_url} al Padrón" terms: "los términos de acceso" verify_residence: "Verificar residencia" @@ -31,17 +37,18 @@ es: unconfirmed_residency: "Aún no has verificado tu residencia" sms: new: - title: "Recibir código de confirmación" + title: "SMS de confirmación" phone: "Introduce tu teléfono móvil para recibir el código" + phone_note: "Sólo usaremos tu teléfono para enviarte un código, nunca te contactaremos." submit_button: "Enviar" create: flash: success: "Introduce el código de confirmación que te hemos enviado por mensaje de texto" edit: - title: "Confirmación de código de seguridad" + title: "SMS de confirmación" confirmation_code: "Introduce el código que has recibido en tu móvil" resend_sms_text: "¿No has recibido un mensaje de texto con tu código de confirmación?" - resend_sms_link: "Haz click aquí para volver a enviártelo" + resend_sms_link: "Solicitar un nuevo código" submit_button: "Enviar" update: error: "Código de confirmación incorrecto" @@ -63,23 +70,21 @@ es: failure: "Hubo un problema enviándote un email a tu cuenta" letter: new: - title: "Verificación Final" - explanation_html: - "¡Felicidades! Ya puedes participar en debates o apoyar propuestas de otras personas.
Para terminar de verificar tu cuenta completamente necesitamos proporcionarte un código de máxima seguridad, que nos asegure que nadie está utilizando tus datos en tu nombre.
Este requerimiento es esencial para participar en las votaciones finales de las propuestas. Para ello puedes acercarte a cualquier Oficina de Atención al Ciudadano donde te verificarán presencialmente, o en caso de que te sea imposible, podemos mandarte una carta a casa con el código.
" - offices: "Ver Oficinas de Atención al Ciudadano" + title: "¡Felicidades!" + user_permission_info: "Con tu cuenta ya puedes..." + explanation: "Para participar en las votaciones finales puedes:" + office: "Verificarte presencialmente en cualquier %{office}" + offices: "Oficina de Atención al Ciudadano" offices_url: "http://www.madrid.es/portales/munimadrid/es/Inicio/El-Ayuntamiento/Atencion-al-ciudadano/Oficinas-de-Atencion-al-Ciudadano?vgnextfmt=default&vgnextchannel=5b99cde2e09a4310VgnVCM1000000b205a0aRCRD" - send_letter: "Enviarme una carta con el código" - send_code: "Enviar" + send_letter: "Solicitar una carta por correo postal" + go_to_index: "Ver propuestas y debates" create: flash: - success_html: "Gracias por solicitar tu código de máxima seguridad (solo necesario para las votaciones finales), en unos días te lo enviaremos a la dirección que figura en tus datos del padrón. Recuerda que puedes ahorrar el envío recogiendo tu código en cualquiera de las %{offices}." + success_html: "Antes de las votaciones recibirás una carta con las instrucciones para verificar tu cuenta.¡Felicidades! Ya puedes participar en debates o apoyar propuestas de otras personas.
" + title: "Carta solicitada" see_all: "Ver debates y propuestas" update: flash: diff --git a/spec/features/verification/letter_spec.rb b/spec/features/verification/letter_spec.rb index 8c9282800..d4b7eeb30 100644 --- a/spec/features/verification/letter_spec.rb +++ b/spec/features/verification/letter_spec.rb @@ -10,15 +10,9 @@ feature 'Verify Letter' do login_as(user) visit new_letter_path - click_button "Send me a letter with the code" + click_link "Request a letter" - expect(page).to have_content "Thank you for requesting a maximum security code in a few days we will send it to the address on your census data." - - user.reload - fill_in "letter_verification_code", with: user.letter_verification_code - click_button "Send" - - expect(page).to have_content "Correct code. Your account is verified" + expect(page).to have_content "Before voting you'll receive a letter whith the instructions for verify your account." end scenario 'Go to office instead of send letter' do @@ -29,7 +23,7 @@ feature 'Verify Letter' do login_as(user) visit new_letter_path - expect(page).to have_link "See Office of Citizen", href: "http://www.madrid.es/portales/munimadrid/es/Inicio/El-Ayuntamiento/Atencion-al-ciudadano/Oficinas-de-Atencion-al-Ciudadano?vgnextfmt=default&vgnextchannel=5b99cde2e09a4310VgnVCM1000000b205a0aRCRD" + expect(page).to have_link "Office of Citizen", href: "http://www.madrid.es/portales/munimadrid/es/Inicio/El-Ayuntamiento/Atencion-al-ciudadano/Oficinas-de-Atencion-al-Ciudadano?vgnextfmt=default&vgnextchannel=5b99cde2e09a4310VgnVCM1000000b205a0aRCRD" end scenario 'Errors on verification code' do @@ -40,13 +34,9 @@ feature 'Verify Letter' do login_as(user) visit new_letter_path - click_button "Send me a letter with the code" - expect(page).to have_content "Thank you for requesting a maximum security code in a few days we will send it to the address on your census data." + click_link "Request a letter" + expect(page).to have_content "Before voting you'll receive a letter whith the instructions for verify your account." - fill_in "letter_verification_code", with: "1" - click_button "Send" - - expect(page).to have_content "Incorrect confirmation code" end scenario "Deny access unless verified residence" do @@ -68,25 +58,4 @@ feature 'Verify Letter' do expect(page).to have_content 'You have not yet enter the confirmation code' expect(current_path).to eq(new_sms_path) end - - scenario '6 tries allowed' do - user = create(:user, residence_verified_at: Time.now, confirmed_phone: "611111111") - login_as(user) - - visit new_letter_path - click_button 'Send me a letter with the code' - - 6.times do - fill_in 'letter_verification_code', with: "999999" - click_button 'Send' - end - - expect(page).to have_content "You have reached the maximum number of verification tries. Please try again later." - expect(current_path).to eq(account_path) - - visit new_letter_path - expect(page).to have_content "You have reached the maximum number of verification tries. Please try again later." - expect(current_path).to eq(account_path) - end - end diff --git a/spec/features/verification/level_three_verification_spec.rb b/spec/features/verification/level_three_verification_spec.rb index 86368ff6b..b03741f42 100644 --- a/spec/features/verification/level_three_verification_spec.rb +++ b/spec/features/verification/level_three_verification_spec.rb @@ -20,7 +20,7 @@ feature 'Level three verification' do click_button "Send code" end - expect(page).to have_content 'Security code confirmation' + expect(page).to have_content 'Phone confirmation' user = user.reload fill_in 'sms_confirmation_code', with: user.sms_confirmation_code @@ -75,7 +75,7 @@ feature 'Level three verification' do fill_in 'sms_phone', with: "611111111" click_button 'Send' - expect(page).to have_content 'Security code confirmation' + expect(page).to have_content 'Phone confirmation' user = user.reload fill_in 'sms_confirmation_code', with: user.sms_confirmation_code @@ -83,14 +83,8 @@ feature 'Level three verification' do expect(page).to have_content 'Correct code' - click_button "Send me a letter with the code" + click_link "Request a letter" - expect(page).to have_content "Thank you for requesting a maximum security code in a few days we will send it to the address on your census data." - - user.reload - fill_in "letter_verification_code", with: user.letter_verification_code - click_button "Send" - - expect(page).to have_content "We have not sent you the letter with the code yet" + expect(page).to have_content "Before voting you'll receive a letter whith the instructions for verify your account." end end \ No newline at end of file diff --git a/spec/features/verification/level_two_verification_spec.rb b/spec/features/verification/level_two_verification_spec.rb index dfb1e29c2..ac0bf1a2f 100644 --- a/spec/features/verification/level_two_verification_spec.rb +++ b/spec/features/verification/level_two_verification_spec.rb @@ -14,7 +14,7 @@ feature 'Level two verification' do fill_in 'sms_phone', with: "611111111" click_button 'Send' - expect(page).to have_content 'Security code confirmation' + expect(page).to have_content 'Phone confirmation' user = user.reload fill_in 'sms_confirmation_code', with: user.sms_confirmation_code diff --git a/spec/features/verification/sms_spec.rb b/spec/features/verification/sms_spec.rb index 3afe33a43..1d8026b81 100644 --- a/spec/features/verification/sms_spec.rb +++ b/spec/features/verification/sms_spec.rb @@ -11,7 +11,7 @@ feature 'SMS Verification' do fill_in 'sms_phone', with: "611111111" click_button 'Send' - expect(page).to have_content 'Security code confirmation' + expect(page).to have_content 'Phone confirmation' user = user.reload fill_in 'sms_confirmation_code', with: user.sms_confirmation_code @@ -40,7 +40,7 @@ feature 'SMS Verification' do fill_in 'sms_phone', with: "611111111" click_button 'Send' - expect(page).to have_content 'Security code confirmation' + expect(page).to have_content 'Phone confirmation' click_button 'Send' @@ -66,7 +66,7 @@ feature 'SMS Verification' do 5.times do fill_in 'sms_phone', with: "611111111" click_button 'Send' - click_link 'Click here to send the confirmation code again' + click_link 'Request a new code' end expect(page).to have_content "You have reached the maximum number of verification tries. Please try again later." diff --git a/spec/support/common_actions.rb b/spec/support/common_actions.rb index d1a6bcdf6..b07c93a89 100644 --- a/spec/support/common_actions.rb +++ b/spec/support/common_actions.rb @@ -127,7 +127,7 @@ module CommonActions fill_in 'sms_phone', with: "611111111" click_button 'Send' - expect(page).to have_content 'Security code confirmation' + expect(page).to have_content 'Phone confirmation' user = User.last.reload fill_in 'sms_confirmation_code', with: user.sms_confirmation_code