nalodeni.pirati.cz/nalodeni/templates/person/detail.html

63 lines
2.7 KiB
HTML
Raw Normal View History

{% extends 'pirati_cz.html' %}
{%block head%}
<script>
</script>
<style>
.red { color: #f55; }
table th, table td { vertical-align: top; }
table td { text-align: left; }
table th { text-align: right; }
</style>
{%endblock%}
{%block body%}
<div class="row">
<div class="medium-12 large-12 columns">
<section class="o-section o-section--spaceBot">
<h2>Detail uživatele <small>(<a href="{% url 'nalodeni:people_list'%}">zpět</a>,
<a href="{% url 'nalodeni:person_edit' obj.id %}">upravit</a>)</small></h2>
<table style="width: auto;">
<tr><th>Uživ. jméno (login)</th><td>{{obj.username}}</td></tr>
<tr><th>Jméno a příjmení</th><td>{{obj.first_name|default_if_none:'-'}} {{obj.last_name|default_if_none:'-'}}</td></tr>
<tr><th>Telefon</th><td>{{obj.phone}}</td></tr>
<tr><th>Město, PSČ, Kraj, Okres</th><td>{{obj.city|default_if_none:'-'}}, {{obj.postcode|default_if_none:'-'}}, {{obj.get_district_display|default_if_none:'-'}}, {{obj.county|default_if_none:'-'}}</td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><th>Reg. e-mail</th><td>{{obj.email}}</td></tr>
<tr><th>Kontaktní e-mail</th><td{% if not obj.email_contact_verified %} class="red"{%endif%}>{{obj.email_contact|default_if_none:'-'}}{% if not obj.email_contact_verified %} (neověřen){%endif%}</td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><th>Stav</th><td>{{obj.get_status_display}}</td></tr>
<tr><th>Chci</th><td>{{obj.get_kind_display}}</td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><th>Zájmy</th><td>
{% for i in obj.userform.topics.all %}{{i.name}}<br/>{%endfor%}
</td></tr>
<tr><th>Dovednosti</th><td>
{% for i in obj.userform.skills.all %}{{i.name}}<br/>{%endfor%}
</td></tr>
<tr><th>Regiony</th><td>
{% for i in obj.userform.regions.all %}{{i.name}}<br/>{%endfor%}
</td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><th>Datum registrace</th><td>{{obj.createdStamp}}</td></tr>
<tr><th>Datum souhlasu os. údajů</th><td>{{obj.dc_stamp|default_if_none:'-'}}</td></tr>
<tr><th>Datum odvolání souhlasu oú</th><td class="red">{{obj.dc_undo_stamp|default_if_none:''}}</td></tr>
<tr><th>Administrátorská poznámka</th><td>{{obj.admin_note}}</td></tr>
</table>
</section>
</div>
</div>
<div class="row">
<div class="medium-12 large-12 columns">
<section class="o-section o-section--spaceBot">
<div class="o-section-inner">
&nbsp;
</div>
</section>
</div>
</div>
{%endblock%}