{% extends 'base.html' %}

{% block content %}
  <h1>Candidates for {{ constituency_name }}</h1>

  <h3>Known candidates for the 2015 general election</h3>

    {% for c in candidates_2015 %}
      <p>{{ c.name }}</p>
    {% empty %}
      <p>We don't know of any candidates in {{ constituency_name }}
      for the 2015 general election yet.</p>
    {% endfor %}

  <h3>Is a candidate from the 2010 election standing again?</h3>

    {% for c in candidates_2010 %}
        <form method="post" action="{% url 'candidacy' %}">
          {{ c.name }} ({{ c.party.name }})
          {% csrf_token %}
          <input type="hidden" name="person_id" value="{{ c.id }}"/>
          <input type="hidden" name="candidate_list_id" value="{{ new_candidate_list_id }}"/>
          <input type="submit" value="Standing again?" />
        </form>
    {% endfor %}

{% endblock %}

{% extends 'base.html' %}

{% block content %}
  <h1>Candidates for {{ constituency_name }}</h1>

  <h3>Known candidates for the 2015 general election</h3>

    {% for c in candidates_2015 %}
      <p>{{ c.name }}</p>
    {% empty %}
      <p>We don't know of any candidates in {{ constituency_name }}
      for the 2015 general election yet.</p>
    {% endfor %}

  <h3>Is a candidate from the 2010 election standing again?</h3>

    {% for c in candidates_2010 %}
        {% comment %}
           FIXME: Don't show the "Standing again?" form if
           they're already in the new candidate list.
        {% endcomment %}
        <form method="post" action="{% url 'candidacy' %}">
          {{ c.name }} ({{ c.party.name }})
          {% csrf_token %}
          <input type="hidden" name="person_id" value="{{ c.id }}"/>
          <input type="hidden" name="candidate_list_id" value="{{ new_candidate_list_id }}"/>
          <input type="submit" value="Standing again?" />
        </form>
    {% endfor %}

{% endblock %}

Add a FIXME to only show the 'Standing again?' option when relevant
Add a FIXME to only show the 'Standing again?' option when relevant
