Remove unused verification offices url setting
This commit is contained in:
@@ -46,9 +46,7 @@
|
|||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<%= t("verification.letter.new.office",
|
<%= t("verification.letter.new.office") %>
|
||||||
office: link_to(t("verification.letter.new.offices"), setting['verification_offices_url'],
|
|
||||||
target: "blank")).html_safe %>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to t("verification.letter.new.send_letter"), letter_path, method: :post %>
|
<%= link_to t("verification.letter.new.send_letter"), letter_path, method: :post %>
|
||||||
|
|||||||
@@ -7,12 +7,7 @@
|
|||||||
<h1><%= t("verification.letter.edit.title") %></h1>
|
<h1><%= t("verification.letter.edit.title") %></h1>
|
||||||
|
|
||||||
<div data-alert class="callout success">
|
<div data-alert class="callout success">
|
||||||
<%= t("verification.letter.create.flash.success_html",
|
<%= t("verification.letter.create.flash.success_html") %>
|
||||||
offices: link_to(t("verification.letter.create.flash.offices"),
|
|
||||||
setting['verification_offices_url'],
|
|
||||||
title: t('shared.target_blank_html'),
|
|
||||||
target: "_blank")).html_safe
|
|
||||||
%>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= link_to t("verification.letter.edit.see_all"), proposals_path, class: "button warning" %>
|
<%= link_to t("verification.letter.edit.see_all"), proposals_path, class: "button warning" %>
|
||||||
|
|||||||
@@ -4,9 +4,7 @@
|
|||||||
<button class="close-button" aria-label="<%= t("application.close") %>" type="button" data-close>
|
<button class="close-button" aria-label="<%= t("application.close") %>" type="button" data-close>
|
||||||
<span aria-hidden="true">×</span>
|
<span aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
<%= t("verification.residence.new.error_verifying_census",
|
<%= t("verification.residence.new.error_verifying_census") %>
|
||||||
offices: link_to( t("verification.residence.new.error_verifying_census_offices"),
|
|
||||||
setting['verification_offices_url'], title: t('shared.target_blank_html'), target: "_blank")).html_safe %>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|||||||
@@ -71,7 +71,6 @@ en:
|
|||||||
min_age_to_participate: Minimum age needed to participate
|
min_age_to_participate: Minimum age needed to participate
|
||||||
min_age_to_participate_description: "Users over this age can participate in all processes where a user verified account is needed"
|
min_age_to_participate_description: "Users over this age can participate in all processes where a user verified account is needed"
|
||||||
analytics_url: "Analytics URL"
|
analytics_url: "Analytics URL"
|
||||||
verification_offices_url: Verification offices URL
|
|
||||||
proposal_notification_minimum_interval_in_days: "Minimum interval (in days) for authors of proposals to send new proposal notifications"
|
proposal_notification_minimum_interval_in_days: "Minimum interval (in days) for authors of proposals to send new proposal notifications"
|
||||||
proposal_notification_minimum_interval_in_days_description: "The number of days user can send a notification for all supporters of their proposal"
|
proposal_notification_minimum_interval_in_days_description: "The number of days user can send a notification for all supporters of their proposal"
|
||||||
direct_message_max_per_day: "Direct Message max number per day"
|
direct_message_max_per_day: "Direct Message max number per day"
|
||||||
|
|||||||
@@ -19,8 +19,7 @@ en:
|
|||||||
unconfirmed_code: You have not yet entered the confirmation code
|
unconfirmed_code: You have not yet entered the confirmation code
|
||||||
create:
|
create:
|
||||||
flash:
|
flash:
|
||||||
offices: Citizen Support Offices
|
success_html: Thank you for requesting your <b>maximum security code (only required for the final votes)</b>. In a few days we will send it to the address featuring in the data we have on file. Please remember that, if you prefer, you can collect your code from any of the Citizen Support Offices.
|
||||||
success_html: Thank you for requesting your <b>maximum security code (only required for the final votes)</b>. In a few days we will send it to the address featuring in the data we have on file. Please remember that, if you prefer, you can collect your code from any of the %{offices}.
|
|
||||||
edit:
|
edit:
|
||||||
see_all: See proposals
|
see_all: See proposals
|
||||||
title: Letter requested
|
title: Letter requested
|
||||||
@@ -29,8 +28,7 @@ en:
|
|||||||
new:
|
new:
|
||||||
explanation: 'For participate on final voting you can:'
|
explanation: 'For participate on final voting you can:'
|
||||||
go_to_index: See proposals
|
go_to_index: See proposals
|
||||||
office: Verify in any %{office}
|
office: Verify in any Citizen Support Offices
|
||||||
offices: Citizen Support Offices
|
|
||||||
send_letter: Send me a letter with the code
|
send_letter: Send me a letter with the code
|
||||||
title: Congratulations!
|
title: Congratulations!
|
||||||
user_permission_info: With your account you can...
|
user_permission_info: With your account you can...
|
||||||
@@ -60,8 +58,7 @@ en:
|
|||||||
document_type_label: Document type
|
document_type_label: Document type
|
||||||
error_not_allowed_age: You don't have the required age to participate
|
error_not_allowed_age: You don't have the required age to participate
|
||||||
error_not_allowed_postal_code: In order to be verified, you must be registered.
|
error_not_allowed_postal_code: In order to be verified, you must be registered.
|
||||||
error_verifying_census: The Census was unable to verify your information. Please confirm that your census details are correct by calling to City Council or visit one %{offices}.
|
error_verifying_census: The Census was unable to verify your information. Please confirm that your census details are correct by calling to City Council or visit one Citizen Support Office.
|
||||||
error_verifying_census_offices: Citizen Support Office
|
|
||||||
form_errors: prevented the verification of your residence
|
form_errors: prevented the verification of your residence
|
||||||
postal_code: Postcode
|
postal_code: Postcode
|
||||||
postal_code_note: To verify your account you must be registered
|
postal_code_note: To verify your account you must be registered
|
||||||
|
|||||||
@@ -71,7 +71,6 @@ es:
|
|||||||
min_age_to_participate: Edad mínima para participar
|
min_age_to_participate: Edad mínima para participar
|
||||||
min_age_to_participate_description: "Los usuarios mayores de esta edad podrán participar en todos los procesos donde se necesite una cueta verificada"
|
min_age_to_participate_description: "Los usuarios mayores de esta edad podrán participar en todos los procesos donde se necesite una cueta verificada"
|
||||||
analytics_url: "URL de estadísticas externas"
|
analytics_url: "URL de estadísticas externas"
|
||||||
verification_offices_url: URL oficinas verificación
|
|
||||||
proposal_notification_minimum_interval_in_days: "Intervalo mínimo (en días) para que los autores de propuestas puedan enviar nuevas notificaciones de propuesta"
|
proposal_notification_minimum_interval_in_days: "Intervalo mínimo (en días) para que los autores de propuestas puedan enviar nuevas notificaciones de propuesta"
|
||||||
proposal_notification_minimum_interval_in_days_description: "El número de días en los que un usuario puede enviar una notificación a todos los que apoyan su propuesta"
|
proposal_notification_minimum_interval_in_days_description: "El número de días en los que un usuario puede enviar una notificación a todos los que apoyan su propuesta"
|
||||||
direct_message_max_per_day: "Mensajes directos máximos por día"
|
direct_message_max_per_day: "Mensajes directos máximos por día"
|
||||||
|
|||||||
@@ -19,8 +19,7 @@ es:
|
|||||||
unconfirmed_code: Todavía no has introducido el código de confirmación
|
unconfirmed_code: Todavía no has introducido el código de confirmación
|
||||||
create:
|
create:
|
||||||
flash:
|
flash:
|
||||||
offices: Oficinas de Atención al Ciudadano
|
success_html: Antes de las votaciones recibirás una carta con las instrucciones para verificar tu cuenta.<br> Recuerda que puedes ahorrar el envío verificándote presencialmente en cualquiera de las Oficinas de Atención al Ciudadano.
|
||||||
success_html: Antes de las votaciones recibirás una carta con las instrucciones para verificar tu cuenta.<br> Recuerda que puedes ahorrar el envío verificándote presencialmente en cualquiera de las %{offices}.
|
|
||||||
edit:
|
edit:
|
||||||
see_all: Ver propuestas
|
see_all: Ver propuestas
|
||||||
title: Carta solicitada
|
title: Carta solicitada
|
||||||
@@ -29,8 +28,7 @@ es:
|
|||||||
new:
|
new:
|
||||||
explanation: 'Para participar en las votaciones finales puedes:'
|
explanation: 'Para participar en las votaciones finales puedes:'
|
||||||
go_to_index: Ver propuestas
|
go_to_index: Ver propuestas
|
||||||
office: Verificarte presencialmente en cualquier %{office}
|
office: Verificarte presencialmente en cualquier Oficina de Atención al Ciudadano
|
||||||
offices: Oficina de Atención al Ciudadano
|
|
||||||
send_letter: Solicitar una carta por correo postal
|
send_letter: Solicitar una carta por correo postal
|
||||||
title: '¡Felicidades!'
|
title: '¡Felicidades!'
|
||||||
user_permission_info: Con tu cuenta ya puedes...
|
user_permission_info: Con tu cuenta ya puedes...
|
||||||
@@ -60,8 +58,7 @@ es:
|
|||||||
document_type_label: Tipo de documento
|
document_type_label: Tipo de documento
|
||||||
error_not_allowed_age: No tienes la edad mínima para participar
|
error_not_allowed_age: No tienes la edad mínima para participar
|
||||||
error_not_allowed_postal_code: Para verificarte debes estar empadronado.
|
error_not_allowed_postal_code: Para verificarte debes estar empadronado.
|
||||||
error_verifying_census: El Padrón no pudo verificar tu información. Por favor, confirma que tus datos de empadronamiento sean correctos llamando al Ayuntamiento o visitando una %{offices}.
|
error_verifying_census: El Padrón no pudo verificar tu información. Por favor, confirma que tus datos de empadronamiento sean correctos llamando al Ayuntamiento o visitando una Oficina de Atención al Ciudadano.
|
||||||
error_verifying_census_offices: oficina de Atención al ciudadano
|
|
||||||
form_errors: evitaron verificar tu residencia
|
form_errors: evitaron verificar tu residencia
|
||||||
postal_code: Código postal
|
postal_code: Código postal
|
||||||
postal_code_note: Para verificar tus datos debes estar empadronado
|
postal_code_note: Para verificar tus datos debes estar empadronado
|
||||||
|
|||||||
@@ -58,7 +58,6 @@ section "Creating Settings" do
|
|||||||
Setting.create(key: "meta_description", value: "Citizen participation tool for an open, "\
|
Setting.create(key: "meta_description", value: "Citizen participation tool for an open, "\
|
||||||
"transparent and democratic government")
|
"transparent and democratic government")
|
||||||
Setting.create(key: "meta_keywords", value: "citizen participation, open government")
|
Setting.create(key: "meta_keywords", value: "citizen participation, open government")
|
||||||
Setting.create(key: "verification_offices_url", value: "http://oficinas-atencion-ciudadano.url/")
|
|
||||||
Setting.create(key: "min_age_to_participate", value: "16")
|
Setting.create(key: "min_age_to_participate", value: "16")
|
||||||
Setting.create(key: "map_latitude", value: 40.41)
|
Setting.create(key: "map_latitude", value: 40.41)
|
||||||
Setting.create(key: "map_longitude", value: -3.7)
|
Setting.create(key: "map_longitude", value: -3.7)
|
||||||
|
|||||||
@@ -97,7 +97,6 @@ Setting['mailer_from_name'] = 'CONSUL'
|
|||||||
Setting['mailer_from_address'] = 'noreply@consul.dev'
|
Setting['mailer_from_address'] = 'noreply@consul.dev'
|
||||||
|
|
||||||
# Verification settings
|
# Verification settings
|
||||||
Setting['verification_offices_url'] = 'http://oficinas-atencion-ciudadano.url/'
|
|
||||||
Setting['min_age_to_participate'] = 16
|
Setting['min_age_to_participate'] = 16
|
||||||
|
|
||||||
# Featured proposals
|
# Featured proposals
|
||||||
|
|||||||
@@ -20,17 +20,6 @@ feature "Verify Letter" do
|
|||||||
expect(user.letter_verification_code).to be
|
expect(user.letter_verification_code).to be
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario "Go to office instead of send letter" do
|
|
||||||
Setting["verification_offices_url"] = "http://offices.consul"
|
|
||||||
user = create(:user, residence_verified_at: Time.current,
|
|
||||||
confirmed_phone: "611111111")
|
|
||||||
|
|
||||||
login_as(user)
|
|
||||||
visit new_letter_path
|
|
||||||
|
|
||||||
expect(page).to have_link "Citizen Support Offices", href: "http://offices.consul"
|
|
||||||
end
|
|
||||||
|
|
||||||
scenario "Deny access unless verified residence" do
|
scenario "Deny access unless verified residence" do
|
||||||
user = create(:user)
|
user = create(:user)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user