2019-04-03 13:55:34 +03:00
{% extends 'pirati_cz.html' %}
{%block head%}
< script >
$(document).ready(function(){
$("#check_all").on("change", function(){
if( $(this).prop('checked') ){
$(".people_form input[type='checkbox']").prop("checked", true);
} else {
$(".people_form input[type='checkbox']").prop("checked", false);
}
});
});
< / script >
{%endblock%}
{%block body%}
< div class = "row" >
< div class = "medium-12 large-12 columns" >
< section class = "o-section o-section--spaceBot" >
< div class = "o-section-inner" >
< div class = "o-section-block" >
< h2 > Seznam naloděných pasažérů< / h2 >
< form action = "#" method = "POST" >
{%csrf_token%}
< div class = "medium-4 large-4 columns" >
< select name = "dist" onChange = "this.form.submit()" > {% for d in distAvail%}< option value = "{{d.0}}" { % if selDist = = d . 0 % } selected = "selected" { % endif % } > {{d.1}}< / option > {%endfor%}< / select >
< / div >
< div class = "medium-4 large-4 columns" >
< / div >
< div class = "medium-4 large-4 columns" >
2019-04-12 02:01:59 +03:00
< input type = "submit" name = "doCsvExport" value = "CSV export" class = "button" style = "border: 0px; float:right;" / >
2019-04-03 13:55:34 +03:00
< / div >
< / form >
< br / >
{% if people|length > 0 %}
< form action = "/people/update/" method = "POST" class = "people_form" >
{%csrf_token%}
< table class = "table-list" >
< tr >
< th > < input type = "checkbox" id = "check_all" / > < / th >
< th > Jméno< / th >
< th > Příjmení< / th >
2019-11-19 11:32:26 +02:00
< th > Telefon< / th >
2019-04-03 13:55:34 +03:00
< th > Email< / th >
< th > PSČ< / th >
< th > Město< / th >
< th > Kraj< / th >
2019-11-13 11:59:34 +02:00
< th > Okres< / th >
2019-04-03 13:55:34 +03:00
< th > Uživatel chce< / th >
< th > Dovednosti< / th >
2019-09-24 18:05:06 +03:00
< th > Datum registrace< / th >
2019-04-03 13:55:34 +03:00
< th > Akce< / th >
< / tr >
{% for p in people %}
< tr >
< td > < input type = "checkbox" name = "r[]" value = "{{p.id}}" / > < / td >
< td > {{p.first_name}}< / td >
< td > {{p.last_name}}< / td >
2019-11-19 11:32:26 +02:00
< td > {{p.phone}}< / td >
2019-11-13 10:16:01 +02:00
< td > < a href = "mailto:{{p.email}}" > {{p.email}}< / a > < / td >
2019-04-03 13:55:34 +03:00
< td > {{p.postcode|default_if_none:'-'}}< / td >
< td > {{p.city|default_if_none:'-'}}< / td >
< td > {{p.get_district_display}}< / td >
2019-11-13 11:59:34 +02:00
< td > {{p.county|default_if_none:''}}< / td >
2019-04-03 13:55:34 +03:00
< td > {{p.get_kind_display}}< / td >
< td > {{p.interestedIn|default_if_none:'-'}}< / td >
2019-09-24 18:05:06 +03:00
< td > {{p.createdStamp}}< / td >
2019-04-12 00:57:56 +03:00
< td >
< a href = "{% url 'nalodeni:person_detail' p.id%}" > detail< / a > ,
< a href = "{% url 'nalodeni:person_edit' p.id%}" > upravit< / a >
< / td >
2019-04-03 13:55:34 +03:00
< / tr >
2019-11-13 12:23:40 +02:00
< tr >
2019-11-13 18:00:14 +02:00
< td colspan = 12 >
{% if p.dc_undo_stamp is not None %}
< i class = "red" > Souhlas se zpracováním osobních údajů odvolán {{p.dc_undo_stamp}}< / i > < br >
{% endif %}
{{p.admin_note}}
< / td >
2019-11-13 12:23:40 +02:00
< / tr >
2019-04-03 13:55:34 +03:00
{% endfor %}
< / table >
{% if newOnly %}
< button name = "setStatus" value = "reg" class = "button" > Nastavit stav 'registrovaný'< / button >
{% else %}
< button name = "setStatus" value = "new" class = "button" > Nastavit stav 'nový'< / button >
{% endif %}
< / form >
{%else%}
< em > Žádné položky< / em >
{%endif%}
< / div >
< / div >
< / 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" >
< / div >
< / section >
< / div >
< / div >
{%endblock%}