Yhteystiedot alustava
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
@@ -8,6 +8,27 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h2>{% trans "Contact" %}</h2>
|
<h2>{% trans "Contact" %}</h2>
|
||||||
|
<div>
|
||||||
|
{% if kaikki %}
|
||||||
|
<table>
|
||||||
|
{% for teekkari in kaikki %}
|
||||||
|
{% load static %}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<img src="static/img/missing.png">
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="name">{{ teekkari.first_name }} {{ teekkari.last_name }}</p>
|
||||||
|
<p class="email">{{ teekkari.email }}</p>
|
||||||
|
<p class="puh">{{ teekkari.phone_number }}</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
{% else %}
|
||||||
|
<p>Ei henkilöitä</p>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+6
-2
@@ -13,7 +13,7 @@ import logging
|
|||||||
import requests
|
import requests
|
||||||
from dealer.git import git
|
from dealer.git import git
|
||||||
|
|
||||||
from webapp.models import PresetKaehmyRole, CustomKaehmyRole
|
from webapp.models import PresetKaehmyRole, CustomKaehmyRole, Official
|
||||||
from webapp.models import OhlhafvChallenge, KaehmyForm, TelegramChannel
|
from webapp.models import OhlhafvChallenge, KaehmyForm, TelegramChannel
|
||||||
from webapp.forms import OhlhafvForm, KaehmyForm_Form, KaehmyCommentForm
|
from webapp.forms import OhlhafvForm, KaehmyForm_Form, KaehmyCommentForm
|
||||||
from webapp.tables import OhlhafvTable, KaehmyExportTable
|
from webapp.tables import OhlhafvTable, KaehmyExportTable
|
||||||
@@ -144,7 +144,11 @@ def sosso_view(request, *args, **kwargs):
|
|||||||
@require_http_methods(["GET"])
|
@require_http_methods(["GET"])
|
||||||
def contact_view(request, *args, **kwargs):
|
def contact_view(request, *args, **kwargs):
|
||||||
"""Render "Contact" page."""
|
"""Render "Contact" page."""
|
||||||
return render(request, "contact.html", {})
|
|
||||||
|
kaikki = Official.objects.all()
|
||||||
|
context = {"kaikki": kaikki}
|
||||||
|
|
||||||
|
return render(request, "contact.html", context)
|
||||||
|
|
||||||
|
|
||||||
@require_http_methods(["GET"])
|
@require_http_methods(["GET"])
|
||||||
|
|||||||
Reference in New Issue
Block a user