show feedback qr code on facility detail page
This commit is contained in:
parent
a640f35fd8
commit
f6859d9094
|
@ -2,6 +2,7 @@
|
||||||
{% load leaflet_tags %}
|
{% load leaflet_tags %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load commonmark %}
|
{% load commonmark %}
|
||||||
|
{% load bornhack %}
|
||||||
|
|
||||||
{% block extra_head %}
|
{% block extra_head %}
|
||||||
{% leaflet_css %}
|
{% leaflet_css %}
|
||||||
|
@ -77,6 +78,9 @@
|
||||||
<a href="{% url "facilities:facility_list" camp_slug=camp.slug facility_type_slug=facilitytype.slug %}" class="btn btn-default"><i class="fas fa-undo"></i> Back to {{ facilitytype.name }} list</a>
|
<a href="{% url "facilities:facility_list" camp_slug=camp.slug facility_type_slug=facilitytype.slug %}" class="btn btn-default"><i class="fas fa-undo"></i> Back to {{ facilitytype.name }} list</a>
|
||||||
</p>
|
</p>
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
|
<hr>
|
||||||
|
<h4>Feedback QR Code</h4>
|
||||||
|
<img src="{% feedbackqr facility %}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -22,3 +22,8 @@ def truefalseicon(value):
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return "what is this"
|
return "what is this"
|
||||||
|
|
||||||
|
|
||||||
|
@register.simple_tag(takes_context=True)
|
||||||
|
def feedbackqr(context, facility):
|
||||||
|
return facility.get_feedback_qr(request=context["request"])
|
||||||
|
|
Loading…
Reference in a new issue