-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc22933
commit d47174f
Showing
4 changed files
with
127 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{% extends 'base.html' %} | ||
{% load thumbnail %} | ||
{% load static %} | ||
{% load pipeline %} | ||
|
||
{% block content %} | ||
<h1>Split {{ person.name }} into two people</h1> | ||
<p>Choose which properties to keep on the original person, which to move to the new person, and which to keep on both.</p> | ||
|
||
<form method="post"> | ||
{% csrf_token %} | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Keep on original?</th> | ||
<th>Add to new?</th> | ||
<th>Keep on original and add to new?</th> | ||
<th>Property</th> | ||
<th>{{person.name}}'s data</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
{% for radio in form.split_person_choices %} | ||
<td for="id_{{ form.split_person_choices.html_name }}_{{ forloop.counter0 }}">{{ radio.tag }}</td> | ||
{% endfor %} | ||
<td>Name:</td> | ||
<td>{{person.name}}</td> | ||
</tr> | ||
|
||
<tr> | ||
{% for radio in form.split_person_choices %} | ||
<td for="id_{{ form.split_person_choices.html_name }}_{{ forloop.counter0 }}">{{ radio.tag }}</td> | ||
{% endfor %} | ||
<td>Image:</td> | ||
<td> | ||
{% if person.image.image %} | ||
{% thumbnail person.image.image "100x100" as thumb %} | ||
<img src="{{ thumb.url }}" alt="{{ person.name }} thumbnail" /> | ||
{% endthumbnail %} | ||
{% else %} | ||
No image exists for this person. | ||
{% endif %} | ||
</td> | ||
</tr> | ||
<tr> | ||
{% for radio in form.split_person_choices %} | ||
<td for="id_{{ form.split_person_choices.html_name }}_{{ forloop.counter0 }}">{{ radio.tag }}</td> | ||
{% endfor %} | ||
<td>Other names:</td> | ||
<td>{{person.other_names.all}}</td> | ||
</tr> | ||
<tr> | ||
{% for radio in form.split_person_choices %} | ||
<td for="id_{{ form.split_person_choices.html_name }}_{{ forloop.counter0 }}">{{ radio.tag }}</td> | ||
{% endfor %} | ||
<td>Gender:</td> | ||
<td>{{person.gender}}</td> | ||
</tr> | ||
<tr> | ||
{% for radio in form.split_person_choices %} | ||
<td for="id_{{ form.split_person_choices.html_name }}_{{ forloop.counter0 }}">{{ radio.tag }}</td> | ||
{% endfor %} | ||
<td>Birth date:</td> | ||
<td>{{person.birth_date}}</td> | ||
</tr> | ||
<tr> | ||
{% for radio in form.split_person_choices %} | ||
<td for="id_{{ form.split_person_choices.html_name }}_{{ forloop.counter0 }}">{{ radio.tag }}</td> | ||
{% endfor %} | ||
<td>Death date:</td> | ||
<td>{{person.death_date}}</td> | ||
</tr> | ||
<tr> | ||
{% for radio in form.split_person_choices %} | ||
<td for="id_{{ form.split_person_choices.html_name }}_{{ forloop.counter0 }}">{{ radio.tag }}</td> | ||
{% endfor %} | ||
<td>Summary:</td> | ||
<td>{{person.summary}}</td> | ||
</tr> | ||
<tr> | ||
{% for radio in form.split_person_choices %} | ||
<td for="id_{{ form.split_person_choices.html_name }}_{{ forloop.counter0 }}">{{ radio.tag }}</td> | ||
{% endfor %} | ||
<td>Biography:</td> | ||
<td>{{person.biography}}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<input class="button primary small" type="submit" value="Split person" /> | ||
|
||
<a class="button secondary small" href="{% url 'person-view' person.id %}">Cancel</a> | ||
</form> | ||
{% endblock %} |