{# templates/candidate/candidate_new_search.html #} {% extends "template_base.html" %} {% block title %}Add New Candidate: Search for Existing Candidate{% endblock %} {% block content %} {% load template_filters %} {% load humanize %} < Back to Candidates

Add New Candidate: Search for Existing Candidate

{% if error_message %}

{{ error_message }}

{% endif %}
{% csrf_token %} {% include "politician/politician_selection_list.html" with politician_list=politician_list %} {% include "candidate/candidate_selection_list.html" with candidate_list=candidate_list %}

{# There is another submit button at bottom of form #} {% if candidate %} cancel {% else %} cancel {% endif %}

{% if candidate %} {% if candidate.candidate_name_normalized|length|get_digit:"-1" > 0 %} {% endif %} {{ candidate.we_vote_id }} (delete candidate) {% if candidate.politician_we_vote_id %}     Politician We Vote Id: {{ candidate.politician_we_vote_id }} {% else %}     (match to politician ) {% endif %} {% if candidate.candidate_merge_possibility_found %}     (check for duplicate candidates ) {% endif %} {% else %} {{ we_vote_id }} {% if politician_we_vote_id and politician_we_vote_id != "False" and politician_we_vote_id != False %}     Politician We Vote Id FOUND: {{ politician_we_vote_id }} {% endif %} {% endif %}
{% if candidate.facebook_url %} Refresh Facebook Photo {% if candidate.facebook_url_is_broken %}    The previous attempt at getting a photo from this link failed, it may be a broken link {% endif %} {% if candidate.facebook_profile_image_url_https %} (see photo in new window) {% endif %} {% endif %}

{# There is another submit button at top of form #} {% if candidate %} cancel {% else %} cancel {% endif %}


{# Only show other candidates running for this office when we are entering a new candidate #} {% if candidate_list and False %}
Existing Candidates
{% for candidate in candidate_list %} {% endfor %}
    Candidate Name State Election Office Twitter Handle Website Id We Vote Id Vote Smart Id  
{{ forloop.counter }} {% if candidate.candidate_photo_url %} {% endif %} {{ candidate.candidate_name }} {{ candidate.get_candidate_state }} {{ candidate.election.election_name }} {% if candidate.office and candidate.office.id %} {{ candidate.office.office_name }} {% else %} (office missing) {% endif %} {% if candidate.candidate_twitter_handle %} {{ candidate.candidate_twitter_handle }}
({{ candidate.twitter_followers_count|intcomma }} followers){% endif %}
{% if candidate.candidate_url %}{{ candidate.candidate_url }}{% endif %} {% if candidate.candidate_contact_form_url %}{{ candidate.candidate_contact_form_url }}{% endif %} {{ candidate.id }} {{ candidate.we_vote_id }} {% if candidate.politician_we_vote_id %} {{ candidate.politician_we_vote_id }} {% else %} Match to Politician {% endif %} {{ candidate.vote_smart_id }} (edit)

{% else %} {# Don't display anything if there aren't any other candidates captured for this office yet #} {% endif %} {% endblock %}