{# templates/representative/representative_merge.html #} {% extends "template_base.html" %} {% block title %}{% if representative_option1 %}Merge {{ representative_option1.representative_name }}{% else %}CANNOT MERGE{% endif %}{% endblock %} {% block content %} < Back to Representatives
Click to find number of possible duplicates (takes 30-60 seconds)

{% if representative_option1 %}Merge {{ representative_option1.representative_name }}{% else %}CANNOT MERGE{% endif %}

{% if error_message %}

{{ error_message }}

{% endif %}
{% csrf_token %} {% if representative_option1 and representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="politician_we_vote_id" field_label="Politician We Vote ID" conflict_status=conflict_values.politician_we_vote_id representative1_field_value=representative_option1.politician_we_vote_id representative2_field_value=representative_option2.politician_we_vote_id representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="politician_id" field_label="Politician ID" conflict_status=conflict_values.politician_id representative1_field_value=representative_option1.politician_id representative2_field_value=representative_option2.politician_id representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="representative_name" field_label="Representative Name" conflict_status=conflict_values.representative_name representative1_field_value=representative_option1.representative_name representative2_field_value=representative_option2.representative_name representative1=representative_option1 representative2=representative_option2 %} {# ####### google_civic_representative_name ####### #} {% if representative_option1.google_civic_representative_name2 or representative_option2.google_civic_representative_name2 %} {% endif %} {% if representative_option1.google_civic_representative_name3 or representative_option2.google_civic_representative_name3 %} {% endif %} {% include "representative/representative_merge_one_field_decision.html" with field_name="ballotpedia_representative_name" field_label="Representative Name (from Ballotpedia)" conflict_status=conflict_values.ballotpedia_representative_name representative1_field_value=representative_option1.ballotpedia_representative_name representative2_field_value=representative_option2.ballotpedia_representative_name representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="office_held_name" field_label="Office Name" conflict_status=conflict_values.office_held_name representative1_field_value=representative_option1.office_held_name representative2_field_value=representative_option2.office_held_name representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="office_held_we_vote_id" field_label="Office Held We Vote Id" conflict_status=conflict_values.office_held_we_vote_id representative1_field_value=representative_option1.office_held_we_vote_id representative2_field_value=representative_option2.office_held_we_vote_id representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="political_party" field_label="Political Party" conflict_status=conflict_values.political_party representative1_field_value=representative_option1.political_party representative2_field_value=representative_option2.political_party representative1=representative_option1 representative2=representative_option2 %} {% if representative_option1.id != None or representative_option2.id != None %} {% endif %} {% if representative_option1.we_vote_id != None or representative_option2.we_vote_id != None %} {% endif %} {% include "representative/representative_merge_one_field_decision.html" with field_name="ocd_division_id" field_label="OCD Division ID" conflict_status=conflict_values.ocd_division_id representative1_field_value=representative_option1.ocd_division_id representative2_field_value=representative_option2.ocd_division_id representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="vote_usa_politician_id" field_label="Vote USA Politician ID" conflict_status=conflict_values.vote_usa_politician_id representative1_field_value=representative_option1.vote_usa_politician_id representative2_field_value=representative_option2.vote_usa_politician_id representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="state_code" field_label="State Code" conflict_status=conflict_values.state_code representative1_field_value=representative_option1.state_code representative2_field_value=representative_option2.state_code representative1=representative_option1 representative2=representative_option2 %} {# ####### representative_url ####### #} {% if representative_option1.representative_url2 or representative_option2.representative_url2 %} {% endif %} {% if representative_option1.representative_url3 or representative_option2.representative_url3 %} {% endif %} {% include "representative/representative_merge_one_field_decision.html" with field_name="wikipedia_url" field_label="Wikipedia URL" conflict_status=conflict_values.wikipedia_url representative1_field_value=representative_option1.wikipedia_url representative2_field_value=representative_option2.wikipedia_url representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="ballotpedia_representative_url" field_label="Ballotpedia URL" conflict_status=conflict_values.ballotpedia_representative_url representative1_field_value=representative_option1.ballotpedia_representative_url representative2_field_value=representative_option2.ballotpedia_representative_url representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="representative_contact_form_url" field_label="Representative Contact URL" conflict_status=conflict_values.representative_contact_form_url representative1_field_value=representative_option1.representative_contact_form_url representative2_field_value=representative_option2.representative_contact_form_url representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="twitter_handle_updates_failing" field_label="Twitter Updates Failing" conflict_status=conflict_values.twitter_handle_updates_failing representative1_field_value=representative_option1.twitter_handle_updates_failing representative2_field_value=representative_option2.twitter_handle_updates_failing representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="twitter_handle2_updates_failing" field_label="Twitter Handle 2 Updates Failing" conflict_status=conflict_values.twitter_handle2_updates_failing representative1_field_value=representative_option1.twitter_handle2_updates_failing representative2_field_value=representative_option2.twitter_handle2_updates_failing representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="twitter_url" field_label="Twitter URL (from Google)" conflict_status=conflict_values.twitter_url representative1_field_value=representative_option1.twitter_url representative2_field_value=representative_option2.twitter_url representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="twitter_name" field_label="Twitter Name" conflict_status=conflict_values.twitter_name representative1_field_value=representative_option1.twitter_name representative2_field_value=representative_option2.twitter_name representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="twitter_location" field_label="Twitter Location" conflict_status=conflict_values.twitter_location representative1_field_value=representative_option1.twitter_location representative2_field_value=representative_option2.twitter_location representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="instagram_handle" field_label="Instagram Handle" conflict_status=conflict_values.instagram_handle representative1_field_value=representative_option1.instagram_handle representative2_field_value=representative_option2.instagram_handle representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="facebook_url" field_label="Facebook URL" conflict_status=conflict_values.facebook_url representative1_field_value=representative_option1.facebook_url representative2_field_value=representative_option2.facebook_url representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="facebook_url_is_broken" field_label="Facebook URL Broken" conflict_status=conflict_values.facebook_url_is_broken representative1_field_value=representative_option1.facebook_url_is_broken representative2_field_value=representative_option2.facebook_url_is_broken representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="youtube_url" field_label="YouTube URL" conflict_status=conflict_values.youtube_url representative1_field_value=representative_option1.youtube_url representative2_field_value=representative_option2.youtube_url representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="linkedin_url" field_label="LinkedIn URL" conflict_status=conflict_values.linkedin_url representative1_field_value=representative_option1.linkedin_url representative2_field_value=representative_option2.linkedin_url representative1=representative_option1 representative2=representative_option2 %} {# ####### representative_email ####### #} {% if representative_option1.representative_email2 or representative_option2.representative_email2 %} {% endif %} {% if representative_option1.representative_email3 or representative_option2.representative_email3 %} {% endif %} {# ####### representative_phone ####### #} {% if representative_option1.representative_phone2 or representative_option2.representative_phone2 %} {% endif %} {% if representative_option1.representative_phone3 or representative_option2.representative_phone3 %} {% endif %} {% include "representative/representative_merge_one_field_decision.html" with field_name="photo_url_from_google_civic" field_label="Photo (from Google)" conflict_status=conflict_values.photo_url_from_google_civic representative1_field_value=representative_option1.photo_url_from_google_civic representative2_field_value=representative_option2.photo_url_from_google_civic representative1=representative_option1 representative2=representative_option2 %} {# Displayed photo #} {% include "representative/representative_merge_one_field_decision.html" with field_name="we_vote_hosted_profile_image_url_tiny" field_label="We Vote Image (Tiny)" conflict_status=conflict_values.we_vote_hosted_profile_image_url_tiny representative1_field_value=representative_option1.we_vote_hosted_profile_image_url_tiny representative2_field_value=representative_option2.we_vote_hosted_profile_image_url_tiny representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="we_vote_hosted_profile_image_url_medium" field_label="We Vote Image (Medium)" conflict_status=conflict_values.we_vote_hosted_profile_image_url_medium representative1_field_value=representative_option1.we_vote_hosted_profile_image_url_medium representative2_field_value=representative_option2.we_vote_hosted_profile_image_url_medium representative1=representative_option1 representative2=representative_option2 %} {% include "representative/representative_merge_one_field_decision.html" with field_name="we_vote_hosted_profile_image_url_large" field_label="We Vote Image (Large)" conflict_status=conflict_values.we_vote_hosted_profile_image_url_large representative1_field_value=representative_option1.we_vote_hosted_profile_image_url_large representative2_field_value=representative_option2.we_vote_hosted_profile_image_url_large representative1=representative_option1 representative2=representative_option2 %}
  Representative Option 1 Representative Option 2
  view representative 1 view representative 2
{% if representative_option1.politician_we_vote_id and representative_option2.politician_we_vote_id and representative_option1.politician_we_vote_id != representative_option2.politician_we_vote_id %} Politician ***CONFLICT***  {% endif %} {% if representative_option1.politician_we_vote_id %} view politician 1 {% endif %} {% if representative_option2.politician_we_vote_id %} view politician 2 {% endif %}
Google Civic Representative Name {{ representative_option1.google_civic_representative_name|default_if_none:"" }} {{ representative_option2.google_civic_representative_name|default_if_none:"" }}
Google Civic Representative Name 2 {{ representative_option1.google_civic_representative_name2|default_if_none:"" }} {{ representative_option2.google_civic_representative_name2|default_if_none:"" }}
Google Civic Representative Name 3 {{ representative_option1.google_civic_representative_name3|default_if_none:"" }} {{ representative_option2.google_civic_representative_name3|default_if_none:"" }}
Years In Office {{ representative_option1.years_in_office_flags|default_if_none:"" }} {{ representative_option2.years_in_office_flags|default_if_none:"" }}
ID {{ representative_option1.id|default_if_none:"" }} {{ representative_option2.id|default_if_none:"" }}
We Vote ID {{ representative_option1.we_vote_id|default_if_none:"" }} {{ representative_option2.we_vote_id|default_if_none:"" }}
Website {% if 'http' in representative_option1.representative_url %} {{ representative_option1.representative_url|default_if_none:"" }} {% else %} {{ representative_option1.representative_url|default_if_none:"" }} {% endif %} {% if 'http' in representative_option2.representative_url %} {{ representative_option2.representative_url|default_if_none:"" }} {% else %} {{ representative_option2.representative_url|default_if_none:"" }} {% endif %}
Website2 {% if 'http' in representative_option1.representative_url2 %} {{ representative_option1.representative_url2|default_if_none:"" }} {% else %} {{ representative_option1.representative_url2|default_if_none:"" }} {% endif %} {% if 'http' in representative_option2.representative_url2 %} {{ representative_option2.representative_url2|default_if_none:"" }} {% else %} {{ representative_option2.representative_url2|default_if_none:"" }} {% endif %}
Website 3 {% if 'http' in representative_option1.representative_url3 %} {{ representative_option1.representative_url3|default_if_none:"" }} {% else %} {{ representative_option1.representative_url3|default_if_none:"" }} {% endif %} {% if 'http' in representative_option2.representative_url3 %} {{ representative_option2.representative_url3|default_if_none:"" }} {% else %} {{ representative_option2.representative_url3|default_if_none:"" }} {% endif %}
Twitter Handles {{ representative_option1.representative_twitter_handle|default_if_none:"" }} {% if representative_option1.representative_twitter_handle2 %}
{{ representative_option1.representative_twitter_handle2|default_if_none:"" }} {% endif %} {% if representative_option1.representative_twitter_handle3 %}
{{ representative_option1.representative_twitter_handle3|default_if_none:"" }} {% endif %}
{{ representative_option2.representative_twitter_handle|default_if_none:"" }} {% if representative_option2.representative_twitter_handle2 %}
{{ representative_option2.representative_twitter_handle2|default_if_none:"" }} {% endif %} {% if representative_option2.representative_twitter_handle3 %}
{{ representative_option2.representative_twitter_handle3|default_if_none:"" }} {% endif %}
Email {{ representative_option1.representative_email|default_if_none:"" }} {{ representative_option2.representative_email|default_if_none:"" }}
Email 2 {{ representative_option1.representative_email2|default_if_none:"" }} {{ representative_option2.representative_email2|default_if_none:"" }}
Email 3 {{ representative_option1.representative_email3|default_if_none:"" }} {{ representative_option2.representative_email3|default_if_none:"" }}
Phone {{ representative_option1.representative_phone|default_if_none:"" }} {{ representative_option2.representative_phone|default_if_none:"" }}
Phone 2 {{ representative_option1.representative_phone2|default_if_none:"" }} {{ representative_option2.representative_phone2|default_if_none:"" }}
Phone 3 {{ representative_option1.representative_phone3|default_if_none:"" }} {{ representative_option2.representative_phone3|default_if_none:"" }}
     
cancel   
{% if remove_duplicate_process %} {% endif %} {% else %} {% endif %}

{% endblock %}