diff --git a/app/assets/stylesheets/participacion.scss b/app/assets/stylesheets/participacion.scss index 6e518080f..520a836aa 100644 --- a/app/assets/stylesheets/participacion.scss +++ b/app/assets/stylesheets/participacion.scss @@ -277,6 +277,10 @@ h6 { margin: rem-calc(24) 0; } +.text-medium { + font-size: rem-calc(16) !important; +} + // 04. Header // - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1074,6 +1078,10 @@ label.error, label.error a { margin-bottom: $line-height; } + h1.avatar { + margin-left: rem-calc(12); + } + h3 { clear: both; font-size: rem-calc(20); @@ -1108,6 +1116,25 @@ label.error, label.error a { .verify-account { padding-right: rem-calc(12); } + + .final-votes-info { + background: $warning-bg; + border: 1px solid $warning-border; + color: $warning-color; + margin-top: rem-calc(24); + padding: rem-calc(12); + + ul li { + margin: rem-calc(12) 0; + } + + .icon-box { + color: #D4A26D; + font-size: rem-calc(120); + line-height: rem-calc(120); + vertical-align: top; + } + } } img.avatar, img.admin-avatar, img.moderator-avatar { @@ -1133,6 +1160,40 @@ img.initialjs-avatar { top: -9px; } +.user-permissions { + + p { + span { + color: $text-medium; + font-size: rem-calc(12); + } + } + + ul { + list-style-type: none; + margin-bottom: 0; + margin-left: 0; + + li { + font-size: rem-calc(14); + margin-bottom: rem-calc(12); + + span { + color: $text-medium; + font-size: rem-calc(12); + } + + .icon-check { + color: $check; + } + + .icon-x { + color: $delete; + } + } + } +} + // 11. Filters & search // - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/views/account/show.html.erb b/app/views/account/show.html.erb index ce8732845..c52219955 100644 --- a/app/views/account/show.html.erb +++ b/app/views/account/show.html.erb @@ -1,35 +1,20 @@
- - <%= 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..729381932 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,22 +71,20 @@ 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.
" + title: "Letter requested" see_all: "Ver debates y propuestas" update: flash: diff --git a/config/locales/verification.es.yml b/config/locales/verification.es.yml index a90fc9fe2..e3883a454 100644 --- a/config/locales/verification.es.yml +++ b/config/locales/verification.es.yml @@ -2,10 +2,16 @@ 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" + user_permission_verify_info: "" residence: new: title: "Verificar residencia" @@ -17,6 +23,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 +38,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 +71,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: